Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Bump black and click versions #12320

Merged
merged 5 commits into from
Mar 29, 2022
Merged

Bump black and click versions #12320

merged 5 commits into from
Mar 29, 2022

Commits on Mar 29, 2022

  1. Bump black version

    To include psf/black#2966 which is necessary
    after pallets/click#2198.
    David Robertson committed Mar 29, 2022
    Configuration menu
    Copy the full SHA
    fb51d69 View commit details
    Browse the repository at this point in the history
  2. changelog

    David Robertson committed Mar 29, 2022
    Configuration menu
    Copy the full SHA
    6cbe78a View commit details
    Browse the repository at this point in the history
  3. Run latest black on synapse and tests.

    Black's behaviour has changed:
    
    - Black now normalizes string prefix order (psf/black#2297)
    - Remove spaces around power operators if both operands are
      simple (psf/black#2726)
    - There's also one string subsitution expression that changed,  but I
      couldn't see a corresponding changelog entry and didn't feel like
      bisecting.
    David Robertson committed Mar 29, 2022
    Configuration menu
    Copy the full SHA
    f2a62b0 View commit details
    Browse the repository at this point in the history
  4. Also bump click

    Without this, pip complains:
    
    ```
    ERROR: Cannot install black==22.3.0 and matrix-synapse[dev]==1.55.2 because these package versions have conflicting dependencies.
    
    The conflict is caused by:
        matrix-synapse[dev] 1.55.2 depends on click==7.1.2; extra == "dev"
        black 22.3.0 depends on click>=8.0.0
    ```
    David Robertson committed Mar 29, 2022
    Configuration menu
    Copy the full SHA
    f6129a1 View commit details
    Browse the repository at this point in the history
  5. And run black on contrib

    David Robertson committed Mar 29, 2022
    Configuration menu
    Copy the full SHA
    c2efa03 View commit details
    Browse the repository at this point in the history