Skip to content

Commit

Permalink
Fix ruff config
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Jun 5, 2024
1 parent 0475cdf commit 85613ac
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,14 @@ convention = "numpy"
add-ignore = ["D107", "D105", "D102", "D100", "D200", "D205", "D400", "D104"]

[tool.ruff]
line-length = 110
target-version = "py310"
exclude = [
"__init__.py",
"tests/config/*.py",
]

[tool.ruff.lint]
ignore = [
"N802",
"N803",
Expand All @@ -138,26 +142,24 @@ ignore = [
"D200",
"D205",
]
line-length = 110
select = [
"E", # pycodestyle
"F", # pyflakes
"N", # pep8-naming
"W", # pycodestyle
"D", # pydocstyle
]
target-version = "py310"
extend-select = [
"RUF100", # Warn about unused noqa
]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"tests/testLib.py" = ["F403", "F405"] # Wildcard imports.

[tool.ruff.pycodestyle]
[tool.ruff.lint.pycodestyle]
max-doc-length = 79

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

[tool.numpydoc_validation]
Expand Down

0 comments on commit 85613ac

Please sign in to comment.