Skip to content

kmacdonald-stsci/python-anti-patterns

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Little Book of Python Anti-Patterns

This is an open-source book of Python anti-patterns and worst practices. Check out docs/index.rst for more information.

Notice: This is still (and will always be) a work-in-progress, feel free to contribute by suggesting improvements, adding new articles, improving existing ones, or translating this into other languages.

PDF Version

You can find a PDF version of the book here.

New articles

If you add new articles, please use the provided templates. Depending on the pattern you are creating, use either the anti-pattern or the migration-pattern template.

Building the Documentation

To build the documentation, first install the required packages:

pip install -r requirements.txt

Then, go to the src directory and run make:

# HTML pages
make html
# PDF version
make latexpdf

For the PDF version, you will need a working LaTeX installation (e.g. texlive).

You will find the updated documentation in the docs folder afterwards. You can clean the folder by running make clean.

License

The book is made available under a Creative Commons Attribution-Non-Commercial-ShareAlike 4.0 license. This allows you to use and distribute it freely for your own non-commercial projects (e.g. for teaching) if you make your contributions available under the same license.

When using content from the book on your website or elsewhere, please add a visible link to our website or this Github project, so that your readers can easily find the original articles and make contributions.

Enjoy :)

Creative Commons License This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

About

An open collection of Python anti-patterns and worst practices.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 69.6%
  • SCSS 10.8%
  • Less 10.7%
  • JavaScript 5.4%
  • Python 1.3%
  • CSS 1.2%
  • Other 1.0%