summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2018-05-29 14:35:32 -0700
committerJeff Forcier <jeff@bitprophet.org>2018-09-17 15:32:38 -0700
commit174daa3b95411ed6c72cfbc9f8d320d7b45a440e (patch)
tree8e74aff94de615a691876251822a972600a9f11c
parent78b3520e9b78b0cefab37ba96bef00af6b996c4b (diff)
downloadparamiko-174daa3b95411ed6c72cfbc9f8d320d7b45a440e.tar.gz
Modernize travis/dev-reqs/etc re: blackening
-rw-r--r--.travis.yml5
-rw-r--r--dev-requirements.txt4
-rw-r--r--setup.cfg2
-rw-r--r--tasks.py12
4 files changed, 18 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index c4ccb74d..8949eb02 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -25,7 +25,10 @@ install:
- pip install codecov # For codecov specifically
- pip install -r dev-requirements.txt
script:
- # flake8 is now possible!
+ # Fast syntax check failures for more rapid feedback to submitters
+ # (Travis-oriented metatask that version checks Python, installs, runs.)
+ - inv travis.blacken
+ # I have this in my git pre-push hook, but contributors probably don't
- flake8
# All (including slow) tests, w/ coverage!
- inv coverage
diff --git a/dev-requirements.txt b/dev-requirements.txt
index 84d9a137..66edc28b 100644
--- a/dev-requirements.txt
+++ b/dev-requirements.txt
@@ -1,6 +1,6 @@
# Invocations for common project tasks
-invoke>=0.13,<2.0
-invocations>=1.0,<2.0
+invoke>=1.0,<2.0
+invocations>=1.2.0,<2.0
# NOTE: pytest-relaxed currently only works with pytest >=3, <3.3
pytest>=3.2,<3.3
pytest-relaxed==1.1.2
diff --git a/setup.cfg b/setup.cfg
index a24844d0..2d673ea4 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -9,7 +9,7 @@ omit = paramiko/_winapi.py
[flake8]
exclude = sites,.git,build,dist,demos,tests
-ignore = E124,E125,E128,E261,E301,E302,E303,E402,E721
+ignore = E124,E125,E128,E261,E301,E302,E303,E402,E721,W503
max-line-length = 79
[tool:pytest]
diff --git a/tasks.py b/tasks.py
index caa72bcd..33092d77 100644
--- a/tasks.py
+++ b/tasks.py
@@ -3,6 +3,8 @@ from os.path import join
from shutil import rmtree, copytree
from invoke import Collection, task
+from invocations import travis
+from invocations.checks import blacken
from invocations.docs import docs, www, sites
from invocations.packaging.release import ns as release_coll, publish
@@ -120,7 +122,15 @@ def release(ctx, sdist=True, wheel=True, sign=True, dry_run=False, index=None):
release_coll.tasks["publish"] = release
ns = Collection(
- test, coverage, guard, release_coll, docs, www, sites,
+ test,
+ coverage,
+ guard,
+ release_coll,
+ docs,
+ www,
+ sites,
+ travis,
+ blacken,
)
ns.configure(
{