Skip to content

Commit

Permalink
CLN: better config for ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
gdementen committed Sep 12, 2023
1 parent b987a06 commit be948ce
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ filterwarnings = [
# Enable Pyflakes `E` and `F` codes by default.
select = ["E", "F"]
ignore = []
#select = ["ALL"]
#ignore = ["ANN", "Q", "D100", "D104"]

# Allow autofix for all enabled rules (when `--fix`) is provided.
# fixable = ["A", "B", "C", "D", "E", "F", "..."]
Expand All @@ -34,6 +36,15 @@ exclude = [
"dist",
"experiments",
]
per-file-ignores = {}

line-length = 120
line-length = 120
target-version = "py38"

[tool.ruff.per-file-ignores]
"*\\tests\\test_*" = [
"S101", # allow using assert in test functions
"D103" # do not require docstrings for test functions
]

[tool.ruff.pydocstyle]
convention = "numpy"

0 comments on commit be948ce

Please sign in to comment.