Skip to content

Commit 4d2f9f6

Browse files
Hnadle new version of isort
1 parent d1d36fe commit 4d2f9f6

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

flake.lock

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
description = "CMake utilities for multi-language projects";
33

4-
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.03";
4+
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.05";
55
inputs.flake-utils.url = "github:numtide/flake-utils";
66

77
outputs = { self, nixpkgs, flake-utils }:

python/python.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ function(unicmake_python_isort CONTENT_DIR CONTENT_STAMP OUTVAR FORMAT_TARGET)
3636
set(CONFIG_DIR ${CMAKE_CURRENT_SOURCE_DIR})
3737
set(CONFIG_FILE ${CONFIG_DIR}/.isort.cfg)
3838
add_custom_command(
39-
COMMAND ${ISORT} --check --settings-path ${CONFIG_DIR}
39+
COMMAND ${ISORT} --check --settings-path ${CONFIG_DIR} ${DIR}
4040
COMMAND touch ${OUT}
4141
OUTPUT ${OUT}
4242
WORKING_DIRECTORY ${DIR}
4343
DEPENDS ${CONTENT_STAMP} ${CONFIG_FILE}
4444
VERBATIM
4545
)
4646
add_custom_target(${FORMAT_TARGET}
47-
COMMAND ${ISORT} --apply --settings-path ${CONFIG_DIR}
47+
COMMAND ${ISORT} --settings-path ${CONFIG_DIR} ${DIR}
4848
WORKING_DIRECTORY ${DIR}
4949
VERBATIM
5050
)

0 commit comments

Comments
 (0)