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
4 changes: 2 additions & 2 deletions .github/workflows/ci-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
uses: greenbone/workflows/.github/workflows/lint-python.yml@main
with:
lint-packages: "greenbone tests"
linter: ruff check
formatter: ruff format --diff
linter: make lint
formatter: make format
python-version: ${{ matrix.python-version }}

test:
Expand Down
21 changes: 21 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.PHONY: lint format test coverage fix

RUN = poetry run

lint:
$(RUN) ruff check

format:
$(RUN) ruff format --diff

test:
$(RUN) python -m unittest

coverage:
$(RUN) coverage run -m unittest
$(RUN) coverage report -m
$(RUN) coverage html

fix:
$(RUN) ruff format
$(RUN) ruff check --fix
Loading