summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorjunboli <junbo85.li@gmail.com>2017-07-18 18:12:37 +0800
committerjunboli <junbo85.li@gmail.com>2017-08-03 16:13:32 +0800
commitfb17422c868f1b25d8f2a0b113cdea21a4a14bd1 (patch)
tree7fc80a1dcb915c7ce42e409e2979383ffebe29d2 /tox.ini
parent5757655f1d067d6ac823c2c79ac2cacd3d3e8c43 (diff)
Enable some off-by-default checks
Some of the available checks are disabled by default, like: [H106] Don't put vim configuration in source files [H203] Use assertIs(Not)None to check for None [H904] Use ',' instead of '%', String interpolation should be delayed to be handled by the logging code, rather than being done at the point of the logging call. Change-Id: Ie985fcf78997a86d41e40eacbb4a5ace8592a348
Notes
Notes (review): Code-Review+2: Valeriy Ponomaryov <vponomaryov@mirantis.com> Code-Review+2: Goutham Pacha Ravi <gouthampravi@gmail.com> Code-Review+2: Rodrigo Barbieri <rodrigo.barbieri2010@gmail.com> Workflow+1: Rodrigo Barbieri <rodrigo.barbieri2010@gmail.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Thu, 03 Aug 2017 13:21:42 +0000 Reviewed-on: https://review.openstack.org/484707 Project: openstack/manila Branch: refs/heads/master
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini5
1 files changed, 5 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index df645c0..263ff8b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -112,6 +112,11 @@ commands = alembic -c manila/db/migrations/alembic.ini revision -m ""{posargs}
112# Following checks are ignored on purpose: 112# Following checks are ignored on purpose:
113ignore = 113ignore =
114builtins = _ 114builtins = _
115# [H106] Don't put vim configuration in source files.
116# [H203] Use assertIs(Not)None to check for None.
117# [H904] Use ',' instead of '%', String interpolation should be delayed to be handled by the logging code,
118# rather than being done at the point of the logging call..
119enable-extensions = H106,H203,H904
115exclude = .git,.tox,.testrepository,.venv,build,cover,dist,doc,*egg,api-ref/build,*/source/conf.py 120exclude = .git,.tox,.testrepository,.venv,build,cover,dist,doc,*egg,api-ref/build,*/source/conf.py
116 121
117[hacking] 122[hacking]