Skip to content

Commit 248f8de

Browse files
authored
Enable pylint and pygrep rules in ruff, and label rules. (#1487)
1 parent 6f7b66e commit 248f8de

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

ruff.toml

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,25 @@ ignore = [
1414
]
1515
line-length = 120
1616
select = [
17-
"D",
18-
"E",
19-
"F",
20-
"W",
21-
"SIM105",
22-
"SIM117",
23-
"SIM118",
24-
"SIM201",
25-
"SIM212",
26-
"SIM300",
27-
"SIM401",
28-
"RUF",
29-
"I",
30-
"U",
17+
"D", # docstrings
18+
"E", # pycodestyle errors
19+
"W", # pycodestyle warnings
20+
"F", # pyflakes
21+
"SIM105", # flake8-simplify
22+
"SIM117", #
23+
"SIM118", #
24+
"SIM201", #
25+
"SIM212", #
26+
"SIM300", #
27+
"SIM401", #
28+
"RUF", # ruff builtins
29+
"I", # isort
30+
"UP", # pyupgrade
31+
"PLC", # pylint
32+
"PGH", # pygrep-hooks
33+
# "TRY", # tryceratops
34+
# "B", # bandit
35+
# "C", # complexity
3136
]
3237
[pydocstyle]
3338
convention = "pep257"

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
from setuptools import setup
99

1010

11-
dependencies = {}
11+
dependencies: dict = {}
1212
with open("requirements.txt") as reqs:
1313
option = None
1414
for line in reqs.read().split("\n"):
15-
if line == "":
15+
if not line:
1616
option = None
1717
elif line.startswith("# install:"):
1818
option = line.split(":")[1]

0 commit comments

Comments
 (0)