@@ -22,7 +22,14 @@ install: install-node install-python .git/hooks/pre-commit
2222# Run the npm linting script (specified in package.json). Used to check the syntax and formatting of files.
2323lint :
2424 npm run lint
25- find . -name ' *.py' -not -path ' **/.venv/*' | xargs poetry run flake8
25+ poetry run ruff format . --check
26+ poetry run ruff check .
27+ poetry run pyright
28+
29+
30+ format : # # Format and fix code
31+ poetry run ruff format .
32+ poetry run ruff check . --fix-only
2633
2734# Creates the fully expanded OAS spec in json
2835publish : clean
@@ -36,7 +43,8 @@ _dist_include="pytest.ini poetry.lock poetry.toml pyproject.toml Makefile build/
3643# Example CI/CD targets are: dependencies, build, publish, deploy, clean, etc.
3744
3845dependencies : # Install dependencies needed to build and test the project @Pipeline
39- # TODO: Implement installation of your project dependencies
46+ pip install --user pipx
47+ pipx install poetry
4048
4149build : # Build the project artefact @Pipeline
4250 # TODO: Implement the artefact build step
@@ -51,6 +59,8 @@ config:: # Configure development environment (main) @Configuration
5159 # TODO: Use only 'make' targets that are specific to this project, e.g. you may not need to install Node.js
5260 make _install-dependencies
5361
62+ precommit : lint test # # Pre-commit tasks
63+
5464# ==============================================================================
5565
5666${VERBOSE}.SILENT : \
0 commit comments