mirror of
https://github.com/creyD/creyPY.git
synced 2026-04-12 19:30:30 +02:00
30 lines
691 B
YAML
30 lines
691 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
- master
|
|
paths-ignore:
|
|
- "**/.github/**"
|
|
- "**/.gitignore"
|
|
- "**/.vscode/**"
|
|
- "**/README.md"
|
|
- "**/CHANGELOG.md"
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: psf/black@stable
|
|
with:
|
|
options: "-l 100 --exclude '/.venv/|/__init__.py'"
|
|
- uses: creyD/autoflake_action@master
|
|
with:
|
|
no_commit: True
|
|
options: --in-place --remove-all-unused-imports -r --exclude **/__init__.py,**/db/models.py,
|
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
|
with:
|
|
commit_message: Adjusted files for isort & autopep
|