|
| 1 | +[tool.ruff] |
| 2 | +line-length = 121 |
| 3 | +# pyflakes, pycodestyle, isort |
| 4 | +select = ["F", "E", "W", "I001"] |
| 5 | + |
| 6 | +[tool.pylint] |
| 7 | +max-line-length = 120 |
| 8 | +disable = [ |
| 9 | + "C0103", |
| 10 | + "C0111", |
| 11 | + "C0112", # empty-docstring |
| 12 | + "C0114", # missing-module-docstring |
| 13 | + "C0201", # consider-iterating-dictionary (Python 2) |
| 14 | + "C0206", # consider-using-dict-items (Python 2) |
| 15 | + "C0209", # consider-using f-string |
| 16 | + "C0302", # too-many-lines |
| 17 | + "C0303", |
| 18 | + "C0415", # import-outside-toplevel |
| 19 | + "E0307", # invalid-str-returned |
| 20 | + "E0611", # no-name-in-module (!) |
| 21 | + "E1102", # not-callable |
| 22 | + "R0205", # useless-object-inheritance (Python 2) |
| 23 | + "R0401", # cyclic-import (!) |
| 24 | + "R0801", # duplicate-code |
| 25 | + "R0902", # too-many-instance-attributes |
| 26 | + "R0903", # too-few-public-methods |
| 27 | + "R0903", # too-few-public-methods |
| 28 | + "R0904", # too-many-public-methods |
| 29 | + "R0912", # too-many-branches |
| 30 | + "R0913", # too-many-arguments |
| 31 | + "R0914", # too-many-locals |
| 32 | + "R1705", # no-else-return |
| 33 | + "R1710", # inconsistent-return-statements (!) |
| 34 | + "R1711", # useless-return |
| 35 | + "R1714", # consider-using-in |
| 36 | + "R1720", # no-else-raise |
| 37 | + "R1721", # unnecessary-comprehension |
| 38 | + "R1725", # super-with-arguments |
| 39 | + "R1732", #consider-using-with |
| 40 | + "W0105", # pointless-string-statement |
| 41 | + "W0106", # expression-not-assigned |
| 42 | + "W0107", # unnecessary-pass |
| 43 | + "W0201", # attribute-defined-outside-init |
| 44 | + "W0212", # protected-access |
| 45 | + "W0221", # arguments-differ |
| 46 | + "W0237", # arguments-renamed |
| 47 | + "W0246", # useless-parent-delegation |
| 48 | + "W0404", # reimported |
| 49 | + "W0613", # unused-argument |
| 50 | + "W0621", # redefine-outer-name |
| 51 | + "W0707", # raise-missing-from |
| 52 | + "W1113", # keyword-arg-before-vararg |
| 53 | + "W3101", # missing-timeout |
| 54 | +] # all codes: http://pylint-messages.wikidot.com/all-codes |
| 55 | + |
| 56 | +[tool.pylint.FORMAT] |
| 57 | +max-line-length = 121 |
| 58 | +ignore-long-lines = '^\s*# (<?https?://\S+>?|type: .+)$' |
| 59 | + |
| 60 | +[tool.pylint.MASTER] |
| 61 | +ignore-patterns = 'office365\todo\tasks\**' |
| 62 | + |
| 63 | +[tool.ruff.per-file-ignores] |
| 64 | +"tests/**/*.py" = ["F401"] |
| 65 | +"examples/**/*.py" = ["F401"] |
| 66 | +"office365/**/*.py" = ["F401"] |
0 commit comments