Skip to content

Commit 8422ad3

Browse files
committed
ruff check --preview --select=E303
1 parent 37a5a96 commit 8422ad3

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.circleci/config.yml

-1
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,6 @@ jobs:
425425
- checkout
426426
- pip-install
427427
- run: ruff check
428-
- run: ruff check --preview --select=E303
429428
mypy:
430429
executor: bionic
431430
steps:

pyproject.toml

+8-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,17 @@ exclude = [
1212
".git",
1313
]
1414

15+
# TODO (cclauss): When ruff supports rule E303 without --preview, remove
16+
# 1. lint.select E303
17+
# 2. lint.explicit-preview-rules = true, and
18+
# 3. lint.preview = true
1519
lint.select = [
1620
"ARG",
1721
"ASYNC",
1822
"B",
1923
"C90",
2024
"E",
25+
"E303", # E303: too many blank lines -- explicit-preview-rule
2126
"F",
2227
"PERF",
2328
"PL",
@@ -50,10 +55,9 @@ lint.ignore = [
5055
"PLW2901",
5156
]
5257

58+
lint.explicit-preview-rules = true
5359
lint.per-file-ignores."emrun.py" = [ "PLE0704" ]
54-
5560
lint.mccabe.max-complexity = 48 # Recommended: 10
56-
5761
lint.pylint.allow-magic-value-types = [
5862
"bytes",
5963
"float",
@@ -65,6 +69,8 @@ lint.pylint.max-branches = 49 # Recommended: 12
6569
lint.pylint.max-returns = 16 # Recommended: 6
6670
lint.pylint.max-statements = 142 # Recommended: 50
6771

72+
lint.preview = true
73+
6874
[tool.coverage.run]
6975
source = [ "." ]
7076
omit = [

0 commit comments

Comments
 (0)