diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..7322029 --- /dev/null +++ b/.env.example @@ -0,0 +1,11 @@ +# Optional: repository path for gate operations (defaults to current directory) +# ELOHIM_REPO= +# ELOHIM_TREE= +# Optional: GitHub token for GitHub-specific features +# GITHUB_TOKEN= +# GH_TOKEN= +# Optional: CI-specific +# GITHUB_STEP_SUMMARY= +# GITHUB_RUN_ID= +# Optional: harness integration +# ELOHIM_HARNESS_UNDER_TEST= \ No newline at end of file diff --git a/.gitignore b/.gitignore index fa715e9..653e394 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,13 @@ node_modules/ # scratch used by the test harness _probe_scratch.py + +# environment +.env +.env.* +!.env.example + +# build artifacts +*.egg-info/ +.mypy_cache/ +ruff_cache/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2c3313c --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +.PHONY: install test lint typecheck run clean + +install: + uv sync + +test: + uv run pytest -v + +lint: + uv run ruff check . + uv run ruff format --check . + +typecheck: + uv run mypy . + +run: + uv run python -m elohim_gate --all + +clean: + rm -rf __pycache__ .pytest_cache .mypy_cache ruff_cache dist build *.egg-info \ No newline at end of file diff --git a/README.md b/README.md index e57a0d4..222df98 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ +[![CI](https://github.com/Quattro-Commas/elohim/actions/workflows/ci.yml/badge.svg)](https://github.com/Quattro-Commas/elohim/actions/workflows/ci.yml) +[![CodeQL](https://github.com/Quattro-Commas/elohim/actions/workflows/codeql.yml/badge.svg)](https://github.com/Quattro-Commas/elohim/actions/workflows/codeql.yml) +[![PyPI](https://img.shields.io/pypi/v/elohim-gate)](https://pypi.org/project/elohim-gate/) +[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) +[![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/) + # ELOHIM > A number is a finding only after its residual was measured. diff --git a/pyproject.toml b/pyproject.toml index 84f133f..4ac5a43 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,9 +40,9 @@ classifiers = [ elohim = "elohim_gate.cli:main" [project.urls] -Homepage = "https://github.com/BoozeLee/elohim" -Source = "https://github.com/BoozeLee/elohim" -Issues = "https://github.com/BoozeLee/elohim/issues" +Homepage = "https://github.com/Quattro-Commas/elohim" +Source = "https://github.com/Quattro-Commas/elohim" +Issues = "https://github.com/Quattro-Commas/elohim/issues" # Pinned, not ranged. A ranged pin is a measurement that changes when someone # else pushes, which is the failure this repository exists to catch. These are @@ -66,4 +66,12 @@ packages = ["elohim_gate"] [tool.hatch.build.targets.wheel.force-include] "skills" = "elohim_gate/_skills" "adapters" = "elohim_gate/_adapters" -"plugins" = "elohim_gate/_plugins" \ No newline at end of file +"plugins" = "elohim_gate/_plugins" + +[tool.ruff] +line-length = 100 +target-version = "py310" + +[tool.mypy] +python_version = "3.10" +check_untyped_defs = true \ No newline at end of file