Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting: Format with Black, increase max line length to 100, combine multi-line blocks #178

Merged
merged 3 commits into from
Sep 23, 2022

Commits on Sep 23, 2022

  1. Format all files with Black

    Formats all files with Black. Uses default line-limit of 88 characters.
    
    A lot of trailing commas were removed manually.
    EwoutH committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    a64cc22 View commit details
    Browse the repository at this point in the history
  2. Increase Black line limit to 100

    Format all code with Black using a line-limit of 100. This shortens many multi-line code blocks to a single line, making them more compact readable.
    EwoutH committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    9a17feb View commit details
    Browse the repository at this point in the history
  3. Formatting: Remove trailing commas to combine lines

    Remove trailing commas to combine multiple lines to a single line. A few edge-cases in which this degraded readability were not included (not visible in this commit). This should make code more compact while retaining or improving readability.
    
    Command used: black --line-length 100 -C
    
    See https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#trailing-commas
    EwoutH committed Sep 23, 2022
    Configuration menu
    Copy the full SHA
    ab3a28e View commit details
    Browse the repository at this point in the history