generated from griptape-ai/griptape-extension-template
-
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
d64b449
commit 102cf46
Showing
20 changed files
with
817 additions
and
1,266 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
versioning-strategy: increase-if-necessary | ||
groups: | ||
dependencies: | ||
dependency-type: "production" | ||
update-types: | ||
- "minor" | ||
- "patch" | ||
group-dependencies: | ||
dependency-type: "development" | ||
update-types: | ||
- "minor" | ||
- "patch" | ||
allow: | ||
- dependency-type: production | ||
- dependency-type: development | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
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,33 @@ | ||
repos: | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.15.0 | ||
hooks: | ||
- id: pyupgrade | ||
- repo: local | ||
hooks: | ||
- id: ruff-lint | ||
name: Ruff | ||
entry: make lint | ||
language: system | ||
types: [python] | ||
- repo: local | ||
hooks: | ||
- id: ruff-format | ||
name: Ruff | ||
entry: make format | ||
language: system | ||
types: [python] | ||
- repo: local | ||
hooks: | ||
- id: pyright | ||
name: Pyright | ||
entry: make check/types | ||
language: system | ||
types: [python] | ||
- repo: local | ||
hooks: | ||
- id: typos | ||
name: Typos | ||
entry: make check/spell | ||
language: system | ||
types: [python] |
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,67 @@ | ||
.PHONY: install | ||
install: ## Install all dependencies. | ||
@make install/all | ||
|
||
.PHONY: install/core | ||
install/core: ## Install core dependencies. | ||
@poetry install | ||
|
||
.PHONY: install/all | ||
install/all: ## Install all dependencies. | ||
@poetry install --with dev --with test | ||
@poetry run pre-commit install | ||
|
||
.PHONY: install/dev | ||
install/dev: ## Install dev dependencies. | ||
@poetry install --with dev | ||
|
||
.PHONY: install/test | ||
install/test: ## Install test dependencies. | ||
@poetry install --with test | ||
|
||
.PHONY: test ## Run all tests. | ||
test: test/unit | ||
|
||
.PHONY: test/unit | ||
test/unit: ## Run unit tests. | ||
@poetry run pytest tests/unit | ||
|
||
.PHONY: test/unit/% | ||
test/unit/%: ## Run specific unit tests. | ||
@poetry run pytest tests/unit -k $* | ||
|
||
.PHONY: lint | ||
lint: ## Lint project. | ||
@poetry run ruff check --fix | ||
|
||
.PHONY: format | ||
format: ## Format project. | ||
@poetry run ruff format | ||
|
||
.PHONY: check | ||
check: check/format check/lint check/types check/spell ## Run all checks. | ||
|
||
.PHONY: check/format | ||
check/format: | ||
@poetry run ruff format --check | ||
|
||
.PHONY: check/lint | ||
check/lint: | ||
@poetry run ruff check | ||
|
||
.PHONY: check/types | ||
check/types: | ||
@poetry run pyright griptape | ||
|
||
.PHONY: check/spell | ||
check/spell: | ||
@poetry run typos | ||
|
||
.DEFAULT_GOAL := help | ||
.PHONY: help | ||
help: ## Print Makefile help text. | ||
@# Matches targets with a comment in the format <target>: ## <comment> | ||
@# then formats help output using these values. | ||
@grep -E '^[a-zA-Z_\/-]+:.*?## .*$$' $(MAKEFILE_LIST) \ | ||
| awk 'BEGIN {FS = ":.*?## "}; \ | ||
{printf "\033[36m%-12s\033[0m%s\n", $$1, $$2}' |
Oops, something went wrong.