File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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
1519lint.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
5359lint.per-file-ignores."emrun.py" = [ " PLE0704" ]
54-
5560lint.mccabe.max-complexity = 48 # Recommended: 10
56-
5761lint.pylint.allow-magic-value-types = [
5862 " bytes" ,
5963 " float" ,
@@ -65,6 +69,8 @@ lint.pylint.max-branches = 49 # Recommended: 12
6569lint.pylint.max-returns = 16 # Recommended: 6
6670lint.pylint.max-statements = 142 # Recommended: 50
6771
72+ lint.preview = true
73+
6874[tool .coverage .run ]
6975source = [ " ." ]
7076omit = [
You can’t perform that action at this time.
0 commit comments