Skip to content

Commit

Permalink
Enable pylint and pygrep rules in ruff, and label rules. (#1487)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrudd2 committed Apr 11, 2023
1 parent 6f7b66e commit 248f8de
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
33 changes: 19 additions & 14 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,25 @@ ignore = [
]
line-length = 120
select = [
"D",
"E",
"F",
"W",
"SIM105",
"SIM117",
"SIM118",
"SIM201",
"SIM212",
"SIM300",
"SIM401",
"RUF",
"I",
"U",
"D", # docstrings
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"SIM105", # flake8-simplify
"SIM117", #
"SIM118", #
"SIM201", #
"SIM212", #
"SIM300", #
"SIM401", #
"RUF", # ruff builtins
"I", # isort
"UP", # pyupgrade
"PLC", # pylint
"PGH", # pygrep-hooks
# "TRY", # tryceratops
# "B", # bandit
# "C", # complexity
]
[pydocstyle]
convention = "pep257"
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
from setuptools import setup


dependencies = {}
dependencies: dict = {}
with open("requirements.txt") as reqs:
option = None
for line in reqs.read().split("\n"):
if line == "":
if not line:
option = None
elif line.startswith("# install:"):
option = line.split(":")[1]
Expand Down

0 comments on commit 248f8de

Please sign in to comment.