Commit Graph

24 Commits

Author SHA1 Message Date
Jon Dufresne
d50445ff30 Introduce isort to automate import ordering and formatting
Similar to the recent adoption of Black. isort is a Python utility to
sort imports alphabetically and automatically separate into sections. By
using isort, contributors can quickly and automatically conform to the
projects style without thinking. Just let the tool do it.

Uses the configuration recommended by the Black to avoid conflicts of
style.

Rewrite TestImageQt.test_deprecated to no rely on import order.
2019-07-06 16:11:35 -07:00
Hugo
471220093b Format with Black 2019-06-13 18:54:57 +03:00
Hugo
d6055440d5 Drop support for EOL Python 3.4 2019-01-24 23:33:14 +02:00
Hugo
c353225851 Prefer 'except Exception:' to bare 'except:' 2018-12-04 23:25:28 +02:00
Virgil Dupras
64bce1a583 Fix builds with --parallel
Python 3.5's distutils added support for parallel builds, which means
that we don't need to monkeypatch it anymore. But more importantly, this
monkeypatch made build fail (hang in fact) whenever `--parallel` was
passed to `python setup.py build`.

This commit fixes the problem by not applying the monkeypatch on
python 3.5+ and preserve the old behavior (parallel build by default) by
injecting a `parallel` option when it's not specified.
2018-08-05 11:38:22 -04:00
hugovk
5592163564 pytest no longer supports EOL Python 3.3 2017-12-28 14:48:19 +00:00
hugovk
4f12862d6c Disable single-threaded build for pypy3.3 2017-06-08 23:55:40 +03:00
Andrew Murray
17a111cba7 Removed unused variable 2017-04-20 21:09:23 +10:00
Hugo
53e5702557 Update http to https 2017-02-14 11:27:02 +02:00
Andrew Murray
72d5218080 Flake8 fixes 2016-09-03 12:17:22 +10:00
wiredfool
94c84b49f1 Disable multiprocessing install on cygwin, fixes #1690 2016-02-01 08:11:42 -08:00
wiredfool
fce11e0b7b Revert "Style changes" 2015-09-13 14:31:49 +01:00
Andrew Murray
64e733f552 Style changes 2015-09-11 23:54:57 +10:00
Andrew Murray
105e963505 Flake8 fixes 2015-09-11 19:28:19 +10:00
wiredfool
772d470f30 Single threaded build for pypy3, refactor. Workaround for #1176 2015-09-09 21:07:03 +01:00
Andrew Murray
4e2de9d9ed Added missing future print imports and removed unnecessary imports 2015-05-23 20:28:41 +10:00
Andrew Murray
87c4c6a72d Various Flake8 fixes to base scripts 2015-04-24 10:15:14 +10:00
homm
83fc485392 Limit default MAX_CONCURRENCY to 4. 2014-12-08 22:20:22 +03:00
hugovk
1de128d6b6 Merge branch 'master' into flake8 2014-09-14 10:23:51 +03:00
hugovk
1335006cd7 flake8 2014-08-28 14:44:19 +03:00
wiredfool
1d58e711fe mp is a little twitchy on windows 2014-08-24 16:38:05 -07:00
Eric Soroos
1f0d3e9b00 Don't install mp_compile if multiprocessing.Pool() fails, or if 1 process is going to be used 2014-07-09 10:12:43 -07:00
Alex Clark
2f09622516 Top level flake8 fixes 2014-06-27 19:13:00 -04:00
wiredfool
2be4e9f3e5 Multithreaded build 2014-06-24 15:57:24 -07:00