Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Add PEP8 linting
Browse files Browse the repository at this point in the history
  • Loading branch information
failwiz committed Feb 8, 2024
1 parent b00f2b3 commit ead7117
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
name: Main Taski Workflow
name: Main Taski workflow

on:
push:
branches:
- main

jobs:
checkout-and-print-tree:
tests:
runs-on: ubuntu-latest

steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Print project tree
run: tree .
- name: Check out code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8==6.0.0 flake8-isort==6.0.0
- name: Test with flake8
run: python -m flake8 backend/
15 changes: 15 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[flake8]
ignore =
W503,
F811
exclude =
tests/,
*/migrations/,
venv/,
*/venv/,
.venv/,
*/.venv/,
env/,
*/env/,
per-file-ignores =
*/settings.py:E501

0 comments on commit ead7117

Please sign in to comment.