In pyproject.toml, I have the following section: [project.scripts] work = "mypackage.worker_app:main" This means that after activating virtual environment, I can simply type work, and this will execute method main() from class worker_app from module mypackage. However, what about Python interpreter parameters related to optimization, such as -O (remove asserts) and -OO (remove docstrings)? Can I somehow pass them when running work? Or define them in pyproject.toml? Or do console-scripts always run with with full debug? Continue reading...