Permalink
Browse files

Lint ignore for khan-linter upgrade

Summary:

See D35059.  This change is the output of webapp's:
`tools/add_lint_ignore_lines.py --todo_target colin ~/khan/gae_mini_profiler`

Also manually removed unused imports from unformatter/__init__.py

Test Plan:
`~/khan/devtools/khan-linter/runlint.py .`

Auditors: csilvers
  • Loading branch information...
1 parent 29194a7 commit f9a300af177d570c0a689c1e6266be933db79494 @cjfuller cjfuller committed Apr 14, 2017
Showing with 24 additions and 2 deletions.
  1. +2 −0 appstats_profiler.py
  2. +2 −0 cleanup.py
  3. +2 −0 config.py
  4. +2 −0 cookies.py
  5. +2 −0 instrumented_profiler.py
  6. +2 −0 line_profiler.py
  7. +2 −0 linebyline_profiler.py
  8. +2 −0 main.py
  9. +2 −0 profiler.py
  10. +2 −0 sampling_profiler.py
  11. +2 −2 unformatter/__init__.py
  12. +2 −0 util.py
View
@@ -1,3 +1,5 @@
+# TODO(colin): fix these lint errors (http://pep8.readthedocs.io/en/release-1.7.x/intro.html#error-codes)
+# pep8-disable:E128,E271,E302,E501,E713
"""RPC profiler that uses appstats to track, time, and log all RPC events.
This is just a simple wrapper for appstats with result formatting. See
View
@@ -1,3 +1,5 @@
+# TODO(colin): fix these lint errors (http://pep8.readthedocs.io/en/release-1.7.x/intro.html#error-codes)
+# pep8-disable:E265,E302,E501
import StringIO
def cleanup(request, response):
View
@@ -1,3 +1,5 @@
+# TODO(colin): fix these lint errors (http://pep8.readthedocs.io/en/release-1.7.x/intro.html#error-codes)
+# pep8-disable:E302
import os
from google.appengine.api import lib_config
View
@@ -1,3 +1,5 @@
+# TODO(colin): fix these lint errors (http://pep8.readthedocs.io/en/release-1.7.x/intro.html#error-codes)
+# pep8-disable:E125,E128,E231,E265,E302,E501
import Cookie
import logging
import os
View
@@ -1,3 +1,5 @@
+# TODO(colin): fix these lint errors (http://pep8.readthedocs.io/en/release-1.7.x/intro.html#error-codes)
+# pep8-disable:E302,E501
"""CPU profiler that works by instrumenting all function calls (uses cProfile).
This profiler provides detailed function timings for all function calls
View
@@ -1,4 +1,6 @@
#!/usr/bin/env python
+# TODO(colin): fix these lint errors (http://pep8.readthedocs.io/en/release-1.7.x/intro.html#error-codes)
+# pep8-disable:E128,E231,E302,E501,W601,W604
# -*- coding: UTF-8 -*-
import cPickle
View
@@ -1,3 +1,5 @@
+# TODO(colin): fix these lint errors (http://pep8.readthedocs.io/en/release-1.7.x/intro.html#error-codes)
+# pep8-disable:E128,E501
"""CPU profiler that works by collecting line-by-line stats.
This works by storing a list of functions to profile, then telling
View
@@ -1,3 +1,5 @@
+# TODO(colin): fix these lint errors (http://pep8.readthedocs.io/en/release-1.7.x/intro.html#error-codes)
+# pep8-disable:E302
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
View
@@ -1,3 +1,5 @@
+# TODO(colin): fix these lint errors (http://pep8.readthedocs.io/en/release-1.7.x/intro.html#error-codes)
+# pep8-disable:E116,E127,E129,E251,E261,E302,E501,E713
from __future__ import with_statement
import datetime
View
@@ -1,3 +1,5 @@
+# TODO(colin): fix these lint errors (http://pep8.readthedocs.io/en/release-1.7.x/intro.html#error-codes)
+# pep8-disable:E501,E713
"""CPU profiler that works by sampling the call stack periodically.
This profiler provides a very simplistic view of where your request is spending
View
@@ -1,6 +1,7 @@
+# TODO(colin): fix these lint errors (http://pep8.readthedocs.io/en/release-1.7.x/intro.html#error-codes)
+# pep8-disable:E101,E201,E202,E501,W191
import pprint
import re
-import sys
_STRING = re.compile(r"^\s*(['\"])")
@@ -99,7 +100,6 @@ def unformat(text):
def main():
- from io import StringIO
f = open('examples.txt', 'r')
for line in f:
result = unformat(line.strip())
View
@@ -1,3 +1,5 @@
+# TODO(colin): fix these lint errors (http://pep8.readthedocs.io/en/release-1.7.x/intro.html#error-codes)
+# pep8-disable:E302
import os
# Assume if SERVER_SOFTWARE is not present in the environment at import time

0 comments on commit f9a300a

Please sign in to comment.