Skip to content

Commit

Permalink
MAINT: update lock files and dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Oct 16, 2024
1 parent 8a995ee commit a7aa274
Show file tree
Hide file tree
Showing 7 changed files with 117 additions and 87 deletions.
1 change: 1 addition & 0 deletions .binder/apt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
graphviz
12 changes: 12 additions & 0 deletions .binder/postBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
set -ex
curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.cargo/env
uv export \
--extra jupyter \
--extra notebooks \
> requirements.txt
uv pip install \
--requirement requirements.txt \
--system
uv cache clean
1 change: 1 addition & 0 deletions .binder/runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.9
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Requirements
name: Update

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -12,12 +12,13 @@ on:
- epic/*
paths:
- .pre-commit-config.yaml
- uv.lock
schedule:
- cron: "0 3 7 */1 *"
workflow_dispatch:

jobs:
requirements:
lock:
uses: ComPWA/actions/.github/workflows/lock.yml@v2
secrets:
token: ${{ secrets.PAT }}
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ repos:
- id: check-useless-excludes

- repo: https://github.com/ComPWA/policy
rev: 0.5.0rc2
rev: 0.5.0rc8
hooks:
- id: check-dev-files
args:
- --dev-python-version=3.9
- --doc-apt-packages=graphviz
- --pin-requirements=monthly
- --repo-name=qrules
- --repo-title=QRules
- --update-lock-files=monthly
- id: colab-toc-visible
- id: fix-nbformat-version
- id: remove-empty-tags
Expand Down Expand Up @@ -154,6 +154,6 @@ repos:
- id: pyright

- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.4.21
rev: 0.4.22
hooks:
- id: uv-lock
17 changes: 10 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ dev = [
"qrules[sty]",
"qrules[test]",
"sphinx-autobuild",
"tox >=1.9", # for skip_install, use_develop
"tox",
]
doc = [
"Sphinx >=3",
"myst-nb", # nb_ configuration prefixes
"qrules[viz]",
"sphinx-api-relink >=0.0.4",
"myst-nb",
"qrules[notebooks]",
"sphinx",
"sphinx-api-relink",
"sphinx-book-theme",
"sphinx-codeautolink[ipython]",
"sphinx-comments",
Expand All @@ -87,8 +87,11 @@ jupyter = [
"python-lsp-ruff",
"python-lsp-server[rope]",
]
notebooks = [
"qrules[viz]",
]
sty = [
"mypy >=0.730", # attrs and error code support
"mypy",
"pre-commit-uv",
"qrules[types]",
"ruff",
Expand All @@ -106,7 +109,7 @@ types = [
"ipython",
"pydot <2", # problem with pydot.graph_from_dot_data
"pytest",
"sphinx-api-relink >=0.0.4",
"sphinx-api-relink",
"types-PyYAML",
"types-setuptools",
]
Expand Down
162 changes: 87 additions & 75 deletions uv.lock

Large diffs are not rendered by default.

0 comments on commit a7aa274

Please sign in to comment.