Skip to content

Commit

Permalink
pyproject: Add ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
tomba committed Nov 2, 2024
1 parent f5dba5f commit 0d85126
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,21 @@ Repository = "https://github.com/tomba/pykms.git"

[tool.setuptools]
packages = ["kms", "kms.uapi"]

[tool.ruff]
line-length = 100
extend-exclude = ['kms/uapi/']

[tool.ruff.lint]
extend-select = ['E', 'W', 'F', 'FA', 'Q']
ignore = ['E741', 'E501', 'Q001', 'E702'] # TODO: fix E501

[tool.ruff.lint.per-file-ignores]
'__init__.py' = ['F401', 'F403']

[tool.ruff.lint.flake8-quotes]
inline-quotes = 'single'
multiline-quotes = 'single'

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

0 comments on commit 0d85126

Please sign in to comment.