-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Release preparation kitchen sink
- Use justfile instead of Makefile, since the release script can be integrated natively: `just release patch`. Might be possible to even include this in pyproject.toml since `uv` will provide a task runner (astral-sh/uv#5903) that might be based on just. - Adjust the linting checks in the CI to run against the whole project. - Use the just runner in CI to avoid differing invocations in the project. - Add commitizen for bumping the release. This was provided by poetry in the past. I make too many mistakes without a tool here. In the future, this will be covered by uv as well: astral-sh/uv#6298 - next… let's try to release a dev release and let's have a look if the pipeline works correctly.
- Loading branch information
1 parent
7a9f0f1
commit ff9b20d
Showing
10 changed files
with
181 additions
and
241 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,4 +46,4 @@ jobs: | |
- name: Run mypy | ||
run: | | ||
uv run make lint-win32 | ||
uv run just win32-lint-mypy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# SPDX-FileCopyrightText: AISEC Pentesting Team | ||
# | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
default: | ||
@just --list | ||
|
||
[private] | ||
lint-mypy: | ||
mypy --pretty src tests | ||
|
||
[private] | ||
lint-ruff-check: | ||
ruff check | ||
|
||
[private] | ||
lint-ruff-format: | ||
ruff format --check | ||
|
||
[private] | ||
lint-shellcheck: | ||
find tests/bats \( -iname "*.bash" -or -iname "*.bats" -or -iname "*.sh" \) | xargs shellcheck | ||
|
||
[private] | ||
lint-reuse: | ||
reuse lint | ||
|
||
lint: lint-mypy lint-ruff-check lint-ruff-format lint-ruff-format lint-shellcheck lint-reuse | ||
|
||
win32-lint-mypy: | ||
mypy --platform win32 --exclude "gallia\/log\.py" --exclude "hr" src tests | ||
|
||
fmt: | ||
ruff check --fix-only | ||
ruff format | ||
find tests/bats \( -iname "*.bash" -or -iname "*.bats" -or -iname "*.sh" \) | xargs shfmt -w | ||
|
||
run-tests: run-test-pytest run-test-bats | ||
|
||
run-test-pytest: | ||
python -m pytest -v --cov={{justfile_directory()}} --cov-report html tests/pytest | ||
|
||
run-test-bats: | ||
./tests/bats/run_bats.sh | ||
|
||
gen-constants: && fmt | ||
./scripts/gen_constants.py > src/gallia/transports/_can_constants.py | ||
|
||
release increment: | ||
cz bump --increment {{increment}} | ||
git push --follow-tags | ||
gh release create "v$(cz version -p)" | ||
|
||
pre-release increment premode: | ||
cz bump --increment {{increment}} --prerelease {{premode}} | ||
git push --follow-tags | ||
gh release create --prerelease "v$(cz version -p)" | ||
|
||
make-docs: | ||
make -C docs html | ||
|
||
clean: | ||
make -C docs clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.