Skip to content

Commit

Permalink
ci: add pixi task to fix the format and spelling (fix-style) (MODFLOW…
Browse files Browse the repository at this point in the history
…-USGS#1880)

* add pixi task (prepare-pull-request) to run common tasks needed for a PR
  • Loading branch information
jdhughes-usgs committed Jun 18, 2024
1 parent 593ff6a commit ce9707d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ install = { depends_on = [
check-format = "python .github/common/check_format.py"
check-vfproj = "python .github/common/check_vfproj.py"
check-spelling = "python .github/common/check_spelling.py"
fix-style = { cmd = "pixi run check-format --write-changes; pixi run check-spelling --write-changes" }

# build/test
setup = "meson setup --prefix=$(pwd) --libdir=bin"
Expand All @@ -69,4 +70,7 @@ build-makefiles = { cmd = "python build_makefiles.py", cwd = "distribution" }
test-dist-scripts = { cmd = "pytest -v --durations 0", cwd = "distribution" }
update-version = { cmd = "python update_version.py", cwd = "distribution" }
deprecations = { cmd = "python deprecations.py", cwd = "doc/mf6io/mf6ivar" }
sphinx = { cmd = "make html", cwd = ".build_rtd_docs" }
sphinx = { cmd = "make html", cwd = ".build_rtd_docs" }

# prepare for PR
prepare-pull-request = {depends_on = ["fix-style", "build-makefiles", "run-mf6ivar"]}

0 comments on commit ce9707d

Please sign in to comment.