Skip to content

armgit / rembg

Public Imported from GitHub
0

Rembg is a tool to remove images background

fix lint

Daniel Gatisc0ebf1cede71
diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml
index bdf0b51..a3196f2 100644
--- a/.github/workflows/lint_python.yml
+++ b/.github/workflows/lint_python.yml
@@ -10,8 +10,8 @@ jobs:
- uses: actions/setup-python@v2
- run: pip install --upgrade pip wheel
- run: pip install bandit black flake8 flake8-bugbear flake8-comprehensions isort safety
- - run: bandit --recursive --skip B101,B104,B310,B311,B303 ./src
- - run: black --check --diff ./src
- - run: flake8 ./src --count --ignore=E203,E266,E731,F401,F811,F841,W503 --max-complexity=15 --max-line-length=120 --show-source --statistics
+ - run: bandit --recursive --skip B101,B104,B310,B311,B303 --exclude ./src/_version.py ./src
+ - run: black --force-exclude src/_version.py --check --diff ./src
+ - run: flake8 ./src --count --ignore=E203,E266,E731,F401,F811,F841,W503 --max-complexity=15 --max-line-length=120 --show-source --statistics --exclude ./src/_version.py
- run: isort --check-only --profile black ./src
- run: safety check
diff --git a/pyproject.toml b/pyproject.toml
index 6911968..c0553ca 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -5,8 +5,8 @@ requires = ["setuptools>=40.8.0", "wheel"]
build-backend = "setuptools.build_meta"
[versioneer]
-VCS = git
-style = default
-versionfile_source = src/_version.py
-versionfile_build = _version.py
-tag_prefix =
+VCS = "git"
+style = "default"
+versionfile_source = "src/_version.py"
+versionfile_build = "_version.py"
+tag_prefix = ""