A python library for accessing the VEML6070 digital UV light sensor from Vishay

.pylintrc 16KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  1. [MASTER]
  2. # A comma-separated list of package or module names from where C extensions may
  3. # be loaded. Extensions are loading into the active Python interpreter and may
  4. # run arbitrary code
  5. extension-pkg-whitelist=
  6. # Add files or directories to the blacklist. They should be base names, not
  7. # paths.
  8. ignore=CVS
  9. # Add files or directories matching the regex patterns to the blacklist. The
  10. # regex matches against base names, not paths.
  11. ignore-patterns=.*_test.py,setup.py
  12. # Python code to execute, usually for sys.path manipulation such as
  13. # pygtk.require().
  14. #init-hook=
  15. # Use multiple processes to speed up Pylint.
  16. jobs=1
  17. # List of plugins (as comma separated values of python modules names) to load,
  18. # usually to register additional checkers.
  19. load-plugins=
  20. # Pickle collected data for later comparisons.
  21. persistent=no
  22. # Specify a configuration file.
  23. #rcfile=
  24. # When enabled, pylint would attempt to guess common misconfiguration and emit
  25. # user-friendly hints instead of false-positive error messages
  26. suggestion-mode=yes
  27. # Allow loading of arbitrary C extensions. Extensions are imported into the
  28. # active Python interpreter and may run arbitrary code.
  29. unsafe-load-any-extension=no
  30. [MESSAGES CONTROL]
  31. # Only show warnings with the listed confidence levels. Leave empty to show
  32. # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
  33. confidence=
  34. # Disable the message, report, category or checker with the given id(s). You
  35. # can either give multiple identifiers separated by comma (,) or put this
  36. # option multiple times (only on the command line, not in the configuration
  37. # file where it should appear only once).You can also use "--disable=all" to
  38. # disable everything first and then reenable specific checks. For example, if
  39. # you want to run only the similarities checker, you can use "--disable=all
  40. # --enable=similarities". If you want to run only the classes checker, but have
  41. # no Warning level messages displayed, use"--disable=all --enable=classes
  42. # --disable=W"
  43. disable=print-statement,
  44. parameter-unpacking,
  45. unpacking-in-except,
  46. old-raise-syntax,
  47. backtick,
  48. long-suffix,
  49. old-ne-operator,
  50. old-octal-literal,
  51. import-star-module-level,
  52. non-ascii-bytes-literal,
  53. raw-checker-failed,
  54. bad-inline-option,
  55. locally-disabled,
  56. locally-enabled,
  57. file-ignored,
  58. suppressed-message,
  59. useless-suppression,
  60. deprecated-pragma,
  61. apply-builtin,
  62. basestring-builtin,
  63. buffer-builtin,
  64. cmp-builtin,
  65. coerce-builtin,
  66. execfile-builtin,
  67. file-builtin,
  68. long-builtin,
  69. raw_input-builtin,
  70. reduce-builtin,
  71. standarderror-builtin,
  72. unicode-builtin,
  73. xrange-builtin,
  74. coerce-method,
  75. delslice-method,
  76. getslice-method,
  77. setslice-method,
  78. no-absolute-import,
  79. old-division,
  80. dict-iter-method,
  81. dict-view-method,
  82. next-method-called,
  83. metaclass-assignment,
  84. indexing-exception,
  85. raising-string,
  86. reload-builtin,
  87. oct-method,
  88. hex-method,
  89. nonzero-method,
  90. cmp-method,
  91. input-builtin,
  92. round-builtin,
  93. intern-builtin,
  94. unichr-builtin,
  95. map-builtin-not-iterating,
  96. zip-builtin-not-iterating,
  97. range-builtin-not-iterating,
  98. filter-builtin-not-iterating,
  99. using-cmp-argument,
  100. eq-without-hash,
  101. div-method,
  102. idiv-method,
  103. rdiv-method,
  104. exception-message-attribute,
  105. invalid-str-codec,
  106. sys-max-int,
  107. bad-python3-import,
  108. deprecated-string-function,
  109. deprecated-str-translate-call,
  110. deprecated-itertools-function,
  111. deprecated-types-field,
  112. next-method-defined,
  113. dict-items-not-iterating,
  114. dict-keys-not-iterating,
  115. dict-values-not-iterating,
  116. missing-docstring,
  117. line-too-long,
  118. c-extension-no-member
  119. # Enable the message, report, category or checker with the given id(s). You can
  120. # either give multiple identifier separated by comma (,) or put this option
  121. # multiple time (only on the command line, not in the configuration file where
  122. # it should appear only once). See also the "--disable" option for examples.
  123. enable=
  124. [REPORTS]
  125. # Python expression which should return a note less than 10 (10 is the highest
  126. # note). You have access to the variables errors warning, statement which
  127. # respectively contain the number of errors / warnings messages and the total
  128. # number of statements analyzed. This is used by the global evaluation report
  129. # (RP0004).
  130. evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
  131. # Template used to display messages. This is a python new-style format string
  132. # used to format the message information. See doc for all details
  133. #msg-template=
  134. # Set the output format. Available formats are text, parseable, colorized, json
  135. # and msvs (visual studio).You can also give a reporter class, eg
  136. # mypackage.mymodule.MyReporterClass.
  137. output-format=colorized
  138. # Tells whether to display a full report or only the messages
  139. reports=no
  140. # Activate the evaluation score.
  141. score=yes
  142. [REFACTORING]
  143. # Maximum number of nested blocks for function / method body
  144. max-nested-blocks=5
  145. # Complete name of functions that never returns. When checking for
  146. # inconsistent-return-statements if a never returning function is called then
  147. # it will be considered as an explicit return statement and no message will be
  148. # printed.
  149. never-returning-functions=optparse.Values,sys.exit
  150. [BASIC]
  151. # Naming style matching correct argument names
  152. argument-naming-style=snake_case
  153. # Regular expression matching correct argument names. Overrides argument-
  154. # naming-style
  155. #argument-rgx=
  156. # Naming style matching correct attribute names
  157. attr-naming-style=snake_case
  158. # Regular expression matching correct attribute names. Overrides attr-naming-
  159. # style
  160. #attr-rgx=
  161. # Bad variable names which should always be refused, separated by a comma
  162. bad-names=foo,
  163. bar,
  164. baz,
  165. toto,
  166. tutu,
  167. tata
  168. # Naming style matching correct class attribute names
  169. class-attribute-naming-style=any
  170. # Regular expression matching correct class attribute names. Overrides class-
  171. # attribute-naming-style
  172. #class-attribute-rgx=
  173. # Naming style matching correct class names
  174. class-naming-style=PascalCase
  175. # Regular expression matching correct class names. Overrides class-naming-style
  176. #class-rgx=
  177. # Naming style matching correct constant names
  178. const-naming-style=UPPER_CASE
  179. # Regular expression matching correct constant names. Overrides const-naming-
  180. # style
  181. #const-rgx=
  182. # Minimum line length for functions/classes that require docstrings, shorter
  183. # ones are exempt.
  184. docstring-min-length=-1
  185. # Naming style matching correct function names
  186. function-naming-style=snake_case
  187. # Regular expression matching correct function names. Overrides function-
  188. # naming-style
  189. #function-rgx=
  190. # Good variable names which should always be accepted, separated by a comma
  191. good-names=i,
  192. j,
  193. k,
  194. ex,
  195. Run,
  196. _,
  197. uv
  198. # Include a hint for the correct naming format with invalid-name
  199. include-naming-hint=no
  200. # Naming style matching correct inline iteration names
  201. inlinevar-naming-style=any
  202. # Regular expression matching correct inline iteration names. Overrides
  203. # inlinevar-naming-style
  204. #inlinevar-rgx=
  205. # Naming style matching correct method names
  206. method-naming-style=snake_case
  207. # Regular expression matching correct method names. Overrides method-naming-
  208. # style
  209. #method-rgx=
  210. # Naming style matching correct module names
  211. module-naming-style=snake_case
  212. # Regular expression matching correct module names. Overrides module-naming-
  213. # style
  214. #module-rgx=
  215. # Colon-delimited sets of names that determine each other's naming style when
  216. # the name regexes allow several styles.
  217. name-group=
  218. # Regular expression which should only match function or class names that do
  219. # not require a docstring.
  220. no-docstring-rgx=^_
  221. # List of decorators that produce properties, such as abc.abstractproperty. Add
  222. # to this list to register other decorators that produce valid properties.
  223. property-classes=abc.abstractproperty
  224. # Naming style matching correct variable names
  225. variable-naming-style=snake_case
  226. # Regular expression matching correct variable names. Overrides variable-
  227. # naming-style
  228. #variable-rgx=
  229. [FORMAT]
  230. # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
  231. expected-line-ending-format=
  232. # Regexp for a line that is allowed to be longer than the limit.
  233. ignore-long-lines=^\s*(# )?<?https?://\S+>?$
  234. # Number of spaces of indent required inside a hanging or continued line.
  235. indent-after-paren=4
  236. # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
  237. # tab).
  238. indent-string=' '
  239. # Maximum number of characters on a single line.
  240. max-line-length=100
  241. # Maximum number of lines in a module
  242. max-module-lines=1000
  243. # List of optional constructs for which whitespace checking is disabled. `dict-
  244. # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
  245. # `trailing-comma` allows a space between comma and closing bracket: (a, ).
  246. # `empty-line` allows space-only lines.
  247. no-space-check=trailing-comma,
  248. dict-separator
  249. # Allow the body of a class to be on the same line as the declaration if body
  250. # contains single statement.
  251. single-line-class-stmt=no
  252. # Allow the body of an if to be on the same line as the test if there is no
  253. # else.
  254. single-line-if-stmt=no
  255. [MISCELLANEOUS]
  256. # List of note tags to take in consideration, separated by a comma.
  257. notes=FIXME,
  258. XXX,
  259. TODO
  260. [LOGGING]
  261. # Logging modules to check that the string format arguments are in logging
  262. # function parameter format
  263. logging-modules=logging
  264. [SIMILARITIES]
  265. # Ignore comments when computing similarities.
  266. ignore-comments=yes
  267. # Ignore docstrings when computing similarities.
  268. ignore-docstrings=yes
  269. # Ignore imports when computing similarities.
  270. ignore-imports=no
  271. # Minimum lines number of a similarity.
  272. min-similarity-lines=4
  273. [SPELLING]
  274. # Limits count of emitted suggestions for spelling mistakes
  275. max-spelling-suggestions=4
  276. # Spelling dictionary name. Available dictionaries: none. To make it working
  277. # install python-enchant package.
  278. spelling-dict=
  279. # List of comma separated words that should not be checked.
  280. spelling-ignore-words=
  281. # A path to a file that contains private dictionary; one word per line.
  282. spelling-private-dict-file=
  283. # Tells whether to store unknown words to indicated private dictionary in
  284. # --spelling-private-dict-file option instead of raising a message.
  285. spelling-store-unknown-words=no
  286. [TYPECHECK]
  287. # List of decorators that produce context managers, such as
  288. # contextlib.contextmanager. Add to this list to register other decorators that
  289. # produce valid context managers.
  290. contextmanager-decorators=contextlib.contextmanager
  291. # List of members which are set dynamically and missed by pylint inference
  292. # system, and so shouldn't trigger E1101 when accessed. Python regular
  293. # expressions are accepted.
  294. generated-members=
  295. # Tells whether missing members accessed in mixin class should be ignored. A
  296. # mixin class is detected if its name ends with "mixin" (case insensitive).
  297. ignore-mixin-members=yes
  298. # This flag controls whether pylint should warn about no-member and similar
  299. # checks whenever an opaque object is returned when inferring. The inference
  300. # can return multiple potential results while evaluating a Python object, but
  301. # some branches might not be evaluated, which results in partial inference. In
  302. # that case, it might be useful to still emit no-member and other checks for
  303. # the rest of the inferred objects.
  304. ignore-on-opaque-inference=yes
  305. # List of class names for which member attributes should not be checked (useful
  306. # for classes with dynamically set attributes). This supports the use of
  307. # qualified names.
  308. ignored-classes=optparse.Values,thread._local,_thread._local
  309. # List of module names for which member attributes should not be checked
  310. # (useful for modules/projects where namespaces are manipulated during runtime
  311. # and thus existing member attributes cannot be deduced by static analysis. It
  312. # supports qualified module names, as well as Unix pattern matching.
  313. ignored-modules=
  314. # Show a hint with possible names when a member name was not found. The aspect
  315. # of finding the hint is based on edit distance.
  316. missing-member-hint=yes
  317. # The minimum edit distance a name should have in order to be considered a
  318. # similar match for a missing member name.
  319. missing-member-hint-distance=1
  320. # The total number of similar names that should be taken in consideration when
  321. # showing a hint for a missing member.
  322. missing-member-max-choices=1
  323. [VARIABLES]
  324. # List of additional names supposed to be defined in builtins. Remember that
  325. # you should avoid to define new builtins when possible.
  326. additional-builtins=
  327. # Tells whether unused global variables should be treated as a violation.
  328. allow-global-unused-variables=yes
  329. # List of strings which can identify a callback function by name. A callback
  330. # name must start or end with one of those strings.
  331. callbacks=cb_,
  332. _cb
  333. # A regular expression matching the name of dummy variables (i.e. expectedly
  334. # not used).
  335. dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
  336. # Argument names that match this expression will be ignored. Default to name
  337. # with leading underscore
  338. ignored-argument-names=_.*|^ignored_|^unused_
  339. # Tells whether we should check for unused import in __init__ files.
  340. init-import=no
  341. # List of qualified module names which can have objects that can redefine
  342. # builtins.
  343. redefining-builtins-modules=six.moves,past.builtins,future.builtins
  344. [IMPORTS]
  345. # Allow wildcard imports from modules that define __all__.
  346. allow-wildcard-with-all=no
  347. # Analyse import fallback blocks. This can be used to support both Python 2 and
  348. # 3 compatible code, which means that the block might have code that exists
  349. # only in one or another interpreter, leading to false positives when analysed.
  350. analyse-fallback-blocks=no
  351. # Deprecated modules which should not be used, separated by a comma
  352. deprecated-modules=regsub,
  353. TERMIOS,
  354. Bastion,
  355. rexec
  356. # Create a graph of external dependencies in the given file (report RP0402 must
  357. # not be disabled)
  358. ext-import-graph=
  359. # Create a graph of every (i.e. internal and external) dependencies in the
  360. # given file (report RP0402 must not be disabled)
  361. import-graph=
  362. # Create a graph of internal dependencies in the given file (report RP0402 must
  363. # not be disabled)
  364. int-import-graph=
  365. # Force import order to recognize a module as part of the standard
  366. # compatibility libraries.
  367. known-standard-library=
  368. # Force import order to recognize a module as part of a third party library.
  369. known-third-party=enchant
  370. [CLASSES]
  371. # List of method names used to declare (i.e. assign) instance attributes.
  372. defining-attr-methods=__init__,
  373. __new__,
  374. setUp
  375. # List of member names, which should be excluded from the protected access
  376. # warning.
  377. exclude-protected=_asdict,
  378. _fields,
  379. _replace,
  380. _source,
  381. _make
  382. # List of valid names for the first argument in a class method.
  383. valid-classmethod-first-arg=cls
  384. # List of valid names for the first argument in a metaclass class method.
  385. valid-metaclass-classmethod-first-arg=mcs
  386. [DESIGN]
  387. # Maximum number of arguments for function / method
  388. max-args=5
  389. # Maximum number of attributes for a class (see R0902).
  390. max-attributes=7
  391. # Maximum number of boolean expressions in a if statement
  392. max-bool-expr=5
  393. # Maximum number of branch for function / method body
  394. max-branches=12
  395. # Maximum number of locals for function / method body
  396. max-locals=15
  397. # Maximum number of parents for a class (see R0901).
  398. max-parents=7
  399. # Maximum number of public methods for a class (see R0904).
  400. max-public-methods=20
  401. # Maximum number of return / yield for function / method body
  402. max-returns=6
  403. # Maximum number of statements in function / method body
  404. max-statements=50
  405. # Minimum number of public methods for a class (see R0903).
  406. min-public-methods=2
  407. [EXCEPTIONS]
  408. # Exceptions that will emit a warning when being caught. Defaults to
  409. # "Exception"
  410. overgeneral-exceptions=Exception