-
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 #23 from pollenjp/release/v1.1.0
release v1.1.0
- Loading branch information
Showing
11 changed files
with
1,248 additions
and
58 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,38 @@ | ||
name: Lint Python | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
env: | ||
UV_VERSION: 0.4.1 | ||
jobs: | ||
ruff: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Instal uv | ||
run: | | ||
set -eux -o pipefail -o posix | ||
curl -LsSf https://astral.sh/uv/${{ env.UV_VERSION }}/install.sh | sh | ||
echo PATH="${HOME}/.cargo/bin:${PATH}" >> "${GITHUB_ENV}" | ||
- uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run: uv sync --frozen | ||
- name: Run ruff check | ||
run: uv run ruff check | ||
|
||
pyright: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Instal uv | ||
run: | | ||
set -eux -o pipefail -o posix | ||
curl -LsSf https://astral.sh/uv/${{ env.UV_VERSION }}/install.sh | sh | ||
echo PATH="${HOME}/.cargo/bin:${PATH}" >> "${GITHUB_ENV}" | ||
- uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run: uv sync --frozen | ||
- name: Run pyright | ||
run: uv run pyright ./src |
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 |
---|---|---|
@@ -1,35 +1,18 @@ | ||
|
||
.PHONY: lint | ||
lint: | ||
rye run ruff check | ||
rye run pyright | ||
uv run ruff check | ||
uv run pyright | ||
|
||
.PHONY: fmt | ||
fmt: | ||
rye run ruff format | ||
|
||
.PHONY: test | ||
test: | ||
rye run nox -s test | ||
|
||
.PHONY: nox | ||
nox: | ||
rye run nox | ||
uv run ruff format | ||
|
||
.PHONY: build | ||
build: | ||
${MAKE} clean | ||
rye build | ||
uvx --from build pyproject-build --installer uv | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf dist *.egg-info | ||
|
||
publish-test: | ||
${MAKE} build | ||
rye publish --verbose --repository testpypi --repository-url https://test.pypi.org/legacy/ | ||
|
||
|
||
publish-prod: | ||
${MAKE} build | ||
rye publish | ||
rm -rf build dist *.egg-info |
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,9 +1,11 @@ | ||
|
||
.PHONY: lint | ||
lint: | ||
rye run ansible-lint -vvv | ||
.PHONY: debug | ||
debug: | ||
${MAKE} install | ||
# uv run ansible-lint -vvv | ||
uv run ansible-lint | ||
|
||
.PHONY: install | ||
install: | ||
rm -rf .venv | ||
rye sync | ||
uv sync |
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
Large diffs are not rendered by default.
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
Oops, something went wrong.