leogregianin / materials

Bonus materials, exercises, and example projects for our Python tutorials

Home Page:https://realpython.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Real Python Materials

Bonus materials, exercises, and example projects for Real Python's Python tutorials.

Build Status: CircleCI

Got a Question?

The best way to get support for Real Python courses & articles and code in this repository is to join one of our weekly Office Hours calls or to ask your question in the RP Community Slack.

Due to time constraints we cannot provide 1:1 support via GitHub. See you on Slack or on the next Office Hours call 🙂

Adding Source Code & Sample Projects to This Repo (RP Contributors)

Running Code Style Checks

We use flake8 and black to ensure a consistent code style for all of our sample code in this repository.

Run the following commands to validate your code against the linters:

$ flake8
$ black --check .

Running Python Code Formatter

We're using a tool called black on this repo to ensure consistent formatting. On CI it runs in "check" mode to ensure any new files added to the repo are following PEP 8. If you see linter warnings that say something like "would reformat some_file.py" it means black disagrees with your formatting.

The easiest way to resolve these errors is to just run Black locally on the code and then committing those changes, as explained below.

To automatically re-format your code to be consistent with our code style guidelines, run black in the repository root folder:

$ black .

About

Bonus materials, exercises, and example projects for our Python tutorials

https://realpython.com

License:MIT License


Languages

Language:Jupyter Notebook 42.1%Language:JavaScript 33.9%Language:Python 20.5%Language:HTML 2.9%Language:CSS 0.4%Language:Vue 0.1%Language:Java 0.0%Language:Emacs Lisp 0.0%Language:Dockerfile 0.0%Language:Shell 0.0%Language:C++ 0.0%Language:C 0.0%Language:Cython 0.0%Language:Rust 0.0%