From 610a1bb3139f8ded69561b290d7ce61b5a039676 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sun, 17 Jan 2021 15:48:35 +0000 Subject: [Lint] Update pre-commit hook and isort versions * Fixed black hook requiring Py3.6 to installed locally. Will now assume Py3.6+ in installed. * Added isort traceback in pre-commit flake8 hook fails * Updated versions of Black, Prettier and isort * Keep Flake8 at 3.7.9 due to E402 issue: https://gitlab.com/pycqa/flake8/-/issues/638 * New pyproject config for isort v5 with fixes for Python 2 imports. * Fixed travis config to run Python 3.6 for lint run. Replaced the virtualenv with_system_site_packages config with Travis specific Python config value so lint run doesn't attempt to append with_system_site_packages to Python 3.6 command. --- setup.cfg | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'setup.cfg') diff --git a/setup.cfg b/setup.cfg index e52fa07cd..b4071f53e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -24,24 +24,6 @@ includes = glib, gio, cairo, pango, pangocairo, atk, gobject, gtk.keysyms, HTMLParser frameworks = CoreFoundation, Foundation, AppKit -[isort] -known_standard_library = future_builtins -known_third_party = -# Ignore gtk modules, primarily for tox testing. - cairo, gi, -# Ignore other module dependencies for pre-commit isort. - twisted, OpenSSL, pytest, recommonmark, chardet, pkg_resources, zope, mock, - sphinx, rencode, six, mako -known_first_party = msgfmt, deluge -order_by_type = true -not_skip = __init__.py -# Black compatible settings -multi_line_output=3 -include_trailing_comma=True -force_grid_wrap=0 -line_length=88 -use_parentheses=True - [flake8] max-line-length = 120 builtins = _,_n,__request__ -- cgit v1.2.3