Skip to content

Commit

Permalink
Static checking: enforce refurb
Browse files Browse the repository at this point in the history
* configuration in pyproject.toml
* move pylint configuration to pyproject.toml
  • Loading branch information
penguinolog committed Nov 17, 2023
1 parent e7c3f77 commit 16d4e39
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 551 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/pythonpackage.yml
Expand Up @@ -82,8 +82,23 @@ jobs:
run: |
black --check exec_helpers
Refurb:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade refurb
- name: Lint with refurb
run: |
refurb exec_helpers
Test:
needs: [PEP8, PyLint, MyPy, Black] # isort is broken
needs: [PEP8, PyLint, MyPy, Black, Refurb] # isort is broken
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 6
Expand Down

0 comments on commit 16d4e39

Please sign in to comment.