Calmcode - black: usage

Getting started with Black in Python.

1 2 3 4 5

You can confirm the effect that black has when you run it on the python files.

This is the contents of the file before we apply black;

list_of_numbers = [
    1,
    2,
    3
]

large_dictionary = {1:2, 3:4, 5:6, 7:8, 9:10, 11:12, 13:14, 15:16, 17:18, 19:20, 21:22, 23:24}

This is the contents after black;

list_of_numbers = [1, 2, 3, 4, 5, 6, 7, 8]

large_dictionary = {
    1: 2,
    3: 4,
    5: 6,
    7: 8,
    9: 10,
    11: 12,
    13: 14,
    15: 16,
    17: 18,
    19: 20,
    21: 22,
    23: 24,
}