Skip to content

Commit

Permalink
Merge pull request #638 from trakt/add-ruff
Browse files Browse the repository at this point in the history
Add ruff
  • Loading branch information
razzeee authored Jan 25, 2024
2 parents d217be5 + 1e4abcf commit 46f474f
Show file tree
Hide file tree
Showing 16 changed files with 2,700 additions and 1,586 deletions.
3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ changelog.txt export-ignore
tests export-ignore
.travis.yml export-ignore
.gitlab-ci.yml export-ignore
HOW_TO_RELEASE.md export-ignore
HOW_TO_RELEASE.md export-ignore
ruff.toml export-ignore
10 changes: 9 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,18 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install python-dateutil pytest mock pytest-cov coverage
pip install python-dateutil pytest mock pytest-cov coverage ruff
- name: Check code formatting
run: ruff format .

- name: Check for code errors
run: ruff check .

- name: Run Test
run: |
py.test --cov coveralls --cov-report term-missing --cov-report=lcov --cov=resources tests/
- name: Coveralls GitHub Action
uses: coverallsapp/[email protected]
with:
Expand Down
Loading

0 comments on commit 46f474f

Please sign in to comment.