Skip to content

Commit

Permalink
Merge pull request #7387 from jarrodmillman/ruff-config
Browse files Browse the repository at this point in the history
Update Ruff config
  • Loading branch information
jarrodmillman committed Apr 11, 2024
2 parents 23a97f0 + cc2c9d4 commit d75f515
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -151,30 +151,21 @@ Metrics = [
target-version = ['py310', 'py311', 'py312']
skip-string-normalization = 1

[tool.ruff]
line-length = 88
target-version = 'py310'
[tool.ruff.lint]
select = [
'F',
'E',
'W',
'UP',
'NPY201',
]
ignore = [
'E501',
'E741',
'E712',
]
exclude = [
'.git',
'.ruff_cache',
'build',
'build-install',
'dist',
'doc/source/auto_examples',
]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = [
'E402',
'F401',
Expand All @@ -190,7 +181,7 @@ exclude = [
"skimage/_shared/testing.py" = ['F401']
"doc/examples/**/*.py" = ['E402']

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

[tool.pytest.ini_options]
Expand Down

0 comments on commit d75f515

Please sign in to comment.