-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruff.toml
124 lines (117 loc) · 2.21 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
line-length = 120
target-version = "py38"
select = [
# pyflakes
"F",
# pycodestyle
"E",
"W",
# mccabe
"C90",
# isort
"I",
# pydocstyle
"D",
# pyupgrade
"UP",
# pep8-naming
"N",
# flake8-blind-except
"BLE",
# flake8-2020
"YTT",
# flake8-builtins
"A",
# flake8-comprehensions
"C4",
# flake8-debugger
"T10",
# flake8-errmsg
"EM",
# flake8-implicit-str-concat
"ISC",
# flake8-pytest-style
"PT",
# flake8-return
"RET",
# flake8-simplify
"SIM",
# flake8-unused-arguments
"ARG",
# pandas-vet
"PD",
# pygrep-hooks
"PGH",
# flake8-bugbear
"B",
# flake8-quotes
"Q",
# pylint
"PL",
# flake8-pie
"PIE",
# flake8-type-checking
"TCH",
# tryceratops
"TRY",
# flake8-use-pathlib
"PTH",
"RUF"
]
ignore = [
# No explicit stacklevel keyword argument found in logging calls
"B028",
# controversial
"B006",
# controversial
"B008",
"B010",
# Magic constants
"PLR2004",
# Strings in error messages
"EM101",
"EM102",
"EM103",
# Multiline docstring summary
"D213",
# Undefined local with import star usage
"F403",
# Undefined local with import star usage
"F405",
# Varaibles before return
"RET504",
# Abstract raise into inner function
"TRY301",
# Avoid specifying long messages outside the exception class
"TRY003",
# Use type-checking block
"TCH001",
"TCH002",
"TCH003",
# .pivot_table is preferred to .pivot or .unstack; provides same functionality
"PD010",
# df as varaible name
"PD901",
# melt over stack
"PD013"
]
exclude = [
"doc/sphinxext/*.py",
"doc/build/*.py",
"doc/temp/*.py",
".eggs/*.py",
"example_data",
"examples",
# automatically generated code
"open_sync_board_gui/components",
"open_sync_board_gui/ui",
"open_sync_board_gui/resources.py",
"open_sync_board_gui/resources_rc.py",
]
[pylint]
max-args = 15
[pydocstyle]
convention = "numpy"
[pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true