@@ -427,19 +427,6 @@ exclude = ["tests/fixtures/", "eest_tests/"]
427
427
ignore_names = [" pytest_*" ]
428
428
429
429
[tool .ruff ]
430
- extend-exclude = [
431
- " .cache/" ,
432
- " .git/" ,
433
- " .pytest_cache/" ,
434
- " .ruff_cache/" ,
435
- " .tox/" ,
436
- " .venv/" ,
437
- " .vscode/" ,
438
- " tests/fixtures/*" ,
439
- " tests/json_infra/fixtures/*" ,
440
- " eest_tests/*" ,
441
- " vulture_whitelist.py" ,
442
- ]
443
430
line-length = 79
444
431
445
432
[tool .ruff .lint ]
@@ -451,6 +438,8 @@ select = [
451
438
" I" , # isort
452
439
" A" , # flake8-builtins
453
440
" N" , # pep8-naming
441
+ " D" , # pydocstyle
442
+ " C4" , # flake8-comprehensions
454
443
" ARG" , # flake8-unused-arguments
455
444
]
456
445
fixable = [
@@ -463,34 +452,17 @@ fixable = [
463
452
]
464
453
ignore = [
465
454
# Common to STEEL
466
- " D205" , # Missing blank line after summary
467
- " D203" , # 1 blank line required before class docstring
468
- " D212" , # Multi-line docstring summary should start at the first line
469
- " D415" , # First line should end with a ".", "?", or "!"
470
-
471
- # Specific to EELS
455
+ " C401" , # Unnecessary generator set
456
+ " C408" , # Unnecessary collection call
472
457
" D107" , # Missing docstring in __init__
473
458
" D200" , # One-line docstring should fit on one line with quotes
474
- " D205" , # 1 blank line required between summary and description
475
- " D400" , # First line should end with a period
459
+ " D203" , # 1 blank line required before class docstring
460
+ " D205" , # Missing blank line after summary
461
+ " D212" , # Multi-line docstring summary should start at the first line
476
462
" D401" , # First line should be in imperative mood ("Do", not "Does")
477
- " D410" , # Missing blank line after last section (Args, Returns, Raises)
478
- " D411" , # Missing blank line before last section
479
- " D412" , # No blank lines between sections
480
- " D413" , # Missing blank line after last section (same as 410)
481
- " D414" , # Section should end with a period
482
- " D416" , # Section names should be in the correct order
483
- " E203" , # Whitespace before ':'
484
463
]
485
464
486
465
[tool .ruff .lint .per-file-ignores ]
487
- "tests/*" = [
488
- " D100" , # Missing docstring in public module
489
- " D101" , # Missing docstring in public class
490
- " D103" , # Missing docstring in public function
491
- " D104" , # Missing docstring in public package
492
- " E501" , # Line too long
493
- ]
494
466
"src/ethereum_spec_tools/evm_tools/loaders/fork_loader.py" = [
495
467
" N802" # Property names do not need to be lowercase
496
468
]
@@ -508,10 +480,6 @@ ignore = [
508
480
" N815" # The traces must use camel case in JSON property names
509
481
]
510
482
511
- [tool .ruff .lint .mccabe ]
512
- # Set the maximum allowed cyclomatic complexity. C901 default is 10.
513
- max-complexity = 7
514
-
515
483
[tool .codespell ]
516
484
builtin = " clear,code,usage" # Built-in dictionaries to use
517
485
skip = [ # Don't check these files/folders
0 commit comments