Skip to content

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

License

Notifications You must be signed in to change notification settings

fodorfa/materials

This branch is 2491 commits behind realpython/materials:master.

Folders and files

NameName
Last commit message
Last commit date
May 9, 2019
Aug 14, 2019
Nov 4, 2018
Nov 11, 2019
Jan 22, 2019
Jun 13, 2019
Feb 8, 2019
Sep 19, 2019
Jun 1, 2019
Mar 25, 2019
Jun 24, 2019
Jun 7, 2019
May 23, 2019
Jun 30, 2019
Apr 30, 2019
Oct 9, 2018
Feb 6, 2019
Mar 25, 2019
Oct 9, 2018
Dec 13, 2018
Mar 26, 2019
Oct 9, 2018
Aug 14, 2019
Oct 9, 2018
Aug 15, 2019
Oct 9, 2018
May 10, 2019
Sep 16, 2019
Dec 12, 2018
Jan 5, 2019
Oct 9, 2018
Dec 18, 2018
Mar 5, 2019
Aug 20, 2019
May 9, 2019
Oct 4, 2019
Jul 13, 2019
Aug 8, 2018
May 6, 2018
Apr 30, 2019
May 9, 2019
May 9, 2019
May 9, 2019

Repository files navigation

Real Python Materials

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

Build Status: CircleCI

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 54.2%
  • Python 34.5%
  • JavaScript 6.7%
  • HTML 2.7%
  • CSS 1.3%
  • Java 0.3%
  • Emacs Lisp 0.3%