Skip to content
Open
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
10 changes: 9 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,29 @@
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
# https://containers.dev/guide/dependabot

# All ecosystems use a 7-day cooldown so a compromised upstream release is
# likely caught before Dependabot proposes it here (zizmor: dependabot-cooldown).
version: 2
updates:
- package-ecosystem: "pip"
- package-ecosystem: "uv"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "chore(deps)"
cooldown:
default-days: 7
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: "chore(actions)"
cooldown:
default-days: 7
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: weekly
cooldown:
default-days: 7
23 changes: 12 additions & 11 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,22 @@
## Checklist βœ…

- [ ] I have run and tested my changes locally
- [ ] I have limited this PR to less than 1000 lines of code change (if not, explain why)
- [ ] I have limited this PR to less than 1000 lines of code change (if not, explain
why)
- [ ] I have updated/added tests to cover my changes (if applicable)
- [ ] I have updated/added requirements to cover my changes (if applicable)
- [ ] I have run linting and formatting on any code changes (if applicable)
- [ ] I have updated the documentation (README, etc.) accordingly

## Reviewer Emoji Legend

| | `:code:` | Meaning |
| :-: | :-----------------------: | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| πŸ˜ƒπŸ‘πŸ’― | `:smiley:` `:+1:` `:100:` | I like this... <br /><br /> ...and I want the author to know it! This is a way to highlight positive parts of a code review. |
| ⭐⭐⭐ | `:star: :star: :star:` | Important to fix before PR can be approved... <br /><br /> And I am providing reasons why it needs to be addressed as well as suggested improvements. |
| ⭐⭐ | `:star: :star:` | Important to fix but non-blocking for PR approval... <br /><br /> And I am providing suggestions where it could be improved either in this PR or later. |
| ⭐ | `:star:` | Give this some thought but non-blocking for PR approval... <br /><br /> ...and consider this a suggestion, not a requirement. |
| ❓ | `:question:` | I have a question. <br /><br /> This should be a fully formed question with sufficient information and context that requires a response. |
| πŸ“ | `:memo:` | This is an explanatory note, fun fact, or relevant commentary that does not require any action. |
| ⛏ | `:pick:` | This is a nitpick. <br /><br /> This does not require any changes and is often better left unsaid. This may include stylistic, formatting, or organization suggestions and should likely be prevented/enforced by linting if they really matter |
| ♻️ | `:recycle:` | Suggestion for refactoring. <br /><br /> Should include enough context to be actionable and not be considered a nitpick. |
| | `:code:` | Meaning |
| :----: | :-----------------------: | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| πŸ˜ƒπŸ‘πŸ’― | `:smiley:` `:+1:` `:100:` | I like this... <br /><br /> ...and I want the author to know it! This is a way to highlight positive parts of a code review. |
| ⭐⭐⭐ | `:star: :star: :star:` | Important to fix before PR can be approved... <br /><br /> And I am providing reasons why it needs to be addressed as well as suggested improvements. |
| ⭐⭐ | `:star: :star:` | Important to fix but non-blocking for PR approval... <br /><br /> And I am providing suggestions where it could be improved either in this PR or later. |
| ⭐ | `:star:` | Give this some thought but non-blocking for PR approval... <br /><br /> ...and consider this a suggestion, not a requirement. |
| ❓ | `:question:` | I have a question. <br /><br /> This should be a fully formed question with sufficient information and context that requires a response. |
| πŸ“ | `:memo:` | This is an explanatory note, fun fact, or relevant commentary that does not require any action. |
| ⛏ | `:pick:` | This is a nitpick. <br /><br /> This does not require any changes and is often better left unsaid. This may include stylistic, formatting, or organization suggestions and should likely be prevented/enforced by linting if they really matter |
| ♻️ | `:recycle:` | Suggestion for refactoring. <br /><br /> Should include enough context to be actionable and not be considered a nitpick. |
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
pull_request:
branches:
- main

permissions:
contents: read

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install uv and set the python version
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
python-version: '3.12'
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Sync uv
run: uv sync --locked
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1

tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install uv and set the python version
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
python-version: '3.12'
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Sync uv
run: uv sync --locked
- name: Run tests
run: uv run pytest
21 changes: 0 additions & 21 deletions .github/workflows/pre-commit.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ instance/
# Sphinx documentation
docs/_build/

# Quarto
/docs/_site/
/docs/.quarto/

# PyBuilder
.pybuilder/
target/
Expand Down
29 changes: 0 additions & 29 deletions .markdownlint.yaml

This file was deleted.

19 changes: 12 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
stages: [pre-commit]

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.25
rev: v0.27
hooks:
- id: validate-pyproject

Expand All @@ -22,19 +22,24 @@ repos:
hooks:
- id: codespell

- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.23.2
- repo: https://github.com/jolars/panache-pre-commit
rev: v3.20.0
hooks:
- id: markdownlint-cli2
exclude: ^\.claude/
- id: panache-format
- id: panache-lint

- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.33.1
hooks:
- id: zizmor

- repo: https://github.com/fastai/nbdev
rev: 3.3.11
rev: 3.3.38
hooks:
- id: nbdev-clean

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.2
rev: v0.17.6
hooks:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
Expand Down
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"ms-python.vscode-python-envs",
"charliermarsh.ruff",
"github.vscode-pull-request-github",
"davidanson.vscode-markdownlint",
"jolars.panache",
"quarto.quarto",
"skellock.just",
"yzhang.markdown-all-in-one",
Expand Down
Loading
Loading