Skip to content

chore(tooling): add missing code formatting checks (ruff format --check) #1397

@danceratopz

Description

@danceratopz

#1326 replaced flake8, isort and black with ruff 🚀

While tox -e static runs ruff check which handles the checks isort and flake8 were previously responsible for:

execution-specs/tox.ini

Lines 11 to 22 in 51cabd8

[testenv:static]
extras =
lint
optimized
test
doc
commands =
codespell -I whitelist.txt {tox_root}/src --skip '{tox_root}/src/ethereum_spec_tests'
ruff check src --exclude src/ethereum_spec_tests
mypy src --exclude "src/ethereum_spec_tests/*" --namespace-packages
ethereum-spec-lint
uv lock --check

tox doesn't have the checks that black previously performed, i.e., we should still add:

ruff format --check src --exclude src/ethereum_spec_tests

Unfortunately, as it stands, this would reformat 389 files.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions