nixos/test-driver: use ruff format in place of black
This commit is contained in:
parent
ef2d3c542a
commit
e23f1733c6
@ -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 .
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user