Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename to depends-on in pixi.toml #1371

Merged
merged 1 commit into from
Jan 7, 2025
Merged
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
20 changes: 10 additions & 10 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@ repository = "https://github.com/Deltares/imod-python.git"

[tasks]
# General tasks
docs = { cmd = "make html", depends_on = ["install"], cwd = "docs" }
docs = { cmd = "make html", depends-on = ["install"], cwd = "docs" }
install = "python -m pip install --no-deps --editable ."
pypi-publish = { cmd = "rm --recursive --force dist && python -m build && twine check dist/* && twine upload dist/*" }

# Lint and format tasks
format = "ruff check --fix .; ruff format ."
lint = "ruff check . ; ruff format --check ."
mypy_lint = { cmd ="mypy", depends_on = ["install"]}
mypy_report = { cmd ="mypy | mypy2junit > mypy-report.xml", depends_on = ["install"]}
mypy_lint = { cmd ="mypy", depends-on = ["install"]}
mypy_report = { cmd ="mypy | mypy2junit > mypy-report.xml", depends-on = ["install"]}

# Tests tasks
tests = { depends_on = ["unittests", "examples"] }
unittests = { depends_on = ["unittests_njit", "unittests_jit"] }
tests = { depends-on = ["unittests", "examples"] }
unittests = { depends-on = ["unittests_njit", "unittests_jit"] }
unittests_njit = { cmd = [
"NUMBA_DISABLE_JIT=1",
"pytest",
Expand All @@ -39,15 +39,15 @@ unittests_njit = { cmd = [
"--cov-report=term",
"--cov-report=html:coverage",
"--cov-config=.coveragerc"
], depends_on = ["install"], cwd = "imod/tests" }
], depends-on = ["install"], cwd = "imod/tests" }
unittests_jit = { cmd = [
"pytest",
"-n", "auto",
"-m", "unittest_jit",
"--cache-clear",
"--verbose",
"--junitxml=unittest_jit_report.xml",
], depends_on = ["install"], cwd = "imod/tests" }
], depends-on = ["install"], cwd = "imod/tests" }
# User acceptance tests, only works when paths to models are located on local
# drive and are specified in a .env file.
user_acceptance = { cmd = [
Expand All @@ -56,7 +56,7 @@ user_acceptance = { cmd = [
"--cache-clear",
"--verbose",
"--junitxml=user_acceptance_report.xml",
], depends_on = ["install"], cwd = "imod/tests", env = { IMOD_DATA_DIR = ".imod_data" } }
], depends-on = ["install"], cwd = "imod/tests", env = { IMOD_DATA_DIR = ".imod_data" } }

examples = { cmd = [
"pytest",
Expand All @@ -65,7 +65,7 @@ examples = { cmd = [
"--cache-clear",
"--verbose",
"--junitxml=examples_report.xml",
], depends_on = ["install"], cwd = "imod/tests", env = { IMOD_DATA_DIR = ".imod_data" } }
], depends-on = ["install"], cwd = "imod/tests", env = { IMOD_DATA_DIR = ".imod_data" } }

[dependencies]
affine = "*"
Expand Down Expand Up @@ -161,7 +161,7 @@ test_import = { cmd = [
"python",
"-c",
"import imod"
], depends_on = ["install_with_deps"]}
], depends-on = ["install_with_deps"]}
install_with_deps = "python -m pip install --editable ."

[environments]
Expand Down