Create new Python project

  1. Add essential project files
    Include necessary files like Makefile to automate repetitive tasks, pyproject.toml file to specify project dependencies. Don’t forget to rename project name and description in pyproject.toml file.
  2. Set up a virtual environment
    Create a virtual environment for your project to isolate its dependencies from other Python installations by typing make venv. Install all dependencies by typing make install.
  3. Define main entry point for your program
    Create a new file called main.py and add this code:
def main() -> None:
    pass


if __name__ == "__main__":
    main()