Skip to content

Commit

Permalink
adding flake8 (#12)
Browse files Browse the repository at this point in the history
* adding flake8

* adding flake8

* adding flake8
  • Loading branch information
manuel-sommer authored Oct 16, 2023
1 parent 228c36b commit f9bbf95
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[flake8]
# Documentation for flake8 http://flake8.pycqa.org/en/3.1.1/user/index.html

# we should not ignore these mistakes !!!!!!!!

ignore =
# undefined file name excpetion
F821


exclude =
# No need to traverse our git directory
.git,
# There's no value in checking cache directories
__pycache__,
# This contains of branch that we don't want to check
# dev
max-complexity = 10
17 changes: 17 additions & 0 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: flake8 Lint

on: [push, pull_request]

jobs:
flake8-lint:
runs-on: ubuntu-latest
name: Lint
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: flake8 Lint
uses: py-actions/flake8@v2

0 comments on commit f9bbf95

Please sign in to comment.