use ruff rather than flake8 for python code linting (#37045)

The initially used config is compatible with flake8 rules, including all
pycodestyle (pep8) and pyflakes rules.

Testing: Broke some python files and used `mach test-tidy --all` to test
the linting.
Fixes: servo/servo#37041

Signed-off-by: zefr0x <zer0-x.7ty50@aleeas.com>
This commit is contained in:
zefr0x 2025-05-24 17:19:47 +03:00 committed by GitHub
parent 88fd2e43c8
commit 60eb7c923d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 46 additions and 40 deletions

View file

@ -8,10 +8,8 @@ mozlog == 8.0.0
setuptools == 78.1.1
toml == 0.9.2
# For Python linting
flake8 == 7.0.0
pep8 == 1.5.7
pyflakes == 3.2.0
# For Python linting and formatting
ruff == 0.11.10
# For test-webidl
ply == 3.8