codestyle added

This commit is contained in:
pseusys
2023-02-17 18:04:37 +01:00
parent df515b2378
commit 28c4c66272
2 changed files with 29 additions and 0 deletions

24
.github/workflows/codestyle.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: CODESTYLE
on:
push:
jobs:
lint:
name: Run codestyle check
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Python 3.6 🐍
uses: actions/setup-python@v3
with:
python-version: 3.6
- name: Install Dependencies 📥
run: pip install -r requirements.txt
- name: Run Codestyle ✔️
run: flake8 --max-line-length=160 --exclude venv,assets .

View File

@@ -38,6 +38,11 @@ run-container:
.PHONY: run-container
lint:
@ # Run flake8 linter
flake8 --max-line-length=160 --exclude venv,assets .
.PHONY: lint
clean:
@ # Clean all build files, including: libraries, package manager configs, docker images and containers
rm -rf venv