nixos/test-driver: adjust to ruff changes

This commit is contained in:
Dawid Dziurla 2024-05-22 11:25:53 +02:00
parent d484aa8e20
commit f8a88fd22c
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ python3Packages.buildPythonApplication {
echo -e "\x1b[32m## run mypy\x1b[0m"
mypy test_driver extract-docstrings.py
echo -e "\x1b[32m## run ruff\x1b[0m"
ruff .
ruff check .
echo -e "\x1b[32m## run black\x1b[0m"
black --check --diff .
'';

View File

@ -19,8 +19,8 @@ test_driver = ["py.typed"]
[tool.ruff]
line-length = 88
select = ["E", "F", "I", "U", "N"]
ignore = ["E501"]
lint.select = ["E", "F", "I", "U", "N"]
lint.ignore = ["E501"]
# xxx: we can import https://pypi.org/project/types-colorama/ here
[[tool.mypy.overrides]]