summaryrefslogtreecommitdiffstats
path: root/pyproject.toml
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2021-01-17 16:48:35 +0100
committerCalum Lind <calumlind+deluge@gmail.com>2021-01-24 21:40:20 +0100
commit610a1bb3139f8ded69561b290d7ce61b5a039676 (patch)
tree4e18e880de320e248e0f079adab74fe1c67157f8 /pyproject.toml
parent[#3309|GTK] Fix cmp function for None types (diff)
downloaddeluge-610a1bb3139f8ded69561b290d7ce61b5a039676.tar.xz
deluge-610a1bb3139f8ded69561b290d7ce61b5a039676.zip
[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.
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml5
1 files changed, 5 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 8962ece64..2674219a7 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -6,3 +6,8 @@ requires = [
[tool.black]
skip-string-normalization = true
+
+[tool.isort]
+profile = "black"
+# Python 2 stdlib
+extra_standard_library = ["urlparse", "HTMLParser", "urllib2"]