diff --git a/.github/workflows/codestyle.yml b/.github/workflows/codestyle.yml new file mode 100644 index 0000000..eb29b76 --- /dev/null +++ b/.github/workflows/codestyle.yml @@ -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 . \ No newline at end of file diff --git a/Makefile b/Makefile index f07347f..9c92749 100644 --- a/Makefile +++ b/Makefile @@ -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