Skip to content

Commit

Permalink
Add missing pyproject.toml settings
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Jun 18, 2024
1 parent 5fbdc39 commit d01bd27
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ addopts = '''
# ----- ruff --------------------------------------------------------------
#
[tool.ruff]
cache-dir = '.cache/ruff'

[tool.ruff.format]
docstring-code-format = true

[tool.ruff.lint]
select = [
'D', # pydocstyle
'E', # pycodestyle errors
Expand All @@ -91,11 +97,7 @@ extend-ignore = [
'D107', # Missing docstring in `__init__`
]

line-length = 79

cache-dir = '.cache/ruff'

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
'__init__.py' = [
'F401', # * imported but unused
]
Expand All @@ -105,7 +107,7 @@ cache-dir = '.cache/ruff'
#
# Check correct order/syntax of import statements
#
[tool.ruff.isort]
[tool.ruff.lint.isort]

# All from imports have their own line, e.g.
#
Expand Down Expand Up @@ -142,7 +144,7 @@ section-order = [
'first-party',
'local-folder',
]
[tool.ruff.isort.sections]
[tool.ruff.lint.isort.sections]
'audeering' = [
'audb',
'audbackend',
Expand All @@ -166,7 +168,7 @@ section-order = [
#
# Check variable/class names follow PEP8 naming convention
#
[tool.ruff.pep8-naming]
[tool.ruff.lint.pep8-naming]
ignore-names = [
'config', # allow lowercase class name
'test_*', # allow uppercase name when testing a class
Expand All @@ -177,7 +179,7 @@ ignore-names = [
#
# Check docstrings follow selected convention
#
[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = 'google'


Expand Down

0 comments on commit d01bd27

Please sign in to comment.