Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ test: install-test
$(POETRY) run pytest -k "not kms"

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

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

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

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

docs: install-docs
Expand Down
30 changes: 23 additions & 7 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ black = "^25.1.0"
moto = "^5.1.12"
python-dotenv = "^1.1.1"
pytest = "^8.4.1"
pytest-cov = "^7.0.0"
pytest-cov = "^6.2.1"
isort = "^6.0.1"

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

[tool.bandit]
skips = ["B101", "B404"] # allow asserts, subprocesses
exclude_dirs = ["tests"]

[tool.isort]
known_first_party = "gardenlinux"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"