Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

testafize

boot strap a new project or migrate an old one into modern uv setup with tests

Prerequsites

install uv

Initialize Test Suite

New Project

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.toml

Then 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 files

Then 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

Existing Project

wget -q https://raw.githubusercontent.com/brian-learns/testafize/main/Makefile
make init
make check

Analysis and Linting

You can uncomment interrogate to check for docstring coverage, but the uv init stubs don't pass this

About

boot strap a new project or migrate an old one into modern uv setup with tests

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages