mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
chore: add make type target (#35015)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all format lint test tests test_watch integration_tests help extended_tests check_version
|
.PHONY: all format lint type test tests test_watch integration_tests help extended_tests check_version
|
||||||
|
|
||||||
# Default target executed when no arguments are given to make.
|
# Default target executed when no arguments are given to make.
|
||||||
all: help
|
all: help
|
||||||
@@ -59,6 +59,9 @@ lint lint_diff lint_package lint_tests:
|
|||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
||||||
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
|
type:
|
||||||
|
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
format format_diff:
|
format format_diff:
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
||||||
@@ -74,6 +77,7 @@ help:
|
|||||||
@echo '----'
|
@echo '----'
|
||||||
@echo 'format - run code formatters'
|
@echo 'format - run code formatters'
|
||||||
@echo 'lint - run linters'
|
@echo 'lint - run linters'
|
||||||
|
@echo 'type - run type checking'
|
||||||
@echo 'check_version - validate version consistency'
|
@echo 'check_version - validate version consistency'
|
||||||
@echo 'test - run unit tests'
|
@echo 'test - run unit tests'
|
||||||
@echo 'tests - run unit tests'
|
@echo 'tests - run unit tests'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all coverage test tests extended_tests test_watch test_watch_extended integration_tests check_imports lint format lint_diff format_diff lint_package lint_tests help
|
.PHONY: all coverage test tests extended_tests test_watch test_watch_extended integration_tests check_imports lint format type lint_diff format_diff lint_package lint_tests help
|
||||||
|
|
||||||
# Default target executed when no arguments are given to make.
|
# Default target executed when no arguments are given to make.
|
||||||
all: help
|
all: help
|
||||||
@@ -58,6 +58,9 @@ lint lint_diff lint_package lint_tests:
|
|||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
||||||
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
|
type:
|
||||||
|
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
format format_diff:
|
format format_diff:
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
||||||
@@ -71,6 +74,7 @@ help:
|
|||||||
@echo '-- LINTING --'
|
@echo '-- LINTING --'
|
||||||
@echo 'format - run code formatters'
|
@echo 'format - run code formatters'
|
||||||
@echo 'lint - run linters'
|
@echo 'lint - run linters'
|
||||||
|
@echo 'type - run type checking'
|
||||||
@echo '-- TESTS --'
|
@echo '-- TESTS --'
|
||||||
@echo 'coverage - run unit tests and generate coverage report'
|
@echo 'coverage - run unit tests and generate coverage report'
|
||||||
@echo 'test - run unit tests'
|
@echo 'test - run unit tests'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all start_services stop_services coverage coverage_agents test test_fast extended_tests test_watch test_watch_extended integration_tests check_imports check_version lint format lint_diff format_diff lint_package lint_tests help
|
.PHONY: all start_services stop_services coverage coverage_agents test test_fast extended_tests test_watch test_watch_extended integration_tests check_imports check_version lint format type lint_diff format_diff lint_package lint_tests help
|
||||||
|
|
||||||
# Default target executed when no arguments are given to make.
|
# Default target executed when no arguments are given to make.
|
||||||
all: help
|
all: help
|
||||||
@@ -90,6 +90,9 @@ lint lint_diff lint_package lint_tests:
|
|||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
||||||
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
|
type:
|
||||||
|
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
format format_diff:
|
format format_diff:
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
||||||
@@ -103,6 +106,7 @@ help:
|
|||||||
@echo '-- LINTING --'
|
@echo '-- LINTING --'
|
||||||
@echo 'format - run code formatters'
|
@echo 'format - run code formatters'
|
||||||
@echo 'lint - run linters'
|
@echo 'lint - run linters'
|
||||||
|
@echo 'type - run type checking'
|
||||||
@echo 'check_version - validate version consistency'
|
@echo 'check_version - validate version consistency'
|
||||||
@echo '-- TESTS --'
|
@echo '-- TESTS --'
|
||||||
@echo 'coverage - run unit tests and generate coverage report'
|
@echo 'coverage - run unit tests and generate coverage report'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all format lint test tests integration_tests help extended_tests
|
.PHONY: all format lint type test tests integration_tests help extended_tests
|
||||||
|
|
||||||
# Default target executed when no arguments are given to make.
|
# Default target executed when no arguments are given to make.
|
||||||
all: help
|
all: help
|
||||||
@@ -43,6 +43,9 @@ lint lint_diff lint_package lint_tests:
|
|||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
||||||
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
|
type:
|
||||||
|
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
format format_diff:
|
format format_diff:
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
||||||
@@ -59,6 +62,7 @@ help:
|
|||||||
@echo 'check_imports - check imports'
|
@echo 'check_imports - check imports'
|
||||||
@echo 'format - run code formatters'
|
@echo 'format - run code formatters'
|
||||||
@echo 'lint - run linters'
|
@echo 'lint - run linters'
|
||||||
|
@echo 'type - run type checking'
|
||||||
@echo 'test - run unit tests'
|
@echo 'test - run unit tests'
|
||||||
@echo 'tests - run unit tests'
|
@echo 'tests - run unit tests'
|
||||||
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all format lint test tests integration_tests help extended_tests
|
.PHONY: all format lint type test tests integration_tests help extended_tests
|
||||||
|
|
||||||
# Default target executed when no arguments are given to make.
|
# Default target executed when no arguments are given to make.
|
||||||
all: help
|
all: help
|
||||||
@@ -41,6 +41,9 @@ lint lint_diff lint_package lint_tests:
|
|||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
||||||
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
|
type:
|
||||||
|
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
format format_diff:
|
format format_diff:
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
||||||
@@ -57,6 +60,7 @@ help:
|
|||||||
@echo 'check_imports - check imports'
|
@echo 'check_imports - check imports'
|
||||||
@echo 'format - run code formatters'
|
@echo 'format - run code formatters'
|
||||||
@echo 'lint - run linters'
|
@echo 'lint - run linters'
|
||||||
|
@echo 'type - run type checking'
|
||||||
@echo 'test - run unit tests'
|
@echo 'test - run unit tests'
|
||||||
@echo 'tests - run unit tests'
|
@echo 'tests - run unit tests'
|
||||||
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all format lint test tests integration_tests help extended_tests
|
.PHONY: all format lint type test tests integration_tests help extended_tests
|
||||||
|
|
||||||
# Default target executed when no arguments are given to make.
|
# Default target executed when no arguments are given to make.
|
||||||
all: help
|
all: help
|
||||||
@@ -39,6 +39,9 @@ lint lint_diff lint_package lint_tests:
|
|||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
||||||
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
|
type:
|
||||||
|
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
format format_diff:
|
format format_diff:
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
||||||
@@ -55,6 +58,7 @@ help:
|
|||||||
@echo 'check_imports - check imports'
|
@echo 'check_imports - check imports'
|
||||||
@echo 'format - run code formatters'
|
@echo 'format - run code formatters'
|
||||||
@echo 'lint - run linters'
|
@echo 'lint - run linters'
|
||||||
|
@echo 'type - run type checking'
|
||||||
@echo 'test - run unit tests'
|
@echo 'test - run unit tests'
|
||||||
@echo 'tests - run unit tests'
|
@echo 'tests - run unit tests'
|
||||||
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all format lint test tests integration_tests help extended_tests
|
.PHONY: all format lint type test tests integration_tests help extended_tests
|
||||||
|
|
||||||
# Default target executed when no arguments are given to make.
|
# Default target executed when no arguments are given to make.
|
||||||
all: help
|
all: help
|
||||||
@@ -40,6 +40,9 @@ lint lint_diff lint_package lint_tests:
|
|||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
||||||
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
|
type:
|
||||||
|
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
format format_diff:
|
format format_diff:
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
||||||
@@ -56,6 +59,7 @@ help:
|
|||||||
@echo 'check_imports - check imports'
|
@echo 'check_imports - check imports'
|
||||||
@echo 'format - run code formatters'
|
@echo 'format - run code formatters'
|
||||||
@echo 'lint - run linters'
|
@echo 'lint - run linters'
|
||||||
|
@echo 'type - run type checking'
|
||||||
@echo 'test - run unit tests'
|
@echo 'test - run unit tests'
|
||||||
@echo 'tests - run unit tests'
|
@echo 'tests - run unit tests'
|
||||||
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all format lint test tests integration_tests help extended_tests
|
.PHONY: all format lint type test tests integration_tests help extended_tests
|
||||||
|
|
||||||
# Default target executed when no arguments are given to make.
|
# Default target executed when no arguments are given to make.
|
||||||
all: help
|
all: help
|
||||||
@@ -39,6 +39,9 @@ lint lint_diff lint_package lint_tests:
|
|||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
||||||
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
|
type:
|
||||||
|
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
format format_diff:
|
format format_diff:
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
||||||
@@ -55,6 +58,7 @@ help:
|
|||||||
@echo 'check_imports - check imports'
|
@echo 'check_imports - check imports'
|
||||||
@echo 'format - run code formatters'
|
@echo 'format - run code formatters'
|
||||||
@echo 'lint - run linters'
|
@echo 'lint - run linters'
|
||||||
|
@echo 'type - run type checking'
|
||||||
@echo 'test - run unit tests'
|
@echo 'test - run unit tests'
|
||||||
@echo 'tests - run unit tests'
|
@echo 'tests - run unit tests'
|
||||||
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all format lint test tests integration_tests help extended_tests
|
.PHONY: all format lint type test tests integration_tests help extended_tests
|
||||||
|
|
||||||
# Default target executed when no arguments are given to make.
|
# Default target executed when no arguments are given to make.
|
||||||
all: help
|
all: help
|
||||||
@@ -38,6 +38,9 @@ lint lint_diff lint_package lint_tests:
|
|||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
||||||
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
|
type:
|
||||||
|
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
format format_diff:
|
format format_diff:
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
||||||
@@ -54,6 +57,7 @@ help:
|
|||||||
@echo 'check_imports - check imports'
|
@echo 'check_imports - check imports'
|
||||||
@echo 'format - run code formatters'
|
@echo 'format - run code formatters'
|
||||||
@echo 'lint - run linters'
|
@echo 'lint - run linters'
|
||||||
|
@echo 'type - run type checking'
|
||||||
@echo 'test - run unit tests'
|
@echo 'test - run unit tests'
|
||||||
@echo 'tests - run unit tests'
|
@echo 'tests - run unit tests'
|
||||||
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all format lint test tests integration_tests help extended_tests
|
.PHONY: all format lint type test tests integration_tests help extended_tests
|
||||||
|
|
||||||
# Default target executed when no arguments are given to make.
|
# Default target executed when no arguments are given to make.
|
||||||
all: help
|
all: help
|
||||||
@@ -39,6 +39,9 @@ lint lint_diff lint_package lint_tests:
|
|||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
||||||
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
|
type:
|
||||||
|
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
format format_diff:
|
format format_diff:
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
||||||
@@ -55,6 +58,7 @@ help:
|
|||||||
@echo 'check_imports - check imports'
|
@echo 'check_imports - check imports'
|
||||||
@echo 'format - run code formatters'
|
@echo 'format - run code formatters'
|
||||||
@echo 'lint - run linters'
|
@echo 'lint - run linters'
|
||||||
|
@echo 'type - run type checking'
|
||||||
@echo 'test - run unit tests'
|
@echo 'test - run unit tests'
|
||||||
@echo 'tests - run unit tests'
|
@echo 'tests - run unit tests'
|
||||||
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all format lint test tests integration_tests help extended_tests
|
.PHONY: all format lint type test tests integration_tests help extended_tests
|
||||||
|
|
||||||
# Default target executed when no arguments are given to make.
|
# Default target executed when no arguments are given to make.
|
||||||
all: help
|
all: help
|
||||||
@@ -39,6 +39,9 @@ lint lint_diff lint_package lint_tests:
|
|||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
||||||
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
|
type:
|
||||||
|
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
format format_diff:
|
format format_diff:
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
||||||
@@ -55,6 +58,7 @@ help:
|
|||||||
@echo 'check_imports - check imports'
|
@echo 'check_imports - check imports'
|
||||||
@echo 'format - run code formatters'
|
@echo 'format - run code formatters'
|
||||||
@echo 'lint - run linters'
|
@echo 'lint - run linters'
|
||||||
|
@echo 'type - run type checking'
|
||||||
@echo 'test - run unit tests'
|
@echo 'test - run unit tests'
|
||||||
@echo 'tests - run unit tests'
|
@echo 'tests - run unit tests'
|
||||||
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all format lint test tests integration_tests help extended_tests
|
.PHONY: all format lint type test tests integration_tests help extended_tests
|
||||||
|
|
||||||
# Default target executed when no arguments are given to make.
|
# Default target executed when no arguments are given to make.
|
||||||
all: help
|
all: help
|
||||||
@@ -41,6 +41,9 @@ lint lint_diff lint_package lint_tests:
|
|||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
||||||
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
|
type:
|
||||||
|
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
format format_diff:
|
format format_diff:
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
||||||
@@ -57,6 +60,7 @@ help:
|
|||||||
@echo 'check_imports - check imports'
|
@echo 'check_imports - check imports'
|
||||||
@echo 'format - run code formatters'
|
@echo 'format - run code formatters'
|
||||||
@echo 'lint - run linters'
|
@echo 'lint - run linters'
|
||||||
|
@echo 'type - run type checking'
|
||||||
@echo 'test - run unit tests'
|
@echo 'test - run unit tests'
|
||||||
@echo 'tests - run unit tests'
|
@echo 'tests - run unit tests'
|
||||||
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all format lint test tests integration_tests help extended_tests
|
.PHONY: all format lint type test tests integration_tests help extended_tests
|
||||||
|
|
||||||
# Default target executed when no arguments are given to make.
|
# Default target executed when no arguments are given to make.
|
||||||
all: help
|
all: help
|
||||||
@@ -39,6 +39,9 @@ lint lint_diff lint_package lint_tests:
|
|||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
||||||
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
|
type:
|
||||||
|
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
format format_diff:
|
format format_diff:
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
||||||
@@ -55,6 +58,7 @@ help:
|
|||||||
@echo 'check_imports - check imports'
|
@echo 'check_imports - check imports'
|
||||||
@echo 'format - run code formatters'
|
@echo 'format - run code formatters'
|
||||||
@echo 'lint - run linters'
|
@echo 'lint - run linters'
|
||||||
|
@echo 'type - run type checking'
|
||||||
@echo 'test - run unit tests'
|
@echo 'test - run unit tests'
|
||||||
@echo 'tests - run unit tests'
|
@echo 'tests - run unit tests'
|
||||||
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all format lint test tests integration_tests help extended_tests
|
.PHONY: all format lint type test tests integration_tests help extended_tests
|
||||||
|
|
||||||
# Default target executed when no arguments are given to make.
|
# Default target executed when no arguments are given to make.
|
||||||
all: help
|
all: help
|
||||||
@@ -48,6 +48,9 @@ lint lint_diff lint_package lint_tests:
|
|||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
||||||
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
|
type:
|
||||||
|
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
format format_diff:
|
format format_diff:
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
||||||
@@ -64,6 +67,7 @@ help:
|
|||||||
@echo 'check_imports - check imports'
|
@echo 'check_imports - check imports'
|
||||||
@echo 'format - run code formatters'
|
@echo 'format - run code formatters'
|
||||||
@echo 'lint - run linters'
|
@echo 'lint - run linters'
|
||||||
|
@echo 'type - run type checking'
|
||||||
@echo 'test - run unit tests'
|
@echo 'test - run unit tests'
|
||||||
@echo 'tests - run unit tests'
|
@echo 'tests - run unit tests'
|
||||||
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all format lint test tests integration_tests help extended_tests
|
.PHONY: all format lint type test tests integration_tests help extended_tests
|
||||||
|
|
||||||
# Default target executed when no arguments are given to make.
|
# Default target executed when no arguments are given to make.
|
||||||
all: help
|
all: help
|
||||||
@@ -52,6 +52,9 @@ lint lint_diff lint_package lint_tests:
|
|||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
||||||
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
|
type:
|
||||||
|
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
format format_diff:
|
format format_diff:
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
||||||
@@ -68,6 +71,7 @@ help:
|
|||||||
@echo 'check_imports - check imports'
|
@echo 'check_imports - check imports'
|
||||||
@echo 'format - run code formatters'
|
@echo 'format - run code formatters'
|
||||||
@echo 'lint - run linters'
|
@echo 'lint - run linters'
|
||||||
|
@echo 'type - run type checking'
|
||||||
@echo 'test - run unit tests'
|
@echo 'test - run unit tests'
|
||||||
@echo 'tests - run unit tests'
|
@echo 'tests - run unit tests'
|
||||||
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all format lint test tests integration_tests help extended_tests
|
.PHONY: all format lint type test tests integration_tests help extended_tests
|
||||||
|
|
||||||
# Default target executed when no arguments are given to make.
|
# Default target executed when no arguments are given to make.
|
||||||
all: help
|
all: help
|
||||||
@@ -38,6 +38,9 @@ lint lint_diff lint_package lint_tests:
|
|||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
||||||
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
|
type:
|
||||||
|
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
format format_diff:
|
format format_diff:
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
||||||
@@ -54,6 +57,7 @@ help:
|
|||||||
@echo 'check_imports - check imports'
|
@echo 'check_imports - check imports'
|
||||||
@echo 'format - run code formatters'
|
@echo 'format - run code formatters'
|
||||||
@echo 'lint - run linters'
|
@echo 'lint - run linters'
|
||||||
|
@echo 'type - run type checking'
|
||||||
@echo 'test - run unit tests'
|
@echo 'test - run unit tests'
|
||||||
@echo 'tests - run unit tests'
|
@echo 'tests - run unit tests'
|
||||||
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all format lint test tests integration_tests help extended_tests
|
.PHONY: all format lint type test tests integration_tests help extended_tests
|
||||||
|
|
||||||
# Default target executed when no arguments are given to make.
|
# Default target executed when no arguments are given to make.
|
||||||
all: help
|
all: help
|
||||||
@@ -37,6 +37,9 @@ lint lint_diff lint_package lint_tests:
|
|||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
||||||
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
|
type:
|
||||||
|
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
format format_diff:
|
format format_diff:
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
||||||
@@ -53,6 +56,7 @@ help:
|
|||||||
@echo 'check_imports - check imports'
|
@echo 'check_imports - check imports'
|
||||||
@echo 'format - run code formatters'
|
@echo 'format - run code formatters'
|
||||||
@echo 'lint - run linters'
|
@echo 'lint - run linters'
|
||||||
|
@echo 'type - run type checking'
|
||||||
@echo 'test - run unit tests'
|
@echo 'test - run unit tests'
|
||||||
@echo 'tests - run unit tests'
|
@echo 'tests - run unit tests'
|
||||||
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all format lint test tests integration_test integration_tests help
|
.PHONY: all format lint type test tests integration_test integration_tests help
|
||||||
|
|
||||||
# Default target executed when no arguments are given to make.
|
# Default target executed when no arguments are given to make.
|
||||||
all: help
|
all: help
|
||||||
@@ -40,6 +40,9 @@ lint lint_diff lint_package lint_tests:
|
|||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
||||||
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
|
type:
|
||||||
|
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
format format_diff:
|
format format_diff:
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
||||||
@@ -56,6 +59,7 @@ help:
|
|||||||
@echo 'check_imports - check imports'
|
@echo 'check_imports - check imports'
|
||||||
@echo 'format - run code formatters'
|
@echo 'format - run code formatters'
|
||||||
@echo 'lint - run linters'
|
@echo 'lint - run linters'
|
||||||
|
@echo 'type - run type checking'
|
||||||
@echo 'lint_tests - run linters on tests'
|
@echo 'lint_tests - run linters on tests'
|
||||||
@echo 'test - run unit tests'
|
@echo 'test - run unit tests'
|
||||||
@echo 'tests - run unit tests'
|
@echo 'tests - run unit tests'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all format lint test tests integration_tests help extended_tests
|
.PHONY: all format lint type test tests integration_tests help extended_tests
|
||||||
|
|
||||||
# Default target executed when no arguments are given to make.
|
# Default target executed when no arguments are given to make.
|
||||||
all: help
|
all: help
|
||||||
@@ -38,6 +38,9 @@ lint lint_diff lint_package lint_tests:
|
|||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
||||||
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
|
type:
|
||||||
|
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
format format_diff:
|
format format_diff:
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
||||||
@@ -54,6 +57,7 @@ help:
|
|||||||
@echo 'check_imports - check imports'
|
@echo 'check_imports - check imports'
|
||||||
@echo 'format - run code formatters'
|
@echo 'format - run code formatters'
|
||||||
@echo 'lint - run linters'
|
@echo 'lint - run linters'
|
||||||
|
@echo 'type - run type checking'
|
||||||
@echo 'test - run unit tests'
|
@echo 'test - run unit tests'
|
||||||
@echo 'tests - run unit tests'
|
@echo 'tests - run unit tests'
|
||||||
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all format lint test tests integration_tests help extended_tests
|
.PHONY: all format lint type test tests integration_tests help extended_tests
|
||||||
|
|
||||||
# Default target executed when no arguments are given to make.
|
# Default target executed when no arguments are given to make.
|
||||||
all: help
|
all: help
|
||||||
@@ -37,6 +37,9 @@ lint lint_diff lint_package lint_tests:
|
|||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
||||||
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
|
type:
|
||||||
|
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
format format_diff:
|
format format_diff:
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
||||||
@@ -53,6 +56,7 @@ help:
|
|||||||
@echo 'check_imports - check imports'
|
@echo 'check_imports - check imports'
|
||||||
@echo 'format - run code formatters'
|
@echo 'format - run code formatters'
|
||||||
@echo 'lint - run linters'
|
@echo 'lint - run linters'
|
||||||
|
@echo 'type - run type checking'
|
||||||
@echo 'test - run unit tests'
|
@echo 'test - run unit tests'
|
||||||
@echo 'tests - run unit tests'
|
@echo 'tests - run unit tests'
|
||||||
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.PHONY: all format lint test tests test_watch integration_tests help extended_tests
|
.PHONY: all format lint type test tests test_watch integration_tests help extended_tests
|
||||||
|
|
||||||
# Default target executed when no arguments are given to make.
|
# Default target executed when no arguments are given to make.
|
||||||
all: help
|
all: help
|
||||||
@@ -47,6 +47,9 @@ lint lint_diff lint_package lint_tests:
|
|||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
||||||
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
|
type:
|
||||||
|
mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
||||||
|
|
||||||
format format_diff:
|
format format_diff:
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
||||||
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
||||||
@@ -59,6 +62,7 @@ help:
|
|||||||
@echo '----'
|
@echo '----'
|
||||||
@echo 'format - run code formatters'
|
@echo 'format - run code formatters'
|
||||||
@echo 'lint - run linters'
|
@echo 'lint - run linters'
|
||||||
|
@echo 'type - run type checking'
|
||||||
@echo 'test - run unit tests'
|
@echo 'test - run unit tests'
|
||||||
@echo 'tests - run unit tests'
|
@echo 'tests - run unit tests'
|
||||||
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
||||||
|
|||||||
Reference in New Issue
Block a user