Skip to content

Commit

Permalink
Merge pull request #66 from Deep-MI/ruff-rules
Browse files Browse the repository at this point in the history
add more ruff lint rules
  • Loading branch information
m-reuter authored Aug 30, 2024
2 parents 75049cd + 8208bb2 commit 3a91e75
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,30 @@ add_ignore = 'D100,D104,D107'
line-length = 88
extend-exclude = [
"doc",
"setup.py",
"tutorials/*",
".github",
"data",
]

[tool.ruff.lint]
# https://docs.astral.sh/ruff/linter/#rule-selection
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
# "SIM",
# isort
"I",
]

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"examples/*" = ["E501"] # ignore too long lines in example ipynb

[tool.pytest.ini_options]
minversion = '6.0'
Expand Down

0 comments on commit 3a91e75

Please sign in to comment.