Skip to content

Commit

Permalink
Fix ruff deprecation warnings for top-level linter settings (pylint-d…
Browse files Browse the repository at this point in the history
  • Loading branch information
correctmost authored May 12, 2024
1 parent 2c38c02 commit 514463b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,13 @@ ignore_missing_imports = true


[tool.ruff]
target-version = "py38"

# ruff is less lenient than pylint and does not make any exceptions
# (for docstrings, strings and comments in particular).
line-length = 110

[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
Expand All @@ -112,8 +114,7 @@ fixable = [
"RUF", # ruff
]
unfixable = ["RUF001"]
target-version = "py38"

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
# Ruff is autofixing a tests with a voluntarily sneaky unicode
"tests/test_regrtest.py" = ["RUF001"]

0 comments on commit 514463b

Please sign in to comment.