diff --git a/Makefile b/Makefile index 6915b9282..0c6ce1c5b 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ PYTHON = python -CHECKSCRIPT = -m flake8 --count --ignore=E125,E126,E127,E128,E402,E741,E731,W503,F401,W504,F841,E722 --show-source --statistics --max-line-length=80 --exclude=__pycache__,.tox,.git/,doc/,build/,.eggs/ +CHECKSCRIPT = -m flake8 KIVY_DIR = kivy/ PYTEST = $(PYTHON) -m pytest KIVY_USE_DEFAULTCONFIG = 1 diff --git a/kivy/clock.py b/kivy/clock.py index 2d0d54f9b..ce1f51bdd 100644 --- a/kivy/clock.py +++ b/kivy/clock.py @@ -408,7 +408,7 @@ try: _kernel32 = ctypes.windll.kernel32 - def _get_sleep_obj(): # noqa + def _get_sleep_obj(): # noqa: F811 return _kernel32.CreateWaitableTimerA(None, True, None) def _usleep(microseconds, obj=None): @@ -460,7 +460,7 @@ try: return _time - _default_time = _libc_clock_gettime_wrapper() # noqa + _default_time = _libc_clock_gettime_wrapper() # noqa: F811 _libc.usleep.argtypes = [ctypes.c_ulong] _libc_usleep = _libc.usleep diff --git a/setup.cfg b/setup.cfg index 886bcbfc7..0e1f0ebe8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -51,3 +51,11 @@ full = kivy_deps.sdl2~=0.2.0; sys_platform == "win32" kivy_deps.glew~=0.2.0; sys_platform == "win32" pypiwin32; sys_platform == "win32" + +[flake8] +ignore = E125,E126,E127,E128,E402,E741,E731,W503,F401,W504,F841,E722 +max-line-length = 80 +exclude = __pycache__,.tox,.git/,doc/,build/,.eggs/ +statistics = true +show-source = true +count = true