Skip to content

Commit

Permalink
flake8 linting
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Oct 14, 2024
1 parent 0af34c1 commit 2ddabbc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[flake8]
max-line-length = 100
# E123: closing bracket does not match indentation of opening bracket's line
# E126: continuation line over-indented for hanging indent
# E226: missing whitespace around arithmetic operator
# E402: Module level import not at top of file
# W503: line break before binary operator
# W504: line break after binary operator
ignore = E123,E126,E226,E402,W503,W504
13 changes: 13 additions & 0 deletions .github/workflows/on_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ on:
pull_request:

jobs:
flake8-lint:
runs-on: ubuntu-latest
name: Code Style
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 codestyle
uses: py-actions/flake8@v2

build:
runs-on: ${{ matrix.os }}
strategy:
Expand Down

0 comments on commit 2ddabbc

Please sign in to comment.