Skip to content

Commit 2ef2461

Browse files
committed
add linting test
1 parent cd22f6b commit 2ef2461

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/tests.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,21 @@ jobs:
3131
uses: codecov/[email protected]
3232
with:
3333
flags: unittests
34+
35+
lint:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/checkout@v3
39+
40+
- name: Set up Python
41+
uses: actions/setup-python@v4
42+
with:
43+
python-version: "3.11"
44+
45+
- name: Install test dependencies
46+
run: |
47+
python -m pip install --upgrade --no-cache-dir pip
48+
pip install --no-cache-dir flake8
49+
50+
- name: Test linting with flake8
51+
run: flake8 --max-line-length=127

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ skip_install = true
2121
deps =
2222
flake8
2323
commands =
24-
flake8 --max-line-length=120
24+
flake8 --max-line-length=127
2525

2626
# Flake8 Configuration
2727
[flake8]

0 commit comments

Comments
 (0)