Skip to content

Commit 71bb841

Browse files
authored
Merge pull request #190 from gardenlinux/dev-tools-setup-improvements
dev tools improvements
2 parents 02879bd + f2e30f5 commit 71bb841

File tree

3 files changed

+36
-12
lines changed

3 files changed

+36
-12
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ test: install-test
4747
$(POETRY) run pytest -k "not kms"
4848

4949
test-coverage: install-test
50-
$(POETRY) run pytest -k "not kms" --cov=gardenlinux --cov-report=xml tests/
50+
$(POETRY) run pytest -k "not kms" --cov=gardenlinux --cov-report=html tests/
5151

5252
test-coverage-ci: install-test
5353
$(POETRY) run pytest -k "not kms" --cov=gardenlinux --cov-report=xml --cov-fail-under=85 tests/
@@ -62,13 +62,13 @@ format: install-dev
6262
$(POETRY) run black --extend-exclude test-data/gardenlinux .
6363

6464
lint: install-dev
65-
$(POETRY) run black --check --extend-exclude test-data/gardenlinux .
65+
$(POETRY) run black --diff --extend-exclude test-data/gardenlinux .
6666

6767
security: install-dev
6868
@if [ "$(CI)" = "true" ]; then \
69-
$(POETRY) run bandit -ll -ii -r . -f json -o bandit-report.json ; \
69+
$(POETRY) run bandit -c pyproject.toml -ll -ii -r . -f json -o bandit-report.json ; \
7070
else \
71-
$(POETRY) run bandit -r . ; \
71+
$(POETRY) run bandit -c pyproject.toml -r . ; \
7272
fi
7373

7474
docs: install-docs

poetry.lock

Lines changed: 23 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ black = "^25.1.0"
2626
moto = "^5.1.12"
2727
python-dotenv = "^1.1.1"
2828
pytest = "^8.4.1"
29-
pytest-cov = "^7.0.0"
29+
pytest-cov = "^6.2.1"
30+
isort = "^6.0.1"
3031

3132
[tool.poetry.group.docs.dependencies]
3233
sphinx-rtd-theme = "^3.0.2"
@@ -42,6 +43,13 @@ gl-s3 = "gardenlinux.s3.__main__:main"
4243
pythonpath = ["src"]
4344
norecursedirs = "test-data"
4445

46+
[tool.bandit]
47+
skips = ["B101", "B404"] # allow asserts, subprocesses
48+
exclude_dirs = ["tests"]
49+
50+
[tool.isort]
51+
known_first_party = "gardenlinux"
52+
4553
[build-system]
4654
requires = ["poetry-core"]
4755
build-backend = "poetry.core.masonry.api"

0 commit comments

Comments
 (0)