- Timestamp:
- Mar 5, 2015 12:55:38 AM (10 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 3a45c2c
- Parents:
- b89f519
- Location:
- extra
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extra/pylint.rc
r53d0e24 r3c56da87 20 20 # List of plugins (as comma separated values of python modules names) to load, 21 21 # usually to register additional checkers. 22 load-plugins= 22 load-plugins=pylint_numpy,pylint_pyopencl 23 23 24 24 # Use multiple processes to speed up Pylint. 25 jobs=425 #jobs=4 26 26 27 27 # Allow loading of arbitrary C extensions. Extensions are imported into the … … 57 57 58 58 # Disable the message(s) with the given id(s). 59 disable=W0702,W0613,W0703,W0142 59 # http://pylint-messages.wikidot.com/all-codes 60 disable= 61 multiple-statements, 62 global-statement, 63 bare-except, 64 broad-except, 65 bad-whitespace, 66 bad-continuation, 67 too-many-statements, 68 too-many-branches, 69 too-many-locals, 70 too-many-instance-attributes, 71 too-many-arguments, 72 star-args, 73 unbalanced-tuple-unpacking, 74 locally-disabled, 75 old-style-class, 60 76 61 77 [REPORTS] … … 98 114 99 115 # Good variable names which should always be accepted, separated by a comma 100 good-names=i,j,k,ex,Run,_,x,y,z,qx,qy,qz,n,q,dx,dy,dz,id,Iq,dIq,Qx,Qy,Qz 116 good-names=_, 117 input, 118 i,j,k,n,x,y,z, 119 q,qx,qy,qz, 120 dt,dx,dy,dz,id, 121 Iq,dIq,Qx,Qy,Qz, 122 p, 123 ER, call_ER, VR, call_VR, 101 124 102 125 # Bad variable names which should always be refused, separated by a comma … … 111 134 112 135 # Regular expression matching correct function names 113 function-rgx=[a-z_][a-z0-9_]{2,30} $136 function-rgx=[a-z_][a-z0-9_]{2,30}([123]D)?$ 114 137 115 138 # Naming hint for function names … … 172 195 # Regular expression which should only match function or class names that do 173 196 # not require a docstring. 174 no-docstring-rgx=__.*__ 197 #no-docstring-rgx=__.*__ 198 no-docstring-rgx=_.* 175 199 176 200 # Minimum line length for functions/classes that require docstrings, shorter … … 181 205 182 206 # Maximum number of characters on a single line. 183 max-line-length=100 207 #max-line-length=100 208 max-line-length=80 184 209 185 210 # Regexp for a line that is allowed to be longer than the limit. 186 ignore-long-lines=^\s*(# )?<?https?://\S+>?$ 211 #ignore-long-lines=^\s*(# )?<?https?://\S+>?$ 212 # No comma in the last forty characters 213 ignore-long-lines=([^-,+*/]{40},?|[^"]{40}")$ 187 214 188 215 # Allow the body of an if to be on the same line as the test if there is no -
extra/run-pylint.py
r6c2eb83 r3c56da87 4 4 5 5 def main(): 6 envpath = os.environ.get('PYTHONPATH',None) 7 path = [envpath] if envpath else [] 8 path.append(abspath(dirname(__file__))) # so we can find the plugins 9 os.environ['PYTHONPATH'] = ':'.join(path) 6 10 root = abspath(joinpath(dirname(__file__), '..')) 7 11 os.chdir(root) 8 cmd = "pylint --rcfile extra/pylint.rc -f parseable sasmodels > pylint_violations.txt"12 cmd = "pylint --rcfile extra/pylint.rc -f parseable sasmodels" 9 13 status = os.system(cmd) 10 14 sys.exit(status)
Note: See TracChangeset
for help on using the changeset viewer.