add isort to build

This commit is contained in:
Jörg Thalheim 2022-11-14 23:40:36 +01:00
parent 5bc869479d
commit 3f8112992a
2 changed files with 7 additions and 0 deletions

View File

@ -12,6 +12,7 @@ python3.pkgs.buildPythonApplication rec {
python3.pkgs.pytest
python3.pkgs.black
python3.pkgs.flake8
python3.pkgs.isort
glibcLocales
mypy
# technically not a test input, but we need it for development in PATH
@ -24,6 +25,9 @@ python3.pkgs.buildPythonApplication rec {
flake8 nix_update
echo -e "\x1b[32m## run mypy\x1b[0m"
mypy --no-warn-unused-ignores --strict nix_update tests
echo -e "\x1b[32m## run isort\x1b[0m"
isort . --check-only
'';
makeWrapperArgs = [
"--prefix PATH" ":" (lib.makeBinPath [ pkgs.nixVersions.stable or nix_2_4 nixpkgs-fmt nixpkgs-review ])

View File

@ -41,6 +41,9 @@ restructuredtext = true
strict = true[wheel]
universal = 1
[isort]
profile=black
[pycodestyle]
max-line-length = 88
# E203 conflicts with black