about summary refs log tree commit diff
path: root/x.py
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2024-12-04 23:02:25 +0100
committerJakub Beránek <berykubik@gmail.com>2024-12-04 23:03:44 +0100
commit536516f949ff37b0e10eaed835c2d3592d03e576 (patch)
tree5811d54160e531815b45a9e83463b07f4ba3905f /x.py
parent0b737a163eb47e9eb6e6c461159764758722e6f9 (diff)
downloadrust-536516f949ff37b0e10eaed835c2d3592d03e576.tar.gz
rust-536516f949ff37b0e10eaed835c2d3592d03e576.zip
Reformat Python code with `ruff`
Diffstat (limited to 'x.py')
-rwxr-xr-xx.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/x.py b/x.py
index 6c4c106817e..928a7496cb7 100755
--- a/x.py
+++ b/x.py
@@ -6,7 +6,7 @@
 
 # Parts of `bootstrap.py` use the `multiprocessing` module, so this entry point
 # must use the normal `if __name__ == '__main__':` convention to avoid problems.
-if __name__ == '__main__':
+if __name__ == "__main__":
     import os
     import sys
     import warnings
@@ -32,14 +32,16 @@ if __name__ == '__main__':
     # soft deprecation of old python versions
     skip_check = os.environ.get("RUST_IGNORE_OLD_PYTHON") == "1"
     if not skip_check and (major < 3 or (major == 3 and minor < 6)):
-        msg = cleandoc("""
+        msg = cleandoc(
+            """
             Using python {}.{} but >= 3.6 is recommended. Your python version
             should continue to work for the near future, but this will
             eventually change. If python >= 3.6 is not available on your system,
             please file an issue to help us understand timelines.
 
             This message can be suppressed by setting `RUST_IGNORE_OLD_PYTHON=1`
-        """.format(major, minor))
+        """.format(major, minor)
+        )
         warnings.warn(msg, stacklevel=1)
 
     rust_dir = os.path.dirname(os.path.abspath(__file__))
@@ -47,4 +49,5 @@ if __name__ == '__main__':
     sys.path.insert(0, os.path.join(rust_dir, "src", "bootstrap"))
 
     import bootstrap
+
     bootstrap.main()