Categorygithub.com/luciferchase/pyproject
modulepackage
1.1.0
Repository: https://github.com/luciferchase/pyproject.git
Documentation: pkg.go.dev

# README

Pyproject

Easily kickstart your Python project with very opionionated best practices.

  • Manage your project using poetry https://python-poetry.org/
  • Add testing with pytest and pytest-cov
  • Run checks before commiting using pre-commit
  • Code analysis and formatting with Flake8, Mypy, Isort and Black

This is based on this excellant article: Python Best Practices for a New Project and some of my own experiance.

Installation

⚠️ Warning: Poetry must be installed.

go install

If you have go installed, simply run:

go install github.com/luciferchase/pyproject

Binaries

Binaries for Windows are available in the Release page.
You have to manually add the pyproject.exe file to your path.

Build from source

git clone this repository and run:

go build -o bin\pyproject.exe main.go

You have to manually add the pyproject.exe [availabe in the .\bin dir] to your path.

Why?

Well, dependency management and static typing in Python is a hot mess. To avoid this, we use various tools like poetry, pytest, flake8, mypy, black and so many more.

Thus to fast track starting a new Python project, I wrote this for myself.

# Packages

Copyright © 2022 Lucifer Chase <[email protected]> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
No description provided by the author