-
-
Notifications
You must be signed in to change notification settings - Fork 81
/
ruff.toml
67 lines (63 loc) · 1.95 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
extend-select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"D", # pydocstyle
"C90", # flake8-comprehensions
"B", # flake8-bugbear
"Q", # flake8-quotes
"S", # flake8-bandit
"ASYNC", # flake8-async
"ANN", # annotations
"C",
"BLE",
"ERA",
"ICN",
"INP",
"ISC",
"NPY",
"PGH",
"PIE",
"RET",
"RSE",
"SIM",
"T20",
"TCH",
"TID",
"YTT",
]
line-length = 120
target-version = "py37"
ignore = [
"ISC001", # conftlics with format
"PGH004", # use specific rule code with noqa; works bad with JetBrains IDE Warnings
"ANN002", # Missing type annotation for `*args`
"ANN003", # Missing type annotation for `**kwargs`
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `*args`
"ANN101", # Missing type annotation for `self` in method
"ANN102", # Missing type annotation for `cls` in classmethod
"D203", # we are not using blank line before class
"D213", # we are using first line for summary
"D406", "D407", # we are using google style docstring
"S101", # Use of `assert` detected
"PGH003", # Use specific rule codes when ignoring type issue
]
[per-file-ignores]
"yandex_music/*.py" = [
"D105", "D104", "D100", "D107", "D103", "D415", # missing docstring
"D400", # first line should end with a period. TODO(MarshalX): We are using strange docsting style for methods-shortcuts
]
"yandex_music/__init__.py" = ["I001"] # Import sort
"yandex_music/client*.py" = ["T201"] # print
"tests/*.py" = ["S101", "ANN", "D"]
"tests/__init__.py" = ["F401"] # Unused import
"test.py" = ["S101", "ERA001", "T201", "E501", "F401", "F841"]
"docs/source/conf.py" = ["INP001"]
"examples/*.py" = ["T201", "S311", "ERA001", "INP001", "S106", "BLE001", "S603", "ANN", "D"]
[flake8-quotes]
docstring-quotes = "double"
multiline-quotes = "double"
inline-quotes = "single"
[format]
quote-style = "single"