Skip to content

Commit

Permalink
Add Flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
NebularNerd committed Feb 4, 2025
1 parent e6a0b48 commit 229c894
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 41 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# https://github.com/marketplace/actions/flake8-annotate-action

name: Flake8 Lint
"on": ["push"]

jobs:
flake8:
name: Flake8 tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: gijswobben/flake8-action@main
with:
strict: true
strict_for: "E501"
not_strict_for: "E502,E503"
message_title: "Flake8 error found"
flake8_config: |
[flake8]
exclude = examples/ tests/
max-line-length = 120
extend-ignore =
# See https://github.com/PyCQA/pycodestyle/issues/373
E203,
additional_packages: pep8-naming==0.13.2 flake8-annotations==2.9.1 darglint==1.8.1 flake8-bugbear==22.10.27
40 changes: 0 additions & 40 deletions .github/workflows/python-package.yml

This file was deleted.

Binary file added __pycache__/subtotxt.cpython-310-pytest-8.3.2.pyc
Binary file not shown.
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,11 @@ exclude = '''
| venv
| test/resources
)/
'''
'''

[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
testpaths = [
"tests"
]
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

0 comments on commit 229c894

Please sign in to comment.