From 1456d8b6f9f86d974459685091f143f0a0b4b345 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 1 Apr 2020 19:47:23 +0200 Subject: Update hacking for Python3 The repo is Python 3 now, so update hacking to version 3.0 which supports Python 3. Fix problems found by updated hacking version. Update local hacking checks for new flake8. Remove hacking and friends from lower-constraints, they are not needed in installations. Change-Id: I67e5ca24c550163c218fb06692de0b7c528d8318 --- tools/validate-all-file.py | 1 + tools/validate-yaml.py | 1 + 2 files changed, 2 insertions(+) (limited to 'tools') diff --git a/tools/validate-all-file.py b/tools/validate-all-file.py index c04fb4000..67f03218a 100755 --- a/tools/validate-all-file.py +++ b/tools/validate-all-file.py @@ -109,5 +109,6 @@ def main(): ) return sum([check() for check in checks]) + if __name__ == "__main__": sys.exit(main()) diff --git a/tools/validate-yaml.py b/tools/validate-yaml.py index 400a3821b..5af8668be 100755 --- a/tools/validate-yaml.py +++ b/tools/validate-yaml.py @@ -40,5 +40,6 @@ def main(): sys.exit(res) + if __name__ == '__main__': main() -- cgit v1.2.3