Skip to content

Commit ce9707d

Browse files
authored
ci: add pixi task to fix the format and spelling (fix-style) (#1880)
* add pixi task (prepare-pull-request) to run common tasks needed for a PR
1 parent 593ff6a commit ce9707d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pixi.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ install = { depends_on = [
5151
check-format = "python .github/common/check_format.py"
5252
check-vfproj = "python .github/common/check_vfproj.py"
5353
check-spelling = "python .github/common/check_spelling.py"
54+
fix-style = { cmd = "pixi run check-format --write-changes; pixi run check-spelling --write-changes" }
5455

5556
# build/test
5657
setup = "meson setup --prefix=$(pwd) --libdir=bin"
@@ -69,4 +70,7 @@ build-makefiles = { cmd = "python build_makefiles.py", cwd = "distribution" }
6970
test-dist-scripts = { cmd = "pytest -v --durations 0", cwd = "distribution" }
7071
update-version = { cmd = "python update_version.py", cwd = "distribution" }
7172
deprecations = { cmd = "python deprecations.py", cwd = "doc/mf6io/mf6ivar" }
72-
sphinx = { cmd = "make html", cwd = ".build_rtd_docs" }
73+
sphinx = { cmd = "make html", cwd = ".build_rtd_docs" }
74+
75+
# prepare for PR
76+
prepare-pull-request = {depends_on = ["fix-style", "build-makefiles", "run-mf6ivar"]}

0 commit comments

Comments
 (0)