27 lines
583 B
YAML
27 lines
583 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: docker
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install system dependencies
|
|
run: |
|
|
apt-get update
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
|
black pyflakes3 vulture python3-bandit
|
|
|
|
- name: Run linters
|
|
run: |
|
|
black --diff --check bouquin/*
|
|
black --diff --check tests/*
|
|
pyflakes3 bouquin/*
|
|
pyflakes3 tests/*
|
|
vulture
|
|
bandit -s B110 -r bouquin/
|