If it shows the pip binary at env/bin/pip then it worked. 🎉
Tip
Every time you install a new package with pip under that environment, activate the environment again.
This makes sure that if you use a terminal program installed by that package (like flit), you use the one from your local environment and not any other that could be installed globally.
If you create a Python file that imports and uses Typer, and run it with the Python from your local environment, it will use your local Typer source code.
And if you update that local Typer source code, as it is installed with --symlink (or --pth-file on Windows), when you run that Python file again, it will use the fresh version of Typer you just edited.
That way, you don't have to "install" your local version to be able to test every change.
For it to sort them correctly, you need to have Typer installed locally in your environment, with the command in the section above using --symlink (or --pth-file on Windows).
As it runs one command after the other and modifies and reverts many files, it takes a bit longer to run, so it might be easier to use scripts/format.sh frequently and scripts/format-imports.sh only before committing.
Most of the tests actually run against the example source files in the documentation.
This helps making sure that:
The documentation is up to date.
The documentation examples can be run as is.
Most of the features are covered by the documentation, ensured by test coverage.
During local development, there is a script that builds the site and checks for any changes, live-reloading:
fast →bash scripts/docs-live.sh [INFO] - Building documentation... [INFO] - Cleaning site directory [INFO] - Documentation built in 2.74 seconds [INFO] - Serving on http://127.0.0.1:8008
This command generates a directory ./htmlcov/, if you open the file ./htmlcov/index.html in your browser, you can explore interactively the regions of code that are covered by the tests, and notice if there is any region missing.