https://github.com/rednafi/pysanity
Opinionated coding guidelines and best practices in Python
https://github.com/rednafi/pysanity
best-practices guidelines python
Last synced: 2 months ago
JSON representation
Opinionated coding guidelines and best practices in Python
- Host: GitHub
- URL: https://github.com/rednafi/pysanity
- Owner: rednafi
- License: mit
- Archived: true
- Created: 2019-09-05T07:37:43.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-01T19:44:14.000Z (almost 5 years ago)
- Last Synced: 2024-10-31T19:37:48.363Z (7 months ago)
- Topics: best-practices, guidelines, python
- Homepage: https://pysanity.netlify.com/
- Size: 619 KB
- Stars: 208
- Watchers: 9
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
````¯¯¯¯\____philosophy____/¯¯¯¯````
__Practicality Beats Purity__
___Automation Brings Salvation___
____Abstraction is Chaos, Concealed by Confusion____
What is this?
This is an ever evolving, battle tested and marginally opinionated python coding guideline that is currently being enforced at my company ShopUp. Primarily, it is an attempt to document some of the implicit lessons and good practices that we have picked up while writing, maintaining and documenting python code in production. You may not agree with all the conventions mentioned here but other than the style guide where everyone has different ideas about how code should be formatted, the conventions mentioned here are almost universally accepted as good practices by the python community. The aim is not to have a strict guideline that is imposed upon every codebase, rather it exists to provide a baseline and reduce unnecessary cognitive overload that arises from disagreements during internal code reviews. The guideline is divided into three major segments.
• **Styling Guideline:** A mashup of simplified pep8, pep257 and a few tools for styling automation
• **Coding Guideline:** Conventions, best practices and design patterns
• **Documentation Guideline:** An attempt to streamline API documentation
Contribution Instructions
Fork the repo
Go todocs/README.md
Make your edit, push to a new branch & send a pull request