nixos/test-driver: use ruff format in place of black

This commit is contained in:
Nick Cao 2024-11-22 10:07:29 -05:00
parent ef2d3c542a
commit e23f1733c6
No known key found for this signature in database
2 changed files with 3 additions and 9 deletions

View File

@ -66,15 +66,14 @@ python3Packages.buildPythonApplication {
nativeCheckInputs = with python3Packages; [ nativeCheckInputs = with python3Packages; [
mypy mypy
ruff ruff
black
]; ];
checkPhase = '' checkPhase = ''
echo -e "\x1b[32m## run mypy\x1b[0m" echo -e "\x1b[32m## run mypy\x1b[0m"
mypy test_driver extract-docstrings.py mypy test_driver extract-docstrings.py
echo -e "\x1b[32m## run ruff\x1b[0m" echo -e "\x1b[32m## run ruff check\x1b[0m"
ruff check . ruff check .
echo -e "\x1b[32m## run black\x1b[0m" echo -e "\x1b[32m## run ruff format\x1b[0m"
black --check --diff . ruff format --check --diff .
''; '';
} }

View File

@ -35,11 +35,6 @@ ignore_missing_imports = true
module = "junit_xml.*" module = "junit_xml.*"
ignore_missing_imports = true ignore_missing_imports = true
[tool.black]
line-length = 88
target-version = ['py39']
include = '\.pyi?$'
[tool.mypy] [tool.mypy]
warn_redundant_casts = true warn_redundant_casts = true
disallow_untyped_calls = true disallow_untyped_calls = true