-
Notifications
You must be signed in to change notification settings - Fork 0
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
d6476e5
commit 1bf44a0
Showing
12 changed files
with
1,231 additions
and
1,481 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
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
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
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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
3.12.4 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
0.3.2 |
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,16 +1,47 @@ | ||
TEST_DIR="tests" | ||
|
||
# Docs | ||
doc-build: | ||
poetry run mkdocs build | ||
uv run mkdocs build | ||
|
||
doc-serve: doc-build | ||
poetry run mkdocs serve | ||
uv run mkdocs serve | ||
|
||
doc-deploy: | ||
poetry run mkdocs gh-deploy --force | ||
uv run mkdocs gh-deploy --force | ||
|
||
# Setup | ||
init: init-uv init-python | ||
|
||
init-uv: | ||
curl -LsSf https://astral.sh/uv/$(shell cat .uv-version)/install.sh | sh | ||
|
||
init-python: | ||
uv python install $(cat .python-version) | ||
|
||
install: | ||
uv sync | ||
|
||
lock: | ||
uv lock | ||
|
||
# Validations | ||
format: | ||
uv run ruff format --check . | ||
|
||
lint: lint-python lint-sql | ||
|
||
lint-python: | ||
uv run ruff check --output-format=github . | ||
|
||
lint-sql: | ||
uv run sqlfluff lint . | ||
|
||
type: | ||
uv run mypy . | ||
|
||
test: | ||
poetry run coverage run -m pytest -vv $(TEST_DIR) && poetry run coverage report -m | ||
uv run coverage run -m pytest -vv $(TEST_DIR) && uv run coverage report -m | ||
|
||
test-all: | ||
poetry run nox --reuse-venv=yes --no-install | ||
uv run nox --reuse-venv=yes --no-install |
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
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,28 +1,28 @@ | ||
import nox | ||
|
||
|
||
def _install_poetry(session: nox.Session) -> nox.Session: | ||
session.install("poetry") | ||
session.run("poetry", "install") | ||
def _install_package_manager(session: nox.Session) -> nox.Session: | ||
session.install("uv") | ||
session.run("uv", "sync") | ||
return session | ||
|
||
|
||
@nox.session | ||
def tests(session: nox.Session) -> None: | ||
session = _install_poetry(session=session) | ||
session = _install_package_manager(session=session) | ||
session.run("coverage", "run", "-m", "pytest", "-vv") | ||
session.run("coverage", "report") | ||
|
||
|
||
@nox.session | ||
def lint(session: nox.Session) -> None: | ||
session = _install_poetry(session=session) | ||
session = _install_package_manager(session=session) | ||
session.run("ruff", "format", "--check", ".") | ||
session.run("ruff", "check", "--output-format=github", ".") | ||
session.run("sqlfluff", "lint", ".") | ||
|
||
|
||
@nox.session | ||
def typing(session: nox.Session) -> None: | ||
session = _install_poetry(session=session) | ||
session = _install_package_manager(session=session) | ||
session.run("mypy", ".") |
Oops, something went wrong.