FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Enable pylint (#438) · python-zeroconf/python-zeroconf@6fafdee · GitHub

Commit 6fafdee

Browse files
authored
Enable pylint (#438)
1 parent 9510808 commit 6fafdee

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

‎Makefile‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PYTHON_VERSION:=$(shell python -c "import sys;sys.stdout.write('%d.%d' % sys.ver
66
LINT_TARGETS:=flake8
77

88
ifneq ($(findstring PyPy,$(PYTHON_IMPLEMENTATION)),PyPy)
9-
LINT_TARGETS:=$(LINT_TARGETS) mypy black_check
9+
LINT_TARGETS:=$(LINT_TARGETS) mypy black_check pylint
1010
endif
1111

1212

@@ -28,6 +28,9 @@ lint: $(LINT_TARGETS)
2828
flake8:
2929
flake8 --max-line-length=$(MAX_LINE_LENGTH) setup.py examples zeroconf
3030

31+
pylint:
32+
pylint zeroconf/__init__.py zeroconf/asyncio.py
33+
3134
.PHONY: black_check
3235
black_check:
3336
black --check setup.py examples zeroconf

‎pyproject.toml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ good-names = [
2525

2626
[tool.pylint."MESSAGES CONTROL"]
2727
disable = [
28+
"duplicate-code",
2829
"fixme",
2930
"format",
3031
"missing-class-docstring",
3132
"missing-function-docstring",
3233
"too-few-public-methods",
3334
"too-many-arguments",
34-
"too-many-instance-attributes"
35+
"too-many-instance-attributes",
36+
"too-many-public-methods"
3537
]

‎requirements-dev.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ifaddr
99
mypy;implementation_name=="cpython"
1010
# 0.11.0 breaks things https://github.com/PyCQA/pep8-naming/issues/152
1111
pep8-naming!=0.6.0,!=0.11.0
12+
pylint
1213
pytest
1314
pytest-asyncio
1415
pytest-cov

‎zeroconf/asyncio.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
def _get_best_available_queue() -> queue.Queue:
5050
"""Create the best available queue type."""
5151
if hasattr(queue, "SimpleQueue"):
52-
return queue.SimpleQueue() # type: ignore
52+
return queue.SimpleQueue() # type: ignore # pylint: disable=all
5353
return queue.Queue()
5454

5555

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL