-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from febus982/bootstrap-implementation-update
Bootstrap implementation update
- Loading branch information
Showing
28 changed files
with
224 additions
and
542 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
version: "2" | ||
plugins: | ||
bandit: | ||
enabled: true | ||
sonar-python: | ||
enabled: true |
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 |
---|---|---|
|
@@ -33,6 +33,3 @@ jobs: | |
- name: Test with pytest | ||
run: | | ||
make ci-test | ||
- name: Check typing | ||
run: | | ||
make typing |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
||
name: Bandit checks | ||
name: Python typing | ||
|
||
on: | ||
push: | ||
|
@@ -12,21 +12,19 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
bandit: | ||
typing: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Security check - Bandit | ||
uses: ioggstream/[email protected] | ||
with: | ||
project_path: . | ||
config_file: .bandit.yml | ||
|
||
# This is optional | ||
- name: Security check report artifacts | ||
uses: actions/upload-artifact@v4 | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
name: Security report | ||
path: output/security_report.txt | ||
python-version: "3.12" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install poetry tox | ||
make poetry-export | ||
- name: Check typing | ||
run: make typing |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,40 +1,49 @@ | ||
.PHONY: docs | ||
.PHONY: dev-dependencies update-dependencies test docs fix check typing lint format ci-test ci-coverage poetry-export | ||
|
||
######################### | ||
###### dev commands ##### | ||
######################### | ||
dev-dependencies: | ||
poetry install --with dev --no-root | ||
|
||
update-dependencies: | ||
poetry update --with dev | ||
|
||
test: | ||
poetry run pytest -n auto --cov | ||
|
||
ci-test: | ||
poetry run pytest | ||
|
||
ci-coverage: | ||
poetry run pytest --cov --cov-report lcov | ||
docs: | ||
poetry run mkdocs serve | ||
|
||
typing: | ||
poetry run mypy | ||
fix: | ||
poetry run ruff . --fix | ||
poetry run ruff format . | ||
|
||
format: | ||
poetry run black --check . | ||
check: poetry-export | ||
tox | ||
|
||
lint: | ||
poetry run ruff . | ||
typing: poetry-export | ||
tox -e typing | ||
|
||
bandit: | ||
poetry run bandit -c .bandit.yml -r . | ||
lint: poetry-export | ||
tox -e lint | ||
|
||
format-fix: | ||
poetry run black . | ||
format: poetry-export | ||
tox -e format | ||
|
||
lint-fix: | ||
poetry run ruff . --fix | ||
|
||
dev-dependencies: | ||
poetry install --with dev --no-root | ||
######################### | ||
#### Helper commands #### | ||
######################### | ||
poetry-export: | ||
poetry export -f requirements.txt --output /tmp/requirements.txt --with dev | ||
|
||
update-dependencies: | ||
poetry update --with dev | ||
|
||
fix: format-fix lint-fix | ||
check: typing format lint test bandit | ||
######################### | ||
###### CI commands ###### | ||
######################### | ||
ci-test: | ||
poetry run pytest | ||
|
||
docs: | ||
poetry run mkdocs serve | ||
ci-coverage: | ||
poetry run pytest --cov --cov-report lcov |
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
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
Oops, something went wrong.