-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5260625
commit 8627bc6
Showing
1 changed file
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,49 @@ | ||
.DEFAULT_GOAL := all | ||
sources = pydantic tests docs/plugins | ||
|
||
.PHONY: .rye ## Check that Rye is installed | ||
.PHONY: .rye # Check that Rye is installed | ||
.rye: | ||
@rye --version || echo 'Please install Rye: https://rye-up.com/guide/installation/' | ||
|
||
.PHONY: .pre-commit ## Check that pre-commit is installed | ||
.PHONY: .pre-commit # Check that pre-commit is installed | ||
.pre-commit: | ||
@pre-commit -V || echo 'Please install pre-commit: https://pre-commit.com/' | ||
|
||
.PHONY: install ## Install the package, dependencies, and pre-commit for local development | ||
.PHONY: install # Install the package, dependencies, and pre-commit for local development | ||
install: .rye .pre-commit | ||
rye show | ||
rye sync | ||
pre-commit install --install-hooks | ||
|
||
.PHONY: format ## Format the code | ||
.PHONY: format # Format the code | ||
format: | ||
rye format | ||
rye lint --fix | ||
|
||
.PHONY: lint ## Lint the code | ||
.PHONY: lint # Lint the code | ||
lint: | ||
rye lint | ||
rye format --check | ||
|
||
.PHONY: test ## Run the tests | ||
.PHONY: test # Run the tests | ||
test: | ||
rye test | ||
|
||
.PHONY: docs ## Build the documentation | ||
.PHONY: docs # Build the documentation | ||
docs: | ||
rye run docs | ||
|
||
.PHONY: docs-serve ## Build the documentation | ||
.PHONY: docs-serve # Build and serve the documentation | ||
docs-serve: | ||
rye run docs-serve | ||
|
||
.PHONY: all | ||
all: format lint test | ||
|
||
.PHONY: cf-pages-build | ||
.PHONY: cf-pages-build # Build the docs for GitHub Pages | ||
cf-pages-build: | ||
python3 -V | ||
python3 -m pip install --user uv | ||
uv pip install --system -r requirements.lock -r requirements-dev.lock | ||
uv pip install --system -U mkdocs-material mkdocstrings-python | ||
mkdocs build | ||
python3 -m pip install uv | ||
python3 -m uv pip install --system -r requirements.lock -r requirements-dev.lock | ||
python3 -m uv pip install --system --extra-index-url $(PPPR_URL) -U mkdocs-material mkdocstrings-python | ||
python3 -m mkdocs build |