-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruff.toml
35 lines (30 loc) · 832 Bytes
/
ruff.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
line-length = 120
[lint]
select = [
"E", # Pycodestyle
"F", # Pyflakes
"I", # Isort
"N", # Naming
"COM", # Commas
"T", # Print and debugger statements
"ANN", # Type annotations
"A", # Builtins shadowing
"Q", # Quotes
"RET", # Return statements
"SIM", # Pieces known to be simplifiable
"ERA", # Commented out code
"PL", # Pylint
"D", # Docstrings
"PT", # Pytest
"ICN", # Imports convention
]
[lint.isort]
known-first-party = ["ticket_to_ride"]
[lint.pydocstyle]
convention = "google"
[lint.flake8-pytest-style]
parametrize-values-type = "tuple"
parametrize-values-row-type = "tuple"
[lint.per-file-ignores]
"__init__.py" = ["F401", "F403"] # Allow unused or undetectable imports to expose objects.
"__about__.py" = ["D"] # Do not require docstring in this module.