Start using new ruff linter.
This commit is contained in:
parent
9d6cf1ea12
commit
275060319c
|
@ -102,11 +102,11 @@ jobs:
|
||||||
if: ${{ contains(matrix.container, 'fedora') && matrix.build-type == 'normal' }}
|
if: ${{ contains(matrix.container, 'fedora') && matrix.build-type == 'normal' }}
|
||||||
- run: rm -rf $(rpm --eval '%_dbpath')
|
- run: rm -rf $(rpm --eval '%_dbpath')
|
||||||
if: matrix.build-type == 'no-optional-deps'
|
if: matrix.build-type == 'no-optional-deps'
|
||||||
- run: pip install coveralls
|
- run: pip install coveralls pyupgrade ruff
|
||||||
- run: pip install pyupgrade
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- run: pytest
|
- run: pytest
|
||||||
- run: flake8
|
- run: flake8
|
||||||
|
- run: ruff .
|
||||||
- run: find . -name '*.py' | xargs pyupgrade --py38-plus
|
- 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 -m cProfile -o profile.stats lint.py -V test/source/* test/binary/* > /dev/null
|
||||||
- run: python3 test/dump_stats.py profile.stats
|
- run: python3 test/dump_stats.py profile.stats
|
||||||
|
|
|
@ -4,3 +4,7 @@ requires = [
|
||||||
"wheel"
|
"wheel"
|
||||||
]
|
]
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
[tool.ruff]
|
||||||
|
|
||||||
|
ignore = ["E501"]
|
||||||
|
|
Loading…
Reference in New Issue