Skip to content

armgit / rembg

Public Imported from GitHub
0

Rembg is a tool to remove images background

Make bandit and codespell mandatory tests

Christian Claussb5397c65d830
diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml
index 8eaeb1a..d7d7b62 100644
--- a/.github/workflows/lint_python.yml
+++ b/.github/workflows/lint_python.yml
@@ -9,11 +9,11 @@ jobs:
- run: pip install --upgrade pip wheel
- run: pip install bandit black codespell flake8 flake8-bugbear
flake8-comprehensions isort mypy pytest pyupgrade safety
- - run: bandit --recursive --skip B101 . || true # B101 is assert statements
+ - run: bandit --recursive --skip B101,B104,B310,B311 .
- run: black --check . || true
- - run: codespell || true # --ignore-words-list="" --skip="*.css,*.js,*.lock"
- - run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- - run: flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88
+ - run: codespell
+ - run: flake8 . --count --ignore=B001,E203,E266,E722,E731,F401,F811,F841
+ --max-complexity=10 --max-line-length=121
--show-source --statistics
- run: isort --check-only --profile black . || true
- run: pip install -r requirements.txt || pip install --editable . || true