Skip to content

Commit 9bdc30e

Browse files
author
Alex J Lennon
committed
Fix CI configuration files
- Fix .flake8 config syntax (remove inline comments) - Simplify pytest.ini (coverage options in workflow) - Ensure CI pipeline runs correctly
1 parent 35a440d commit 9bdc30e

3 files changed

Lines changed: 3 additions & 8 deletions

File tree

.flake8

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ exclude =
88
env,
99
.eggs,
1010
*.egg
11-
ignore =
12-
E203, # whitespace before ':'
13-
E501, # line too long (handled by max-line-length)
14-
W503, # line break before binary operator
11+
ignore = E203,E501,W503
1512
per-file-ignores =
1613
__init__.py:F401
1714

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ jobs:
4141
run: |
4242
pylint webcam_server_simple.py webcam_server.py test_webcam_server.py --disable=C0111 --max-line-length=127 || true
4343
44-
- name: Run tests
44+
- name: Run tests with coverage
4545
run: |
46-
python -m pytest test_webcam_server.py -v --cov=. --cov-report=term-missing
46+
python -m pytest test_webcam_server.py -v --cov=. --cov-report=term-missing --cov-report=html
4747
4848
- name: Check code formatting (optional - informational)
4949
run: |

pytest.ini

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,4 @@ addopts =
77
-v
88
--strict-markers
99
--tb=short
10-
--cov-report=term-missing
11-
--cov-report=html
1210

0 commit comments

Comments
 (0)