Quickstart#
Create a
.geomancy.yamlfile with checks. See examples/geomancy.yaml for an example of all checks.Environment: desc: Check environment variables common to all development environments Username: desc: The current username checkEnv: "$USER" regex: "[a-z_][a-z0-9_-]*[$]?" Paths: desc: Checks the existence of needed files and directories subchecks: "any" # at least one of the files must be present Geomancy: desc: Check for the 'geomancy.toml' file checkPath: examples/geomancy.toml type: file Pyproject: desc: Check for 'pyproject.toml' file checkPath: examples/pyproject.toml type: file Executables: desc: Check the availability of commands and their versions Python: desc: Python interpreter ver 3.11 or higher checkExec: python3>=3.11
Use
geoto run the checks.[✔] test.yaml...passed [✔] Environment...passed [✔] Check environment variable '$USER'...passed [✔] Paths...passed [✔] Check path 'examples/geomancy.toml'...passed [✔] Check path 'examples/pyproject.toml'...passed [✔] Executables...passed [✔] Check executable 'python3>=3.11'...passed ================================= 8 passed in 0.50s ==================================
(By default,
geomancywill search.geomancy.y[a]ml,geomancy.y[a]ml.geomancy.toml,geomancy.tomlandpyproject.toml.)