Skip to content

Commit

Permalink
Merge pull request #131 from Remi-Gau/flake8
Browse files Browse the repository at this point in the history
[MAINT] Flake8
  • Loading branch information
gdevenyi authored Sep 14, 2023
2 parents f1ae581 + 7bea76b commit d7bae8e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
10 changes: 10 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[flake8]
exclude =
.git,
__pycache__,
build,
dist,
env,
venv,
max-line-length = 127
max-complexity=10
2 changes: 1 addition & 1 deletion .github/workflows/autotest.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI workflow
name: test

on:
# this workflow triggered on below condition [push, pull_request]
Expand Down
21 changes: 11 additions & 10 deletions .github/workflows/main.yml → .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
name: CI workflow
name: flake8

on:
# this workflow triggered on below condition [push, pull_request]
push:
branches: [ master ]
branches: [ main ]
pull_request:
branches: [ master ]
branches: [ '*' ]

# cancel previous similar workflow runs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Set up python ${{ matrix.python-version }}
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install flake8
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down

0 comments on commit d7bae8e

Please sign in to comment.