Skip to content

Commit

Permalink
Merge pull request rpm-software-management#973 from marxin/experiment…
Browse files Browse the repository at this point in the history
…-with-ruff

Start using new ruff linter.
  • Loading branch information
marxin authored Dec 9, 2022
2 parents 9d6cf1e + 2750603 commit 9f0f8ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ requires = [
"wheel"
]
build-backend = "setuptools.build_meta"

[tool.ruff]

ignore = ["E501"]

0 comments on commit 9f0f8ce

Please sign in to comment.