Skip to content

Commit

Permalink
add ruff to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
swelborn committed Sep 13, 2024
1 parent e3581be commit 045b4e2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,27 @@
[build-system]
requires = ["setuptools", "wheel", "scikit-build==0.14.1", "setuptools_scm[toml]"]

[tool.ruff]
line-length = 120
target-version = 'py38'
extend-exclude = ['thirdparty','examples/**', 'python/stempy/pipeline/**']

[tool.ruff.lint]
exclude = []
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"B008", # do not perform function calls in argument defaults
]
isort = { known-first-party = ['stempy'] }
pydocstyle = { convention = 'google' }

[tool.ruff.format]
quote-style = 'double'

0 comments on commit 045b4e2

Please sign in to comment.