Skip to content

Commit 752e32a

Browse files
committed
Fix linting
Closes #78.
1 parent aabcb7a commit 752e32a

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ MANIFEST
1111
/eggs
1212
/bin
1313
/var
14+
/venv
1415
/sdist
1516
/develop-eggs
1617
/.installed.cfg

setup.cfg

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ disable=
4949
missing-docstring,
5050
no-else-raise,
5151
no-else-return,
52-
unnecessary-pass
52+
unnecessary-pass,
53+
use-dict-literal
5354

5455
[pylint.reports]
5556
output-format=parseable
@@ -61,6 +62,9 @@ max-line-length=100
6162
[pylint.variables]
6263
dummy-variables-rgx=_|dummy
6364

65+
[pylint.basic]
66+
good-names=i,QUEUED_EVENTS_BATCH_SIZE
67+
6468
[pylint.design]
6569
min-public-methods=0
6670
max-attributes=15

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 # pylint: disable=invalid-name
37+
constants.QUEUED_EVENTS_BATCH_SIZE = 3
3838

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

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ commands =
2424
{envbindir}/python -m unittest discover --start-directory tests --pattern '*_test.py'
2525

2626
[testenv:docs]
27-
basepython = python3
2827
deps =
2928
sphinx
3029
sphinx_rtd_theme
31-
whitelist_externals = make
30+
allowlist_externals = make
3231
commands = make -C docs html BUILDDIR={envtmpdir} "SPHINXOPTS=-W -E"

0 commit comments

Comments
 (0)