forked from danielgatis/rembg
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (24 loc) · 1.05 KB
/
lint_python.yml
File metadata and controls
26 lines (24 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Lint
on:
push:
branches:
- "**"
pull_request:
jobs:
lint_python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
run: poetry install --with dev --extras "cpu cli"
- run: poetry run mypy --install-types --non-interactive --ignore-missing-imports ./rembg
- run: poetry run bandit --recursive --skip B101,B104,B310,B311,B303,B110 --exclude ./rembg/_version.py ./rembg
- run: poetry run black --force-exclude rembg/_version.py --check --diff ./rembg
- run: poetry run flake8 ./rembg --count --ignore=B008,C901,E203,E266,E731,F401,F811,F841,W503,E501,E402 --show-source --statistics --exclude ./rembg/_version.py
- run: poetry run isort --check-only --profile black ./rembg