fix ruff issues

This commit is contained in:
Willi Ballenthin
2023-07-06 17:49:40 +02:00
parent adbfb8db06
commit 47074fd129
42 changed files with 62 additions and 108 deletions

10
.github/ruff.toml vendored
View File

@@ -43,5 +43,11 @@ exclude = [
]
[per-file-ignores]
#"__init__.py" = ["E402"]
#"path/to/file.py" = ["E402"]
# until we address #1592 and move test fixtures into conftest.py
# then we need to ignore imports done to enable pytest fixtures.
#
# F401: `foo` imported but unused
# F811 Redefinition of unused `foo`
"tests/test_main.py" = ["F401", "F811"]
"tests/test_freeze.py" = ["F401", "F811"]
"tests/test_function_id.py" = ["F401", "F811"]