diff --git a/.circleci/config.yml b/.circleci/config.yml index e6a5a1d14..aa1b684a2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -87,7 +87,8 @@ jobs: steps: - checkout - run: pacman --noconfirm -Syu freetype2 cairo icu gettext gobject-introspection gcc gcc-libs glib2 graphite pkg-config ragel python python-pip - - run: pip install fonttools + - run: pip install flake8 fonttools + - run: flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics # C??FLAGS are not needed for a regular build - run: CFLAGS="-O0" CXXFLAGS="-O0" CPPFLAGS="-DHB_DEBUG" ./autogen.sh --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2 - run: make -j32 diff --git a/src/gen-use-table.py b/src/gen-use-table.py index 099f6a185..6a1a2174f 100755 --- a/src/gen-use-table.py +++ b/src/gen-use-table.py @@ -1,8 +1,10 @@ #!/usr/bin/env python +# flake8: noqa from __future__ import print_function, division, absolute_import -import io, sys +import io +import sys if len (sys.argv) != 5: print ("usage: ./gen-use-table.py IndicSyllabicCategory.txt IndicPositionalCategory.txt UnicodeData.txt Blocks.txt", file=sys.stderr) diff --git a/test/subset/subset_test_suite.py b/test/subset/subset_test_suite.py index 73ac3d273..5e3368ed9 100644 --- a/test/subset/subset_test_suite.py +++ b/test/subset/subset_test_suite.py @@ -55,7 +55,7 @@ class SubsetTestSuite: if not os.path.exists(output_dir): os.mkdir(output_dir) if not os.path.isdir(output_dir): - raise Error("%s is not a directory." % output_dir) + raise Exception("%s is not a directory." % output_dir) return output_dir