Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 16 additions & 8 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python and PDM
uses: pdm-project/setup-pdm@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
version: "2.17.1"
cache: "pip"
- name: Setup uv
uses: astral-sh/setup-uv@v6
with:
version: "0.8.3"
- name: Build source dist and wheels
run: pdm build --verbose
run: uv build
- name: Upload source dist and wheels to artifacts
uses: actions/upload-artifact@v4
with:
Expand All @@ -44,13 +48,17 @@ jobs:
with:
name: dist
path: dist/
- name: Setup Python and PDM
uses: pdm-project/setup-pdm@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
version: "2.17.1"
cache: "pip"
- name: Setup uv
uses: astral-sh/setup-uv@v6
with:
version: "0.8.3"
- name: Publish source dist and wheels to PyPI
run: pdm publish --no-build --verbose
run: uv publish

publish-github-release:
needs: build
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,17 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python and PDM
uses: pdm-project/setup-pdm@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
version: "2.17.1"
cache: "pip"
- name: Setup uv
uses: astral-sh/setup-uv@v6
with:
version: "0.8.3"
- name: Build source dist and wheels
run: pdm build --verbose
run: uv build
- name: Upload source dist and wheels to artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
54 changes: 46 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*.py[codz]
*$py.class

# C extensions
Expand Down Expand Up @@ -46,7 +46,7 @@ htmlcov/
nosetests.xml
coverage.xml
*.cover
*.py,cover
*.py.cover
.hypothesis/
.pytest_cache/
cover/
Expand Down Expand Up @@ -94,23 +94,36 @@ ipython_config.py
# install all needed dependencies.
#Pipfile.lock

# UV
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
#uv.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock
#poetry.toml

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
.pdm.toml
#pdm.toml
.pdm-python
.pdm-build/

# pixi
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
#pixi.lock
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
# in the .venv directory. It is recommended not to include this directory in version control.
.pixi

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

Expand All @@ -123,6 +136,7 @@ celerybeat.pid

# Environments
.env
.envrc
.venv
env/
venv/
Expand Down Expand Up @@ -161,5 +175,29 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

# VS Code
.vscode
# Abstra
# Abstra is an AI-powered process automation framework.
# Ignore directories containing user credentials, local state, and settings.
# Learn more at https://abstra.io/docs
.abstra/

# Visual Studio Code
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
# and can be added to the global gitignore or merged into this file. However, if you prefer,
# you could uncomment the following to ignore the entire vscode folder
# .vscode/

# Ruff stuff:
.ruff_cache/

# PyPI configuration file
.pypirc

# Marimo
marimo/_static/
marimo/_lsp/
__marimo__/

# Streamlit
.streamlit/secrets.toml
26 changes: 13 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.6.0"
rev: "v5.0.0"
hooks:
- id: trailing-whitespace
- id: mixed-line-ending
Expand All @@ -15,23 +15,23 @@ repos:
- id: check-added-large-files
- id: check-merge-conflict
- repo: https://github.com/crate-ci/typos
rev: "v1.23.3"
rev: "v1.34.0"
hooks:
- id: typos
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.6.0"
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/uv-pre-commit
rev: "0.8.3"
hooks:
- id: uv-lock
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.5.4"
rev: "v0.12.7"
hooks:
- id: ruff
- id: ruff-check
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.11.0"
rev: "v1.17.0"
hooks:
- id: mypy
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "2.1.4"
hooks:
- id: pyproject-fmt
- repo: https://github.com/pdm-project/pdm
rev: "2.17.1"
hooks:
- id: pdm-lock-check
Loading