Skip to content

Commit 0f686b9

Browse files
authored
Initial commit
0 parents  commit 0f686b9

21 files changed

+8416
-0
lines changed

.codespellignore

Whitespace-only changes.

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Set update schedule for GitHub Actions
2+
3+
version: 2
4+
updates:
5+
6+
- package-ecosystem: "github-actions"
7+
directory: "/"
8+
schedule:
9+
# Check for updates to GitHub Actions every week
10+
interval: "weekly"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Check if the lockfile is up-to-date
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
9+
jobs:
10+
lockfile-up-to-date:
11+
name: Check if the lockfile is up-to-date
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- uses: prefix-dev/[email protected]
19+
with:
20+
pixi-version: latest
21+
cache: true
22+
locked: true

.github/workflows/code-style.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Run code style checks on each pull request.
2+
name: Code style checks
3+
4+
on: [pull_request]
5+
6+
jobs:
7+
linting:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-python@v5
12+
- uses: pre-commit/[email protected]

.github/workflows/label_sync.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Sync Closing Labels
2+
on:
3+
- pull_request_target
4+
5+
jobs:
6+
sync:
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
- name: Sync labels with closing issues
15+
uses: wd60622/[email protected]
16+
env:
17+
GH_TOKEN: ${{ github.token }}

.github/workflows/pr-tests.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Run tests on pull requests
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
9+
jobs:
10+
run-tests:
11+
runs-on: ubuntu-latest
12+
name: Run test suite
13+
14+
defaults:
15+
run:
16+
shell: bash -l {0}
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Pixi Environment
23+
uses: prefix-dev/[email protected]
24+
with:
25+
pixi-version: latest
26+
cache: true
27+
cache-write: ${{ github.event_name == 'push' }}
28+
29+
- name: Run tests (pixi)
30+
run: |
31+
pixi run test

.gitignore

Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
# Ignore DS_Store
2+
.DS_Store
3+
4+
# Ignore compiled Python files
5+
*.pyc
6+
7+
8+
# Ignore Beartype cache files
9+
*.opt-beartype*
10+
11+
.vscode/
12+
.ruff_cache/
13+
14+
# Byte-compiled / optimized / DLL files
15+
__pycache__/
16+
*.py[cod]
17+
*$py.class
18+
19+
# C extensions
20+
*.so
21+
22+
# Distribution / packaging
23+
.Python
24+
build/
25+
develop-eggs/
26+
dist/
27+
downloads/
28+
eggs/
29+
.eggs/
30+
lib/
31+
lib64/
32+
parts/
33+
sdist/
34+
var/
35+
wheels/
36+
share/python-wheels/
37+
*.egg-info/
38+
.installed.cfg
39+
*.egg
40+
MANIFEST
41+
42+
# PyInstaller
43+
# Usually these files are written by a python script from a template
44+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
45+
*.manifest
46+
*.spec
47+
48+
# Installer logs
49+
pip-log.txt
50+
pip-delete-this-directory.txt
51+
52+
# Unit test / coverage reports
53+
htmlcov/
54+
.tox/
55+
.nox/
56+
.coverage
57+
.coverage.*
58+
.cache
59+
nosetests.xml
60+
coverage.xml
61+
*.cover
62+
*.py,cover
63+
.hypothesis/
64+
.pytest_cache/
65+
cover/
66+
67+
# Translations
68+
*.mo
69+
*.pot
70+
71+
# Django stuff:
72+
*.log
73+
local_settings.py
74+
db.sqlite3
75+
db.sqlite3-journal
76+
77+
# Flask stuff:
78+
instance/
79+
.webassets-cache
80+
81+
# Scrapy stuff:
82+
.scrapy
83+
84+
# Sphinx documentation
85+
docs/_build/
86+
87+
# PyBuilder
88+
.pybuilder/
89+
target/
90+
91+
# Jupyter Notebook
92+
.ipynb_checkpoints
93+
94+
# IPython
95+
profile_default/
96+
ipython_config.py
97+
98+
# pyenv
99+
# For a library or package, you might want to ignore these files since the code is
100+
# intended to run in multiple environments; otherwise, check them in:
101+
# .python-version
102+
103+
# pipenv
104+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
105+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
106+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
107+
# install all needed dependencies.
108+
#Pipfile.lock
109+
110+
# UV
111+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
112+
# This is especially recommended for binary packages to ensure reproducibility, and is more
113+
# commonly ignored for libraries.
114+
#uv.lock
115+
116+
# poetry
117+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
118+
# This is especially recommended for binary packages to ensure reproducibility, and is more
119+
# commonly ignored for libraries.
120+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
121+
#poetry.lock
122+
123+
# pdm
124+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
125+
#pdm.lock
126+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
127+
# in version control.
128+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
129+
.pdm.toml
130+
.pdm-python
131+
.pdm-build/
132+
133+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
134+
__pypackages__/
135+
136+
# Celery stuff
137+
celerybeat-schedule
138+
celerybeat.pid
139+
140+
# SageMath parsed files
141+
*.sage.py
142+
143+
# Environments
144+
.env
145+
.venv
146+
env/
147+
venv/
148+
ENV/
149+
env.bak/
150+
venv.bak/
151+
152+
# Spyder project settings
153+
.spyderproject
154+
.spyproject
155+
156+
# Rope project settings
157+
.ropeproject
158+
159+
# mkdocs documentation
160+
/site
161+
162+
# mypy
163+
.mypy_cache/
164+
.dmypy.json
165+
dmypy.json
166+
167+
# Pyre type checker
168+
.pyre/
169+
170+
# pytype static type analyzer
171+
.pytype/
172+
173+
# Cython debug symbols
174+
cython_debug/
175+
176+
# PyCharm
177+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
178+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
179+
# and can be added to the global gitignore or merged into this file. For a more nuclear
180+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
181+
#.idea/
182+
183+
# PyPI configuration file
184+
.pypirc
185+
186+
# pixi environments
187+
.pixi

.pre-commit-config.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
hooks:
5+
- id: check-yaml
6+
- id: check-toml
7+
- id: end-of-file-fixer
8+
- id: trailing-whitespace
9+
- id: detect-private-key
10+
11+
- repo: https://github.com/charliermarsh/ruff-pre-commit
12+
rev: v0.9.6
13+
hooks:
14+
- id: ruff
15+
args: [--fix, --exit-non-zero-on-fix]
16+
- id: ruff-format
17+
18+
- repo: https://github.com/codespell-project/codespell
19+
rev: v2.4.1
20+
hooks:
21+
- id: codespell
22+
args: ["--ignore-words=.codespellignore", "--skip=*.ipynb"]

0 commit comments

Comments
 (0)