Skip to content

Commit aabcb7a

Browse files
committed
Fix linting
1 parent 4fab5f3 commit aabcb7a

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
#
6666
# This is also used if you do content translation via gettext catalogs.
6767
# Usually you set "language" from the command line for these cases.
68-
language = None
68+
language = 'en'
6969

7070
# List of patterns, relative to source directory, that match files and
7171
# directories to ignore when looking for source files.

logstash_async/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def _rate_limit_check(self, kwargs):
334334
return 2 # any value greater than 1 means allowed
335335

336336
# ----------------------------------------------------------------------
337-
def _factor_rate_limit_key(self, exc): # pylint: disable=no-self-use
337+
def _factor_rate_limit_key(self, exc):
338338
module_name = getattr(exc, '__module__', '__no_module__')
339339
class_name = exc.__class__.__name__
340340
key_items = [module_name, class_name]

setup.cfg

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ from_first = true
2828
include_trailing_comma = true
2929

3030
# the following sections are for pylint
31-
[MASTER]
31+
[pylint.main]
3232
ignore=.git
3333
persistent=no
3434
load-plugins=
@@ -40,7 +40,7 @@ load-plugins=
4040
pylint.extensions.overlapping_exceptions,
4141
pylint.extensions.redefined_variable_type
4242

43-
[MESSAGES CONTROL]
43+
[pylint]
4444
disable=
4545
fixme,
4646
duplicate-code,
@@ -49,25 +49,23 @@ disable=
4949
missing-docstring,
5050
no-else-raise,
5151
no-else-return,
52-
no-self-use,
5352
unnecessary-pass
5453

55-
[REPORTS]
54+
[pylint.reports]
5655
output-format=parseable
57-
files-output=no
5856
reports=no
5957

60-
[FORMAT]
58+
[pylint.format]
6159
max-line-length=100
6260

63-
[VARIABLES]
61+
[pylint.variables]
6462
dummy-variables-rgx=_|dummy
6563

66-
[DESIGN]
64+
[pylint.design]
6765
min-public-methods=0
6866
max-attributes=15
6967
max-args=7
7068
max-parents=9
7169

72-
[EXCEPTIONS]
70+
[pylint.exceptions]
7371
overgeneral-exceptions=

tests/memory_cache_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def test_get_queued_events(self):
3434

3535
# ----------------------------------------------------------------------
3636
def test_get_queued_events_batch_size(self):
37-
constants.QUEUED_EVENTS_BATCH_SIZE = 3
37+
constants.QUEUED_EVENTS_BATCH_SIZE = 3 # pylint: disable=invalid-name
3838

3939
cache = MemoryCache({
4040
"id1": {"pending_delete": True},

0 commit comments

Comments
 (0)