forked from networkx/networkx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
24 lines (22 loc) · 668 Bytes
/
ruff.toml
File metadata and controls
24 lines (22 loc) · 668 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
select = [
"I", # isort
"UP", # pyupgrade
"C4", # flake8-comprehensions
"E713", # use 'key not in list'
"PIE", # flake8-pie
"PGH003", # forbid blanket 'type: ignore' comments
"PLR0402", # useless import alias
"SIM101", # merge 'isinstance' calls
"SIM109", # use a tuple for multiple comparisons
"SIM110", # convert loop to 'any'
"SIM111", # convert loop to 'all'
"SIM118", # use 'key in dict'
"SIM2", # simplify boolean comparisons
]
target-version = "py39"
[per-file-ignores]
"__init__.py" = ["I"]
"setup.py" = ["I"]
"examples/*.py" = ["I"]
"doc/*.py" = ["I"]
"tools/*.py" = ["I"]