generated from langchain-ai/integration-repo-template
-
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.
INTPYTHON-467 Switch from Makefile to Justfile (#52)
- Loading branch information
Showing
10 changed files
with
99 additions
and
158 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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 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,36 @@ | ||
set shell := ["bash", "-c"] | ||
set dotenv-load | ||
set dotenv-filename := "../../.local_atlas_uri" | ||
|
||
# Default target executed when no arguments are given. | ||
[private] | ||
default: | ||
@just --list | ||
|
||
install: | ||
poetry install --with dev | ||
|
||
[group('test')] | ||
integration_tests: | ||
poetry run pytest tests/integration_tests/ | ||
|
||
[group('test')] | ||
test *args="tests/unit_tests": | ||
poetry run pytest {{args}} | ||
|
||
[group('test')] | ||
test_watch filename: | ||
poetry run ptw --snapshot-update --now . -- -vv {{filename}} | ||
|
||
[group('lint')] | ||
lint: | ||
git ls-files -- '*.py' | xargs poetry run pre-commit run ruff --files | ||
git ls-files -- '*.py' | xargs poetry run pre-commit run ruff-format --files | ||
|
||
[group('lint')] | ||
typing: | ||
poetry run mypy . | ||
|
||
[group('lint')] | ||
codespell: | ||
git ls-files -- '*.py' | xargs poetry run pre-commit run --hook-stage manual codespell --files |
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,36 @@ | ||
set shell := ["bash", "-c"] | ||
set dotenv-load | ||
set dotenv-filename := "../../.local_atlas_uri" | ||
|
||
# Default target executed when no arguments are given. | ||
[private] | ||
default: | ||
@just --list | ||
|
||
install: | ||
poetry install --with dev | ||
|
||
[group('test')] | ||
integration_tests: | ||
poetry run pytest tests/integration_tests/ | ||
|
||
[group('test')] | ||
test *args="tests/unit_tests": | ||
poetry run pytest {{args}} | ||
|
||
[group('test')] | ||
test_watch filename: | ||
poetry run ptw --snapshot-update --now . -- -vv {{filename}} | ||
|
||
[group('lint')] | ||
lint: | ||
git ls-files -- '*.py' | xargs poetry run pre-commit run ruff --files | ||
git ls-files -- '*.py' | xargs poetry run pre-commit run ruff-format --files | ||
|
||
[group('lint')] | ||
typing: | ||
poetry run mypy . | ||
|
||
[group('lint')] | ||
codespell: | ||
git ls-files -- '*.py' | xargs poetry run pre-commit run --hook-stage manual codespell --files |