Skip to content

Commit

Permalink
meta: update and rename pylintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
tfuxu committed Dec 27, 2022
1 parent 8916b5d commit 4fc4885
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 15 deletions.
1 change: 0 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ indent_style = space
indent_size = 4

[meson.build]
indent_style = space
indent_size = 2

[*.md]
Expand Down
79 changes: 79 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
[MAIN]

# Use multiple processes to speed up Pylint.
jobs=4


[MESSAGES CONTROL]

# Disable the message, report, category or checker with the given id(s). You
# can either give multiple identifiers separated by comma (,) or put this
# option multiple times (only on the command line, not in the configuration
# file where it should appear only once). You can also use "--disable=all" to
# disable everything first and then re-enable specific checks. For example, if
# you want to run only the similarities checker, you can use "--disable=all
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use "--disable=all --enable=classes
# --disable=W".
disable=locally-disabled,
suppressed-message,
useless-suppression,
#line-too-long,
fixme,
missing-module-docstring,
missing-function-docstring,
missing-class-docstring,
invalid-name,
no-member,
too-few-public-methods,
attribute-defined-outside-init,
logging-fstring-interpolation,
unused-argument


[FORMAT]

# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
# tab).
indent-string=' '

# Number of spaces of indent required inside a hanging or continued line.
indent-after-paren=4

# Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
expected-line-ending-format=LF


[MISCELLANEOUS]

# List of note tags to take in consideration, separated by a comma.
notes=FIXME,XXX,TODO


[VARIABLES]

# Tells whether we should check for unused import in __init__ files.
init-import=no

# A regular expression matching the name of dummy variables (i.e. expectedly
# not used).
dummy-variables-rgx=(_+[a-zA-Z0-9]*?$)|dummy

# List of additional names supposed to be defined in builtins. Remember that
# you should avoid to define new builtins when possible.
additional-builtins=_


[SIMILARITIES]

# Minimum lines number of a similarity.
min-similarity-lines=4

# Ignore comments when computing similarities.
ignore-comments=yes

# Ignore docstrings when computing similarities.
ignore-docstrings=yes

# Ignore imports when computing similarities.
ignore-imports=no
14 changes: 0 additions & 14 deletions pylintrc

This file was deleted.

0 comments on commit 4fc4885

Please sign in to comment.