Browse Source

Enable some off-by-default checks

Some of 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

Change-Id: I6c880ba9fcde60cbebdea4aa459b42c6b92d181c
changes/64/522264/1
chenghuiyu 4 years ago
parent
commit
2eb06e9453
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      tox.ini

+ 3
- 0
tox.ini View File

@ -58,6 +58,9 @@ commands = oslo_debug_helper {posargs}
[flake8]
show-source = True
builtins = _
# H106: Don’t put vim configuration in source files
# H203: Use assertIs(Not)None to check for None
enable-extensions=H106,H203
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
[hacking]


Loading…
Cancel
Save