Skip to content

Commit 5f0e07a

Browse files
authored
Merge pull request #44 from legendu-net/dev
Merge dev Into main
2 parents c92935c + 1464c60 commit 5f0e07a

4 files changed

Lines changed: 89 additions & 23 deletions

File tree

.github/workflows/lint.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@ jobs:
1313
- uses: actions/checkout@v6
1414
- name: Install dependencies
1515
run: |
16-
curl -LsSf https://astral.sh/uv/install.sh | sh
17-
~/.local/bin/uv sync --all-extras
16+
curl -LsSf https://astral.sh/uv/install.sh | sudo env UV_INSTALL_DIR="/usr/local/bin" sh
17+
uv sync --all-extras
18+
- name: Check code format
19+
run: uv run ruff format --check ./
1820
- name: Lint with ruff
19-
run: |
20-
~/.local/bin/uv run ruff check github_rest_api/ tests/
21+
run: uv run ruff check github_rest_api/ tests/
2122
- name: Lint with Ty
22-
run: |
23-
~/.local/bin/uv run ty check
24-
- name: Check code format
25-
run: |
26-
~/.local/bin/uv run ruff format --check ./
23+
run: uv run ty check
24+
- name: Analyze Dependencies
25+
run: uv run deptry .

.github/workflows/release.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,9 @@ jobs:
1414
- uses: actions/checkout@v6
1515
- name: Install uv
1616
run: |
17-
curl -LsSf https://astral.sh/uv/install.sh | sh
17+
curl -LsSf https://astral.sh/uv/install.sh | sudo env UV_INSTALL_DIR="/usr/local/bin" sh
1818
- name: Build and Publish Package to PyPI
1919
run: |
20-
~/.local/bin/uv build
20+
uv build
2121
ls -lha dist/
22-
~/.local/bin/uv publish -u __token__ -p ${{ secrets.PYPI_GITHUB_REST_API }}
23-
# - uses: "marvinpinto/action-automatic-releases@latest"
24-
# with:
25-
# repo_token: ${{ secrets.GITHUB_TOKEN }}
26-
# automatic_release_tag: "latest"
27-
# prerelease: false
28-
# files: |
29-
# dist/*
22+
uv publish -u __token__ -p ${{ secrets.PYPI_GITHUB_REST_API }}

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dependencies = [
1212

1313
[dependency-groups]
1414
dev = [
15+
"deptry>=0.24.0",
1516
"pyright>=1.1.407",
1617
"ruff>=0.14.10",
1718
"ty>=0.0.8",
@@ -25,4 +26,4 @@ include = ["github_rest_api"]
2526

2627
[build-system]
2728
requires = ["hatchling"]
28-
build-backend = "hatchling.build"
29+
build-backend = "hatchling.build"

uv.lock

Lines changed: 76 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)