Browse Source

Style: Fix black formatting after #42332

Somehow it did not run CI checks so we missed that one.

Also pin `black` version to latest upstream release.
Rémi Verschelde 4 years ago
parent
commit
41c735fe50
2 changed files with 2 additions and 4 deletions
  1. 1 1
      .github/workflows/static_checks.yml
  2. 1 3
      modules/mono/config.py

+ 1 - 1
.github/workflows/static_checks.yml

@@ -19,7 +19,7 @@ jobs:
       - name: Install dependencies
       - name: Install dependencies
         run: |
         run: |
           sudo apt-get install -qq dos2unix recode clang-format
           sudo apt-get install -qq dos2unix recode clang-format
-          sudo pip3 install git+https://github.com/psf/black@master pygments
+          sudo pip3 install black==20.8b1 pygments
 
 
       - name: File formatting checks (file_format.sh)
       - name: File formatting checks (file_format.sh)
         run: |
         run: |

+ 1 - 3
modules/mono/config.py

@@ -32,9 +32,7 @@ def configure(env):
     envvars.Add(BoolVariable("mono_glue", "Build with the Mono glue sources", True))
     envvars.Add(BoolVariable("mono_glue", "Build with the Mono glue sources", True))
     envvars.Add(BoolVariable("build_cil", "Build C# solutions", True))
     envvars.Add(BoolVariable("build_cil", "Build C# solutions", True))
     envvars.Add(
     envvars.Add(
-        BoolVariable(
-            "copy_mono_root", "Make a copy of the Mono installation directory to bundle with the editor", True
-        )
+        BoolVariable("copy_mono_root", "Make a copy of the Mono installation directory to bundle with the editor", True)
     )
     )
 
 
     # TODO: It would be great if this could be detected automatically instead
     # TODO: It would be great if this could be detected automatically instead