Skip to content

Commit

Permalink
add linting test
Browse files Browse the repository at this point in the history
  • Loading branch information
willforde committed Nov 2, 2022
1 parent cd22f6b commit 2ef2461
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,21 @@ jobs:
uses: codecov/codecov-action@v3.1.1
with:
flags: unittests

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Install test dependencies
run: |
python -m pip install --upgrade --no-cache-dir pip
pip install --no-cache-dir flake8
- name: Test linting with flake8
run: flake8 --max-line-length=127
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ skip_install = true
deps =
flake8
commands =
flake8 --max-line-length=120
flake8 --max-line-length=127

# Flake8 Configuration
[flake8]
Expand Down

0 comments on commit 2ef2461

Please sign in to comment.