__init__ files are a combination of automatic generation, and manual tuning...
pip install mkinitmkinit --relative src/cognition[/submodule](optional:-wfor overwrite)- Iterative loop of running checks (below) and applying
black/rufffixes- Note: Since
mkinitignores type definitions, this is a purely manual process (with the most extreme beingfunctypes)- Identification:
grep -rnE '^\s*type\s+[A-Za-z_][A-Za-z0-9_]*(\s*\[[^]]*\])?\s*=' --include='*.py' src
- Identification:
- Note: Since
Run below (stopping on errors) via source checks.sh (given installs via dev-requirements.txt).
export PYTHONPATH="${PYTHONPATH}:src"python -m unittest discover
(After #1 above)
coverage run --source=cognition -m unittest discover- Options...
coverage report -mcoverage html
mypy tests srcpylint tests srcruff check tests srcblack --check tests srcvalidate-pyproject pyproject.toml