summaryrefslogtreecommitdiff
path: root/.pylintrc
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-12-30 10:17:27 -0500
committerNed Batchelder <ned@nedbatchelder.com>2012-12-30 10:17:27 -0500
commit04ef8ebce940e5ab73c770a418ecf9721f4e12f8 (patch)
treeab4cd0b8c54c87cddaafb34a1cca105a84790cea /.pylintrc
parentaf55a14f14ef3041690c810a61c62d22a089bfc8 (diff)
downloadpython-coveragepy-git-04ef8ebce940e5ab73c770a418ecf9721f4e12f8.tar.gz
Get rid of import craziness in the tests.
Diffstat (limited to '.pylintrc')
-rw-r--r--.pylintrc9
1 files changed, 3 insertions, 6 deletions
diff --git a/.pylintrc b/.pylintrc
index 54bdd6a8..8ab3d902 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -67,15 +67,12 @@ disable=
# Messages that may be silly:
# R0201: 42:Tracer.stop: Method could be a function
# C0321: 80:CodeUnit.__lt__: More than one statement on a single line
-# R0401: 1: Cyclic import (coverage -> coverage.control -> coverage.html)
-# W0403: 4: Relative import 'coveragetest'
# E1103: 26:RunTests.test_run_python_file: Instance of 'file' has no 'getvalue' member (but some types could not be inferred)
- R0201,C0321,R0401,W0403,E1103,
+ R0201,C0321,E1103,
# Messages that are noisy for now, eventually maybe we'll turn them on:
# C0103:256:coverage.morf_filename: Invalid name "f" (should match [a-z_][a-z0-9_]{2,30}$)
# W0212: 86:Reporter.report_files: Access to a protected member _analyze of a client class
-# W0404: 22:run_tests_with_coverage: Reimport 'coverage' (imported line 18)
- C0103,W0212,W0404
+ C0103,W0212
[REPORTS]
@@ -144,7 +141,7 @@ class-rgx=[A-Z_][a-zA-Z0-9]+$
function-rgx=[a-z_][a-z0-9_]{2,30}$
# Regular expression which should only match correct method names
-method-rgx=[a-z_][a-z0-9_]{2,30}$
+method-rgx=[a-z_][a-z0-9_]{2,30}$|setUp|tearDown|test_.*
# Regular expression which should only match correct instance attribute names
attr-rgx=[a-z_][a-z0-9_]{2,30}$