Skip to content

Commit

Permalink
Initial attempt at CI/CD. Started by adding linting pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Smurf2-pluto committed Nov 29, 2023
1 parent a13bf9e commit 61c784c
Show file tree
Hide file tree
Showing 3 changed files with 262 additions and 220 deletions.
19 changes: 19 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[flake8]
ignore = F401,
W504,
E501,
E722,
W605,
E203
exclude =
.git,
__pycache__,
.env,
*.pyc,
*.pyo,
*migrations*,

per-file-ignores =
__init__.py:F401,
settings.py:F405,
models.py:F403,
23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Lint

on: [push]

jobs:
flake8-lint:
runs-on: ubuntu-latest
name: flake8 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.10"

- name: Install flake8
run: pip install flake8

- name: Run flake8
run: flake8 .
Loading

0 comments on commit 61c784c

Please sign in to comment.