# Copyright (c) 2024-2026 MorCherlf
#
# Licensed under the MIT License. You may not use this file except in compliance
# with the License. You may obtain a copy of the License at:
#
#     https://opensource.org/licenses/MIT
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

.PHONY: test test-unit test-integration typecheck compile build

test:
	.venv/bin/pytest

test-unit:
	.venv/bin/pytest -k "not integration"

test-integration:
	GRIFFINO_RUN_INTEGRATION_TESTS=1 .venv/bin/pytest tests/integration -vv

typecheck:
	.venv/bin/mypy src

compile:
	.venv/bin/python -m compileall src tests examples

build:
	.venv/bin/python -m build --no-isolation
