Skip to content

Commit

Permalink
Fix, warnings to prefix select, ignore, flake8-tidy-imports with lint…
Browse files Browse the repository at this point in the history
… in ruff config
  • Loading branch information
rootart committed Jun 14, 2024
1 parent ad9cc78 commit 4c4a5a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .ruff.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# https://beta.ruff.rs/docs/rules/
select = [
lint.select = [
# rules from pyflakes
"F",

Expand Down Expand Up @@ -112,7 +112,7 @@ select = [
"RUF100",
]

ignore = [
lint.ignore = [
"COM812", # missing trailing comma, covered by black
"ANN101", # ignore missing type annotation in self parameter
"S311", # ignore Standard pseudo-random generators because they are not used for cryptographic purposes
Expand All @@ -122,11 +122,11 @@ fix = true

target-version = "py38"

[flake8-tidy-imports]
[lint.flake8-tidy-imports]
## Disallow all relative imports.
ban-relative-imports = "all"

[per-file-ignores]
[lint.per-file-ignores]
# ignore assert statements in tests
"tests/*.py" = ["S101"]

Expand Down

0 comments on commit 4c4a5a1

Please sign in to comment.