-
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.
use uv to manage development environments
- Loading branch information
Showing
3 changed files
with
35 additions
and
0 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 |
---|---|---|
|
@@ -6,3 +6,4 @@ __pycache__/ | |
/loam/_version.py | ||
/loam.egg-info/ | ||
/docs/_build/ | ||
/uv.lock |
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,24 @@ | ||
# check style, typing, and run tests | ||
check-all: lint typecheck test | ||
|
||
# check style and format | ||
lint: | ||
uv run -- ruff check --extend-select I . | ||
uv run -- ruff format --check . | ||
|
||
# format code and sort imports | ||
format: | ||
uv run -- ruff check --select I --fix . | ||
uv run -- ruff format . | ||
|
||
# check static typing annotations | ||
typecheck: | ||
uv run -- mypy loam/ tests/ | ||
|
||
# run test suite | ||
test: | ||
uv run -- pytest --cov=./loam --cov-report term-missing | ||
|
||
# invoke mkdocs with appropriate dependencies | ||
mkdocs *FLAGS: | ||
uv run --with-requirements=docs/requirements.txt -- mkdocs {{FLAGS}} |
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