Daniel Gatis 3 years ago
parent
commit
c0ebf1cede
2 changed files with 8 additions and 8 deletions
  1. 3 3
      .github/workflows/lint_python.yml
  2. 5 5
      pyproject.toml

+ 3 - 3
.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

+ 5 - 5
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 = ""