Compare commits
13
Commits
10fc399746
...
v0.1.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ec0aca846a | ||
|
|
608b2d6b10 | ||
|
|
02b156996d | ||
|
|
08a5ad8afa | ||
|
|
c0ce37f43c | ||
|
|
7d88b54d53 | ||
|
|
a777751a5a | ||
|
|
db01c63b89 | ||
|
|
ff18f4c6d7 | ||
|
|
32dfa10613 | ||
|
|
95b95fd84b | ||
|
|
e725dce168 | ||
|
|
4ed4ab665b |
@@ -26,17 +26,19 @@ jobs:
|
|||||||
UV_LINK_MODE: copy
|
UV_LINK_MODE: copy
|
||||||
run: uv sync
|
run: uv sync
|
||||||
|
|
||||||
|
- name: Type check with mypy
|
||||||
|
run: uv run mypy .
|
||||||
|
|
||||||
- name: Ruff lint
|
- name: Ruff lint
|
||||||
run: ruff check .
|
run: uv run ruff check .
|
||||||
|
|
||||||
- name: Ruff format
|
- name: Ruff format
|
||||||
run: ruff format --check .
|
run: uv run ruff format --check .
|
||||||
|
|
||||||
- name: Pyupgrade check
|
- name: Pyupgrade check
|
||||||
run: pyupgrade --py313-plus $(git ls-files '*.py') && git diff --exit-code
|
run: uv run pyupgrade --py313-plus $(git ls-files '*.py') && git diff --exit-code
|
||||||
|
|
||||||
- name: Install prettier
|
|
||||||
run: npm install --save-dev --save-exact prettier
|
|
||||||
|
|
||||||
- name: Prettier format
|
- name: Prettier format
|
||||||
run: npx prettier --check .
|
run: |
|
||||||
|
npm install --save-dev --save-exact prettier
|
||||||
|
npx prettier --check .
|
||||||
|
|||||||
@@ -36,9 +36,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Publish to Gitea Package Registry
|
- name: Publish to Gitea Package Registry
|
||||||
env:
|
env:
|
||||||
TWINE_USERNAME: __token__
|
UV_PUBLISH_TOKEN: ${{ secrets.CI_RUNNER_TOKEN }}
|
||||||
TWINE_PASSWORD: ${{ secrets.CI_RUNNER_TOKEN }}
|
UV_PUBLISH_URL: ${{ vars.REPOSITORY_URL }}
|
||||||
TWINE_REPOSITORY_URL: ${{ vars.REPOSITORY_URL }}
|
|
||||||
run: |
|
run: |
|
||||||
uv pip install twine --system
|
uv publish
|
||||||
twine upload dist/*
|
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
name: Type Check
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
pull_request:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
type-check:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: ${{ inputs.python-version }}
|
|
||||||
|
|
||||||
- name: Install uv
|
|
||||||
run: pip install uv
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
env:
|
|
||||||
UV_LINK_MODE: copy
|
|
||||||
run: uv sync
|
|
||||||
|
|
||||||
- name: Run mypy
|
|
||||||
run: uv run mypy .
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"devDependencies": {
|
|
||||||
"prettier": "3.6.2"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -25,6 +25,11 @@ dev = [
|
|||||||
"safety>=3.6.0",
|
"safety>=3.6.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[tool.uv.index]]
|
||||||
|
name = "private-cache"
|
||||||
|
url = "http://10.0.0.2:5001/index/"
|
||||||
|
default = true
|
||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
python_version = "3.10"
|
python_version = "3.10"
|
||||||
warn_return_any = true # nudge to use stricter types
|
warn_return_any = true # nudge to use stricter types
|
||||||
|
|||||||
Reference in New Issue
Block a user