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]
|
||||
select = [
|
||||
"E",
|
||||
"W",
|
||||
"F",
|
||||
"I",
|
||||
"B",
|
||||
"C4",
|
||||
"UP",
|
||||
"E", # pycodestyle errors
|
||||
"W", # pycodestyle warnings
|
||||
"F", # pyflakes
|
||||
"I", # isort
|
||||
"B", # flake8-bugbear
|
||||
"C4", # flake8-comprehensions
|
||||
"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]
|
||||
quote-style = "double"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user