mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-04 09:11:39 +00:00
ruff: Update config to include docstrings and type annotations
This commit is contained in:
parent
f4cff2c129
commit
2631e37bc6
@ -17,15 +17,22 @@ target-version = "py311"
|
|||||||
|
|
||||||
[tool.ruff.lint]
|
[tool.ruff.lint]
|
||||||
select = [
|
select = [
|
||||||
"E",
|
"E", # pycodestyle errors
|
||||||
"W",
|
"W", # pycodestyle warnings
|
||||||
"F",
|
"F", # pyflakes
|
||||||
"I",
|
"I", # isort
|
||||||
"B",
|
"B", # flake8-bugbear
|
||||||
"C4",
|
"C4", # flake8-comprehensions
|
||||||
"UP",
|
"UP", # pyupgrade
|
||||||
|
"ANN", # flake8-annotations (type hints)
|
||||||
|
"D", # pydocstyle (docstrings)
|
||||||
|
]
|
||||||
|
ignore = [
|
||||||
|
"D203", # one-blank-line-before-class (conflicts with D211)
|
||||||
|
"D213", # multi-line-summary-second-line (conflicts with D212)
|
||||||
|
"ANN101", # missing-type-self
|
||||||
|
"ANN102", # missing-type-cls
|
||||||
]
|
]
|
||||||
ignore = []
|
|
||||||
|
|
||||||
[tool.ruff.format]
|
[tool.ruff.format]
|
||||||
quote-style = "double"
|
quote-style = "double"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user