diff options
author | Patrik Teivonen <patrik.teivonen@qt.io> | 2022-06-16 12:07:05 +0300 |
---|---|---|
committer | Patrik Teivonen <patrik.teivonen@qt.io> | 2022-07-11 07:43:46 +0000 |
commit | 45312f31b5439e99598a553d0fffd7c7060bfbaf (patch) | |
tree | 88207d30e9ac6f4195d9ec3f4d54c6124454b5e8 /packaging-tools/bld_module.py | |
parent | c444074df00e88910bd1b0f8e257a1307419f715 (diff) |
Add pre-commit hook for flake8, PEP8 compliant comments
Change block and inline comments to be PEP8 compliant.
(Note: line lengths will be enforced in a separate patch)
Add pre-commit hook for flake8, and enable only checks relevant
to this patch:
- E265 Block comment should start with '# '
- E266 Too many leading '#' for block comment
- E261 At least two spaces before inline comment
- E262 Inline comment should start with '# '
- E115 expected an indented block (comment)
Change-Id: I0218772bfbea514b4a0d8ecc461845c4563396da
Reviewed-by: Akseli Salovaara <akseli.salovaara@qt.io>
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
Diffstat (limited to 'packaging-tools/bld_module.py')
-rwxr-xr-x | packaging-tools/bld_module.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packaging-tools/bld_module.py b/packaging-tools/bld_module.py index bbe77f55c..29b2714a9 100755 --- a/packaging-tools/bld_module.py +++ b/packaging-tools/bld_module.py @@ -30,7 +30,7 @@ ############################################################################# # built in imports -import argparse # commandline argument parser +import argparse # commandline argument parser import multiprocessing import os import sys @@ -201,7 +201,7 @@ if is_windows(): qtModuleInstallDirectory = qtModuleInstallDirectory.replace('\\','/').replace('/', '\\', 1) -### clean step +# clean step if callerArguments.clean: print("##### {0} #####".format("clean old builds")) bldinstallercommon.remove_tree(callerArguments.qt5path) @@ -229,7 +229,7 @@ if not os.path.lexists(callerArguments.qt5path): # "install" Qt bldinstallercommon.patch_qt(callerArguments.qt5path) -### lets start building +# lets start building # prepare the environment for example setting LD_LIBRARY_PATH # or adding qmake path into the Path environment variable (Qt deployment step) |