File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -425,7 +425,6 @@ jobs:
425
425
- checkout
426
426
- pip-install
427
427
- run : ruff check
428
- - run : ruff check --preview --select=E303
429
428
mypy :
430
429
executor : bionic
431
430
steps :
Original file line number Diff line number Diff line change @@ -12,12 +12,17 @@ exclude = [
12
12
" .git" ,
13
13
]
14
14
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
15
19
lint.select = [
16
20
" ARG" ,
17
21
" ASYNC" ,
18
22
" B" ,
19
23
" C90" ,
20
24
" E" ,
25
+ " E303" , # E303: too many blank lines -- explicit-preview-rule
21
26
" F" ,
22
27
" PERF" ,
23
28
" PL" ,
@@ -50,10 +55,9 @@ lint.ignore = [
50
55
" PLW2901" ,
51
56
]
52
57
58
+ lint.explicit-preview-rules = true
53
59
lint.per-file-ignores."emrun.py" = [ " PLE0704" ]
54
-
55
60
lint.mccabe.max-complexity = 48 # Recommended: 10
56
-
57
61
lint.pylint.allow-magic-value-types = [
58
62
" bytes" ,
59
63
" float" ,
@@ -65,6 +69,8 @@ lint.pylint.max-branches = 49 # Recommended: 12
65
69
lint.pylint.max-returns = 16 # Recommended: 6
66
70
lint.pylint.max-statements = 142 # Recommended: 50
67
71
72
+ lint.preview = true
73
+
68
74
[tool .coverage .run ]
69
75
source = [ " ." ]
70
76
omit = [
You can’t perform that action at this time.
0 commit comments