From fb1ff6f1d132046fcc37e6e0039efd4138f8ea20 Mon Sep 17 00:00:00 2001 From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl> Date: Sun, 8 Oct 2017 04:54:14 +0200 Subject: [PATCH] isort and docs moving --- CONTRIBUTING.md | 18 ++++++++++++++++++ setup.cfg | 7 +++++++ tests/README.md | 15 --------------- 3 files changed, 25 insertions(+), 15 deletions(-) delete mode 100644 tests/README.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3d6b642..fc87545 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -4,3 +4,21 @@ 1.1. If it's cool af, you don't have to. 2. Exhaustive pydoc. 3. If you introduce any gotchas, document them in [docs/](docs/). + + +## Unit tests +Tests work using either Travis CI or Vagrant. + +If you want to debug things, you have RabbitMQ management enabled on Vagrant. +Go to [http://127.0.0.1:15672](http://127.0.0.1:15672) and log in with **user** / **user** + +RabbitMQ management is NOT enabled on Travis CI. + +If you want to see a coverage report, run tests like this: +```bash +nosetests --with-coverage --exe +coverage html +``` +*--exe* is for the cases where you run on Windows, and everything in */vagrant* is 777. + +and then go to [http://127.0.0.1:8765](http://127.0.0.1:8765) diff --git a/setup.cfg b/setup.cfg index 4a6641d..be77f9a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -32,3 +32,10 @@ universal=1 verbosity=1 detailed-errors=1 with-coverage=1 + +[isort] +add_imports = + from __future__ import absolute_import + from __future__ import division + from __future__ import print_function + from __future__ import unicode_literals diff --git a/tests/README.md b/tests/README.md deleted file mode 100644 index ea9d4b8..0000000 --- a/tests/README.md +++ /dev/null @@ -1,15 +0,0 @@ -Tests work using either Travis CI or Vagrant. - -If you want to debug things, you have RabbitMQ management enabled on Vagrant. -Go to [http://127.0.0.1:15672](http://127.0.0.1:15672) and log in with **user** / **user** - -RabbitMQ management is NOT enabled on Travis CI. - -If you want to see a coverage report, run tests like this: -```bash -nosetests --with-coverage --exe -coverage html -``` -*--exe* is for the cases where you run on Windows, and everything in */vagrant* is 777. - -and then go to [http://127.0.0.1:8765](http://127.0.0.1:8765) -- GitLab