You've already forked wakapi-readme-stats
codestyle added
This commit is contained in:
24
.github/workflows/codestyle.yml
vendored
Normal file
24
.github/workflows/codestyle.yml
vendored
Normal 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 .
|
||||||
5
Makefile
5
Makefile
@@ -38,6 +38,11 @@ run-container:
|
|||||||
.PHONY: run-container
|
.PHONY: run-container
|
||||||
|
|
||||||
|
|
||||||
|
lint:
|
||||||
|
@ # Run flake8 linter
|
||||||
|
flake8 --max-line-length=160 --exclude venv,assets .
|
||||||
|
.PHONY: lint
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@ # Clean all build files, including: libraries, package manager configs, docker images and containers
|
@ # Clean all build files, including: libraries, package manager configs, docker images and containers
|
||||||
rm -rf venv
|
rm -rf venv
|
||||||
|
|||||||
Reference in New Issue
Block a user