Skip to content

Commit c8b1f6e

Browse files
Bordahugovk
andauthored
Apply suggestions from code review
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent a85bf40 commit c8b1f6e

File tree

2 files changed

+8
-25
lines changed

2 files changed

+8
-25
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@ repos:
1111
- id: debug-statements
1212
language_version: python3
1313
- repo: https://github.com/astral-sh/ruff-pre-commit
14-
rev: v0.2.0
14+
rev: v0.2.2
1515
hooks:
1616
- id: ruff-format
1717
args: ["--preview"]
1818
- id: ruff
19-
args: ["--fix"]
2019
- repo: https://github.com/asottile/pyupgrade
2120
rev: v3.15.1
2221
hooks:

pyproject.toml

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,17 @@ build-backend = "setuptools.build_meta"
77

88

99
[tool.ruff]
10+
fix = true
11+
# todo: drop when migrated project metadata from setup.cfg
1012
target-version = "py38"
1113
# Enable Pyflakes `E` and `F` codes by default.
1214
lint.select = [
13-
"E",
14-
"W", # see: https://pypi.org/project/pycodestyle
15-
"F", # see: https://pypi.org/project/pyflakes
16-
"I", #see: https://pypi.org/project/isort/
17-
"S", # see: https://pypi.org/project/flake8-bandit
18-
# "D", # see: https://pypi.org/project/pydocstyle
19-
# "N", # see: https://pypi.org/project/pep8-naming
15+
"E", # https://pypi.org/project/pyflakes/
16+
"W", # https://pypi.org/project/pycodestyle/
17+
"F", # https://pypi.org/project/pyflakes/
18+
"I", # https://pypi.org/project/isort/
19+
"S", # https://pypi.org/project/flake8-bandit/
2020
]
21-
#lint.extend-select = [
22-
# "A", # see: https://pypi.org/project/flake8-builtins
23-
# "B", # see: https://pypi.org/project/flake8-bugbear
24-
# "C4", # see: https://pypi.org/project/flake8-comprehensions
25-
# "PT", # see: https://pypi.org/project/flake8-pytest-style
26-
# "RET", # see: https://pypi.org/project/flake8-return
27-
# "ANN", # see: https://pypi.org/project/flake8-annotations
28-
#]
29-
#lint.ignore = [
30-
# "E731", # Do not assign a lambda expression, use a def
31-
#]
32-
lint.ignore-init-module-imports = true
33-
lint.unfixable = ["F401"]
3421

3522
[tool.ruff.lint.per-file-ignores]
3623
"test_*.py" = ["S101", "S311"]
@@ -39,9 +26,6 @@ lint.unfixable = ["F401"]
3926
# Use Google-style docstrings.
4027
convention = "google"
4128

42-
#[tool.ruff.pycodestyle]
43-
#ignore-overlong-task-comments = true
44-
4529
[tool.ruff.lint.mccabe]
4630
# Unlike Flake8, default to a complexity level of 10.
4731
max-complexity = 10

0 commit comments

Comments
 (0)