@@ -427,19 +427,6 @@ exclude = ["tests/fixtures/", "eest_tests/"]
427427ignore_names = [" pytest_*" ]
428428
429429[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- ]
443430line-length = 79
444431
445432[tool .ruff .lint ]
@@ -451,6 +438,8 @@ select = [
451438 " I" , # isort
452439 " A" , # flake8-builtins
453440 " N" , # pep8-naming
441+ " D" , # pydocstyle
442+ " C4" , # flake8-comprehensions
454443 " ARG" , # flake8-unused-arguments
455444]
456445fixable = [
@@ -463,34 +452,17 @@ fixable = [
463452]
464453ignore = [
465454# 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
472457 " D107" , # Missing docstring in __init__
473458 " 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
476462 " 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 ':'
484463]
485464
486465[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- ]
494466"src/ethereum_spec_tools/evm_tools/loaders/fork_loader.py" = [
495467 " N802" # Property names do not need to be lowercase
496468]
@@ -508,10 +480,6 @@ ignore = [
508480 " N815" # The traces must use camel case in JSON property names
509481]
510482
511- [tool .ruff .lint .mccabe ]
512- # Set the maximum allowed cyclomatic complexity. C901 default is 10.
513- max-complexity = 7
514-
515483[tool .codespell ]
516484builtin = " clear,code,usage" # Built-in dictionaries to use
517485skip = [ # Don't check these files/folders
0 commit comments