Skip to content

Commit

Permalink
Introduce optional dev dependencies (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddundo authored Jan 1, 2025
1 parent 0bedd17 commit d9032ce
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- '**.msh'
- '**.geo'
- '.github/workflows/test_suite.yml'
- 'pyproject.toml'

# Run test suite whenever commits are pushed to an open PR
pull_request:
Expand All @@ -18,6 +19,7 @@ on:
- '**.msh'
- '**.geo'
- '.github/workflows/test_suite.yml'
- 'pyproject.toml'

# Run test suite every Sunday at 1AM
schedule:
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ install:
@echo "Installing Goalie..."
@python3 -m pip install -e .
@echo "Done."

install_dev:
@echo "Installing Goalie for development..."
@python3 -m pip install -e .[dev]
@echo "Done."
@echo "Setting up pre-commit..."
@pre-commit install
@echo "Done."
Expand Down
16 changes: 9 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@ requires = ["setuptools"]
[project]
name = "goalie"
version = "0.2"
dependencies = [
"cffconvert",
"coverage",
"parameterized",
"pre-commit",
"ruff",
]
authors = [
{name = "Joseph G. Wallwork", email = "joe.wallwork@outlook.com"},
{name = "Davor Dundovic"},
Expand All @@ -31,6 +24,15 @@ classifiers = [
"Programming Language :: Python",
]

[project.optional-dependencies]
dev = [
"cffconvert",
"coverage",
"parameterized",
"pre-commit",
"ruff",
]

[project.urls]
Homepage = "https://mesh-adaptation.github.io"
Documentation = "https://mesh-adaptation.github.io/goalie/index.html"
Expand Down

0 comments on commit d9032ce

Please sign in to comment.