boot strap a new project or migrate an old one into modern uv setup with tests
mkdir newproject
cd newproject/
wget -q https://raw.githubusercontent.com/brian-learns/testafize/main/Makefile
make init
curl https://raw.githubusercontent.com/brian-learns/testafize/main/pyproject_tool.toml >> pyproject.tomlThen you will have stub python project set up with uv and static tests installed.
$ uv run newproject
Hello from newproject!
$ tree -a -I .venv/ -I .git/
.
├── .gitignore
├── Makefile
├── pyproject.toml
├── .python-version
├── README.md
├── src
│ └── newproject
│ └── __init__.py
└── uv.lock
3 directories, 7 filesThen you can run
make check
to run the static tests. There is also a stub to run pytest.
make test # will fail because there are no tests yet
wget -q https://raw.githubusercontent.com/brian-learns/testafize/main/Makefile
make init
make checkruffAn extremely fast Python linter and code formatterbanditAST based security scannervultureFind dead Python coderefurbA tool for refurbishing and modernizing Python codebasestyAn extremely fast Python type checker and language server
You can uncomment interrogate to check for docstring coverage, but the uv init stubs don't pass this
- #
interrogateInterrogate a codebase for docstring coverage (commented out)