File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 python-version : " 3.14"
3030 - name : Install the project
3131 run : uv sync --group quality
32- - name : Run pre-commit
33- run : uv run pre-commit run -a --show-diff-on-failure
32+ - name : Run prek
33+ run : uv run prek run -a --show-diff-on-failure
Original file line number Diff line number Diff line change @@ -7,17 +7,17 @@ install: ## Install the virtual environment with dependencies
77 @echo " 🚀 Creating uv Python virtual environment"
88 @uv python install 3.14
99 @uv sync --python=3.14
10- @echo " 🚀 Installing Git pre-commit hooks locally"
11- @uv run pre-commit install
10+ @echo " 🚀 Installing Git prek hooks locally"
11+ @uv run prek install -f
1212 @echo " 🚀 Installing Prettier using npm"
1313 @npm install -q --no-fund --include=dev
1414
1515.PHONY : check
1616check : # # Run code quality tools.
1717 @echo " 🚀 Checking lock file consistency with 'pyproject.toml'"
1818 @uv lock --locked
19- @echo " 🚀 Linting code and documentation: Running pre-commit "
20- @uv run pre-commit run -a
19+ @echo " 🚀 Auto-formatting, Linting, and Type Checking code and documentation: Running prek "
20+ @uv run prek run -a
2121 @echo " 🚀 Static type checking: Running mypy"
2222 @uv run mypy
2323
Original file line number Diff line number Diff line change 6363 - Shows how to use various ` cmd2 ` application lifecycle hooks
6464- [ migrating.py] ( https://github.com/python-cmd2/cmd2/blob/main/examples/migrating.py )
6565 - A simple ` cmd ` application that you can migrate to ` cmd2 ` by changing one line
66- - [ modular_commands .py] ( https://github.com/python-cmd2/cmd2/blob/main/examples/modular_commands .py )
66+ - [ modular_commandsets .py] ( https://github.com/python-cmd2/cmd2/blob/main/examples/modular_commandsets .py )
6767 - Complex example demonstrating a variety of methods to load ` CommandSets ` using a mix of
6868 command decorators
6969- [ paged_output.py] ( https://github.com/python-cmd2/cmd2/blob/main/examples/paged_output.py )
File renamed without changes.
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ dev = [
4444 " ipython>=8.23" ,
4545 " mkdocstrings[python]>=1" ,
4646 " mypy>=1.13" ,
47- " pre-commit>=3 " ,
47+ " prek>=0.3.5 " ,
4848 " pytest>=8.1.1" ,
4949 " pytest-cov>=5" ,
5050 " pytest-mock>=3.14.1" ,
@@ -58,7 +58,7 @@ docs = [
5858 " setuptools_scm>=8" ,
5959 " zensical>=0.0.17" ,
6060]
61- quality = [" pre-commit>=3 " ]
61+ quality = [" prek>=0.3.5 " ]
6262test = [
6363 " codecov>=2.1" ,
6464 " coverage>=7.11" ,
You can’t perform that action at this time.
0 commit comments