Compare commits
13
Commits
e725dce168
...
v0.1.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7458b0c4f4 | ||
|
|
3ba464b8fc | ||
|
|
ec0aca846a | ||
|
|
608b2d6b10 | ||
|
|
02b156996d | ||
|
|
08a5ad8afa | ||
|
|
c0ce37f43c | ||
|
|
7d88b54d53 | ||
|
|
a777751a5a | ||
|
|
db01c63b89 | ||
|
|
ff18f4c6d7 | ||
|
|
32dfa10613 | ||
|
|
95b95fd84b |
@@ -26,6 +26,9 @@ jobs:
|
||||
UV_LINK_MODE: copy
|
||||
run: uv sync
|
||||
|
||||
- name: Type check with mypy
|
||||
run: uv run mypy .
|
||||
|
||||
- name: Ruff lint
|
||||
run: uv run ruff check .
|
||||
|
||||
@@ -36,4 +39,6 @@ jobs:
|
||||
run: uv run pyupgrade --py313-plus $(git ls-files '*.py') && git diff --exit-code
|
||||
|
||||
- name: Prettier format
|
||||
run: uv run prettier --check .
|
||||
run: |
|
||||
npm install --save-dev --save-exact prettier
|
||||
npx prettier --check .
|
||||
|
||||
@@ -36,9 +36,7 @@ jobs:
|
||||
|
||||
- name: Publish to Gitea Package Registry
|
||||
env:
|
||||
TWINE_USERNAME: __token__
|
||||
TWINE_PASSWORD: ${{ secrets.CI_RUNNER_TOKEN }}
|
||||
TWINE_REPOSITORY_URL: ${{ vars.REPOSITORY_URL }}
|
||||
UV_PUBLISH_TOKEN: ${{ secrets.CI_RUNNER_TOKEN }}
|
||||
UV_PUBLISH_URL: ${{ vars.REPOSITORY_URL }}
|
||||
run: |
|
||||
uv pip install twine --system
|
||||
twine upload dist/*
|
||||
uv publish
|
||||
|
||||
@@ -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",
|
||||
]
|
||||
|
||||
[[tool.uv.index]]
|
||||
name = "private-cache"
|
||||
url = "http://10.0.0.2:5001/index/"
|
||||
default = true
|
||||
|
||||
[tool.mypy]
|
||||
python_version = "3.10"
|
||||
warn_return_any = true # nudge to use stricter types
|
||||
|
||||
Reference in New Issue
Block a user