Skip to content

Commit

Permalink
FIX: remove developer dependencies from extras
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Oct 28, 2024
1 parent 7170fbd commit eb90286
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 30 deletions.
4 changes: 3 additions & 1 deletion .binder/postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ set -ex
curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.cargo/env
uv export \
--extra jupyter \
--group jupyter \
--no-dev \
> requirements.txt
uv pip install \
--requirement requirements.txt \
--system
rm requirements.txt
uv cache clean
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
- id: check-useless-excludes

- repo: https://github.com/ComPWA/policy
rev: 0.5.3
rev: 0.5.5
hooks:
- id: colab-toc-visible
- id: check-dev-files
Expand Down
21 changes: 9 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,26 @@ name = "gluex-amplitude"
requires-python = ">=3.12"
version = "0.0.0"

[project.optional-dependencies]
[project.readme]
content-type = "text/markdown"
file = "README.md"

[dependency-groups]
dev = [
"gluex-amplitude[doc]",
"gluex-amplitude[jupyter]",
"gluex-amplitude[sty]",
"ruff",
{include-group = "doc"},
{include-group = "jupyter"},
]
doc = ["jupyter-book"]
jupyter = [
"jupyterlab",
"jupyterlab-code-formatter >=3.0.0",
"jupyterlab-code-formatter",
"jupyterlab-git",
"jupyterlab-lsp",
"jupyterlab-myst",
"python-lsp-ruff",
"python-lsp-server[rope]",
]
sty = [
"ruff",
]

[project.readme]
content-type = "text/markdown"
file = "README.md"

[tool.ruff]
extend-include = ["*.ipynb"]
Expand Down
40 changes: 24 additions & 16 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eb90286

Please sign in to comment.