Skip to content

Commit

Permalink
adjusted linters in pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
sergioteula committed Oct 4, 2024
1 parent d80b46b commit a38046c
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,50 +13,50 @@ jobs:
isort:
runs-on: ubuntu-latest
container:
image: sergioteula/pytools
volumes:
- ${{github.workspace}}:/code
image: python:3.12
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install dependencies
run: pip install isort
- name: Check imports order
run: ./scripts/check_isort
run: isort -c --color .

black:
runs-on: ubuntu-latest
container:
image: sergioteula/pytools
volumes:
- ${{github.workspace}}:/code
image: python:3.12
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install dependencies
run: pip install black
- name: Check code format
run: ./scripts/check_black
run: black --check --diff --color .

flake8:
runs-on: ubuntu-latest
container:
image: sergioteula/pytools
volumes:
- ${{github.workspace}}:/code
image: python:3.12
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install dependencies
run: pip install flake8
- name: Check code errors
run: ./scripts/check_flake8
run: flake8 .

pylint:
runs-on: ubuntu-latest
container:
image: sergioteula/pytools
volumes:
- ${{github.workspace}}:/code
image: python:3.12
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install dependencies
run: pip install pylint
- name: Check code errors
run: ./scripts/check_pylint
run: find . -type f -name '*.py' | xargs pylint --disable=missing-docstring --disable=too-few-public-methods

test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit a38046c

Please sign in to comment.