[LNT] r349577 - Add a whitelist of files to keep linter clean
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 18 15:39:25 PST 2018
Author: cmatthews
Date: Tue Dec 18 15:39:25 2018
New Revision: 349577
URL: http://llvm.org/viewvc/llvm-project?rev=349577&view=rev
Log:
Add a whitelist of files to keep linter clean
Linters help a lot of Python; however, we have so many issues in LNT we
can't use flake8. Start a whitelist of file to make sure are lint free
and make tox error on those.
Modified:
lnt/trunk/tox.ini
Modified: lnt/trunk/tox.ini
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/tox.ini?rev=349577&r1=349576&r2=349577&view=diff
==============================================================================
--- lnt/trunk/tox.ini (original)
+++ lnt/trunk/tox.ini Tue Dec 18 15:39:25 2018
@@ -1,3 +1,10 @@
+[base]
+
+# Files we'd like to keep lint clean. Lets hope we can expand this list.
+whitelist_files = ./setup.py
+ ./deployment/
+ ./lnt/formats/
+
[tox]
envlist = py27
mypy
@@ -25,6 +32,10 @@ commands =
skip_install = true
deps =
flake8
+
commands =
# Still lots of problems.
- flake8 --exclude=./lnt/external/ ./lnt/ ./tests/ ./setup.py ./deployment/
+ # But lets keep the clean files clean.
+ flake8 {[base]whitelist_files}
+
More information about the llvm-commits
mailing list