-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: 🛠Convert everything to use ruff and just
- Loading branch information
Showing
10 changed files
with
69 additions
and
140 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 was deleted.
Oops, something went wrong.
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,30 @@ | ||
install-pre-commit: | ||
#!/usr/bin/env bash | ||
if ( which pre-commit > /dev/null 2>&1 ) | ||
then | ||
pre-commit install --install-hooks | ||
else | ||
echo "-----------------------------------------------------------------" | ||
echo "pre-commit is not installed - cannot enable pre-commit hooks!" | ||
echo "Recommendation: Install pre-commit ('brew install pre-commit')." | ||
echo "-----------------------------------------------------------------" | ||
fi | ||
install: install-pre-commit (poetry "install") | ||
|
||
update: (poetry "install") | ||
|
||
poetry *args: | ||
poetry {{args}} | ||
|
||
test *args: (poetry "run" "pytest" "--cov=pydantic_changedetect" "--cov-report" "term-missing:skip-covered" args) | ||
|
||
test-all: (poetry "run" "tox") | ||
|
||
ruff *args: (poetry "run" "ruff" "check" "pydantic_changedetect" "tests" args) | ||
|
||
mypy *args: (poetry "run" "mypy" "pydantic_changedetect" args) | ||
|
||
lint: ruff mypy | ||
|
||
publish: (poetry "publish" "--build") |
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