Start using new ruff linter.

This commit is contained in:
Martin Liska 2022-12-09 15:10:22 +01:00
parent 9d6cf1ea12
commit 275060319c
2 changed files with 6 additions and 2 deletions

View File

@ -102,11 +102,11 @@ jobs:
if: ${{ contains(matrix.container, 'fedora') && matrix.build-type == 'normal' }}
- run: rm -rf $(rpm --eval '%_dbpath')
if: matrix.build-type == 'no-optional-deps'
- run: pip install coveralls
- run: pip install pyupgrade
- run: pip install coveralls pyupgrade ruff
- uses: actions/checkout@v3
- run: pytest
- run: flake8
- run: ruff .
- run: find . -name '*.py' | xargs pyupgrade --py38-plus
- run: python3 -m cProfile -o profile.stats lint.py -V test/source/* test/binary/* > /dev/null
- run: python3 test/dump_stats.py profile.stats

View File

@ -4,3 +4,7 @@ requires = [
"wheel"
]
build-backend = "setuptools.build_meta"
[tool.ruff]
ignore = ["E501"]