Skip to content

Commit

Permalink
prospector --> ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-huber committed Nov 21, 2024
1 parent 5962b45 commit c016ef1
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/CI_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ on:
jobs:

first_check:
name: first code check / python-3.10 / ubuntu-latest
name: first code check / python-3.12 / ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.12'
- name: Python info
run: |
which python
Expand All @@ -39,9 +39,8 @@ jobs:
poetry run pytest --cov --cov-report term --cov-report xml --junitxml=xunit-result.xml
- name: Correct coverage paths
run: sed -i "s+$PWD/++g" coverage.xml
- name: Check style against standards using prospector
shell: bash -l {0}
run: poetry run prospector -o grouped -o pylint:pylint-report.txt
- name: Check style against standards using Ruff
run: ruff check .
- name: Check whether import statements are used consistently
run: poetry run isort . --check-only --diff

Expand All @@ -51,10 +50,10 @@ jobs:
needs: first_check
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.12'
- name: Python info
run: |
which python
Expand Down

0 comments on commit c016ef1

Please sign in to comment.