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' }}
|
||||
- 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
|
||||
|
|
|
@ -4,3 +4,7 @@ requires = [
|
|||
"wheel"
|
||||
]
|
||||
build-backend = "setuptools.build_meta"
|
||||
|
||||
[tool.ruff]
|
||||
|
||||
ignore = ["E501"]
|
||||
|
|
Loading…
Reference in New Issue