Enable some off-by-default checks
Some of the available checks are diskabled by default, like: [H106] Don't put vim configuration in source files; [H203] Use assertIs(Not)None to check for None. Change-Id: Ibe4e8bb6373def06452ae6fc9ca16a99a8a05f29
This commit is contained in:
parent
e8e28b4360
commit
3945e3e960
3
tox.ini
3
tox.ini
@ -60,8 +60,11 @@ commands =
|
|||||||
oslo-config-generator --config-file=etc/castellan/sample-config-generator.conf
|
oslo-config-generator --config-file=etc/castellan/sample-config-generator.conf
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
|
# [H106] Don't put vim configuration in source files.
|
||||||
|
# [H203] Use assertIs(Not)None to check for None.
|
||||||
show-source = True
|
show-source = True
|
||||||
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
||||||
|
enable-extensions = H106,H203
|
||||||
|
|
||||||
[hacking]
|
[hacking]
|
||||||
import_exceptions = castellan.i18n
|
import_exceptions = castellan.i18n
|
||||||
|
Loading…
x
Reference in New Issue
Block a user