Move flake8 config to setup.cfg, be more error spcific.

This commit is contained in:
Matthew Einhorn 2020-01-05 02:36:21 -05:00
parent 28407b5a07
commit 6607506953
3 changed files with 11 additions and 3 deletions

View File

@ -1,5 +1,5 @@
PYTHON = python 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/ KIVY_DIR = kivy/
PYTEST = $(PYTHON) -m pytest PYTEST = $(PYTHON) -m pytest
KIVY_USE_DEFAULTCONFIG = 1 KIVY_USE_DEFAULTCONFIG = 1

View File

@ -408,7 +408,7 @@ try:
_kernel32 = ctypes.windll.kernel32 _kernel32 = ctypes.windll.kernel32
def _get_sleep_obj(): # noqa def _get_sleep_obj(): # noqa: F811
return _kernel32.CreateWaitableTimerA(None, True, None) return _kernel32.CreateWaitableTimerA(None, True, None)
def _usleep(microseconds, obj=None): def _usleep(microseconds, obj=None):
@ -460,7 +460,7 @@ try:
return _time 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.argtypes = [ctypes.c_ulong]
_libc_usleep = _libc.usleep _libc_usleep = _libc.usleep

View File

@ -51,3 +51,11 @@ full =
kivy_deps.sdl2~=0.2.0; sys_platform == "win32" kivy_deps.sdl2~=0.2.0; sys_platform == "win32"
kivy_deps.glew~=0.2.0; sys_platform == "win32" kivy_deps.glew~=0.2.0; sys_platform == "win32"
pypiwin32; 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