Skip to content

Commit

Permalink
Add developer tools to conda environment
Browse files Browse the repository at this point in the history
Add a few dependencies needed for some developer tooling and/or linting.
  • Loading branch information
tobiasdiez authored Dec 16, 2024
1 parent e7477f8 commit 56fe3d0
Show file tree
Hide file tree
Showing 14 changed files with 1,992 additions and 1,302 deletions.
291 changes: 175 additions & 116 deletions environment-3.10-linux-aarch64.yml

Large diffs are not rendered by default.

291 changes: 175 additions & 116 deletions environment-3.10-linux.yml

Large diffs are not rendered by default.

259 changes: 157 additions & 102 deletions environment-3.10-macos-x86_64.yml

Large diffs are not rendered by default.

259 changes: 157 additions & 102 deletions environment-3.10-macos.yml

Large diffs are not rendered by default.

291 changes: 175 additions & 116 deletions environment-3.11-linux-aarch64.yml

Large diffs are not rendered by default.

291 changes: 175 additions & 116 deletions environment-3.11-linux.yml

Large diffs are not rendered by default.

259 changes: 157 additions & 102 deletions environment-3.11-macos-x86_64.yml

Large diffs are not rendered by default.

259 changes: 157 additions & 102 deletions environment-3.11-macos.yml

Large diffs are not rendered by default.

286 changes: 172 additions & 114 deletions environment-3.9-linux-aarch64.yml

Large diffs are not rendered by default.

286 changes: 172 additions & 114 deletions environment-3.9-linux.yml

Large diffs are not rendered by default.

254 changes: 154 additions & 100 deletions environment-3.9-macos-x86_64.yml

Large diffs are not rendered by default.

254 changes: 154 additions & 100 deletions environment-3.9-macos.yml

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,8 @@ lint = [
"pycodestyle",
"flake8-rst-docstrings",
]
dev = [
"conda-lock",
"grayskull",
"toml",
]
9 changes: 7 additions & 2 deletions tools/update-conda.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,14 @@ def get_dependencies(pyproject_toml: Path, python: str) -> list[str]:
def get_dev_dependencies(pyproject_toml: Path) -> list[str]:
pyproject = tomllib.load(pyproject_toml)
dependency_groups = pyproject.get("dependency-groups", {})
dev_dependencies = dependency_groups.get("test", []) + dependency_groups.get(
"docs", []
dev_dependencies = (
dependency_groups.get("test", [])
+ dependency_groups.get("docs", [])
+ dependency_groups.get("lint", [])
+ dependency_groups.get("dev", [])
)
# Remove dependencies that are not available on conda
dev_dependencies.remove("relint")
return dev_dependencies


Expand Down

0 comments on commit 56fe3d0

Please sign in to comment.