Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ruff #638

Merged
merged 3 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading