-
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.
- Loading branch information
Showing
17 changed files
with
934 additions
and
709 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# SPDX-FileCopyrightText: 2024 Benedikt Fein | ||
# | ||
# SPDX-License-Identifier: EUPL-1.2 | ||
|
||
if ! has nix_direnv_version || ! nix_direnv_version 3.0.6; then | ||
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.6/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs=" | ||
fi | ||
|
||
watch_file flake.nix | ||
watch_file flake.lock | ||
if ! use flake . --no-pure-eval | ||
then | ||
echo "devenv could not be built. The devenv environment was not loaded. Make the necessary changes to devenv.nix and hit enter to try again." >&2 | ||
fi |
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 |
---|---|---|
|
@@ -11,43 +11,37 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
python-version: ["3.11", "3.12", "3.13"] | ||
poetry-version: ["latest"] | ||
os: ["ubuntu-latest"] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
- name: Install uv | ||
uses: astral-sh/setup-uv@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Setup Poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: ${{ matrix.poetry-version }} | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
- name: Install the project | ||
run: uv sync --all-extras --dev | ||
|
||
- name: Check imports with isort | ||
run: poetry run isort --check-only . --profile black | ||
run: uv run isort --check-only . --profile black | ||
|
||
- name: Check formatting | ||
run: poetry run ruff format --diff --check . | ||
run: uv run ruff format --diff --check . | ||
|
||
- name: Check typing with mypy | ||
run: poetry run mypy spring_yaml_to_env tests | ||
run: uv run mypy src tests | ||
|
||
- name: Linting with ruff | ||
run: poetry run ruff check . | ||
run: uv run ruff check . | ||
|
||
- name: Check docstrings with darglint | ||
run: poetry run darglint2 -s sphinx -v 2 spring_yaml_to_env/*.py | ||
run: uv run darglint2 -s sphinx -v 2 src/**/*.py | ||
|
||
- name: Run tests | ||
run: poetry run pytest --cov=spring_yaml_to_env --cov=tests --cov-branch --cov-report=term-missing tests/ | ||
run: uv run pytest --cov=src --cov=tests --cov-branch --cov-report=term-missing tests/ | ||
|
||
- name: Check reuse | ||
run: poetry run reuse lint | ||
run: uv run reuse lint |
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 |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
# | ||
# SPDX-License-Identifier: CC0-1.0 | ||
|
||
.devenv/ | ||
.direnv/ | ||
.idea/ | ||
cov_html/ | ||
report.xml | ||
|
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
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,5 @@ | ||
version = 1 | ||
SPDX-PackageName = "spring-yaml-to-env" | ||
SPDX-PackageSupplier = "Benedikt Fein <[email protected]>" | ||
SPDX-PackageDownloadLocation = "https://github.com/b-fein/spring-yaml-to-env" | ||
annotations = [] |
Oops, something went wrong.