Skip to content

Commit 3fb7443

Browse files
committed
Make changes requested in code review
1 parent 4200898 commit 3fb7443

File tree

3 files changed

+24
-22
lines changed

3 files changed

+24
-22
lines changed

Diff for: .pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ repos:
1414
rev: v0.0.253
1515
hooks:
1616
- id: ruff
17-
# args: [--fix, --exit-non-zero-on-fix]
17+
args: [--fix, --exit-non-zero-on-fix, --show-fixes]

Diff for: .ruff.toml

+23-9
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,30 @@ exclude = [
66
"ci/templates",
77
"dist",
88
]
9-
line-length = 140
10-
select = [
11-
"E",
12-
"F",
13-
"I",
14-
"PLC",
15-
"PLE",
16-
"UP",
17-
"W",
9+
ignore = [
10+
"D", # pydocstyle
11+
"ANN", # flake8-annotations
12+
"ARG", # flake8-unused-arguments
13+
"BLE", # flake8-blind-except
14+
"C90", # mccabe
15+
"EM", # flake8-errmsg
16+
"FBT", # flake8-boolean-trap
17+
"INP", # flake8-no-pep420
18+
"PLR", # Pylint Refactor
19+
"PLW", # Pylint Warning
20+
"Q", # flake8-quotes
21+
"RET", # flake8-return
22+
"SIM102", # flake8-simplify collapsible-if
23+
"SIM105", # flake8-simplify use-contextlib-suppress
24+
"SLF", # flake8-self
25+
"T20", # flake8-print
26+
"S101", # flake8-bandit assert
27+
"S102", # flake8-bandit exec
28+
"S110", # flake8-bandit try-except-pass
29+
"TRY", # tryceratops
1830
]
31+
line-length = 140
32+
select = ["ALL"]
1933
target-version = "py37"
2034

2135
# [tool.ruff.isort] # <- TODO Uncomment when migrating to pyproject.toml

Diff for: setup.cfg

-12
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
1-
[flake8]
2-
max-line-length = 140
3-
exclude = .tox,.eggs,ci/templates,build,dist
4-
51
[tool:pytest]
62
testpaths = tests
73
python_files = test_*.py
84
addopts =
95
-ra
106
--strict
117
-p pytester
12-
13-
[tool:isort]
14-
force_single_line = True
15-
line_length = 120
16-
known_first_party = pytest_cov
17-
default_section = THIRDPARTY
18-
forced_separate = test_pytest_cov
19-
skip = .tox,.eggs,ci/templates,build,dist

0 commit comments

Comments
 (0)