| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,7 @@ PYTHON_VERSION:=$(shell python -c "import sys;sys.stdout.write('%d.%d' % sys.ver | |||
| 6 | 6 | LINT_TARGETS:=flake8 | |
| 7 | 7 | ||
| 8 | 8 | ifneq ($(findstring PyPy,$(PYTHON_IMPLEMENTATION)),PyPy) | |
| 9 | - LINT_TARGETS:=$(LINT_TARGETS) mypy black_check | ||
| 9 | + LINT_TARGETS:=$(LINT_TARGETS) mypy black_check pylint | ||
| 10 | 10 | endif | |
| 11 | 11 | ||
| 12 | 12 | ||
@@ -28,6 +28,9 @@ lint: $(LINT_TARGETS) | |||
| 28 | 28 | flake8: | |
| 29 | 29 | flake8 --max-line-length=$(MAX_LINE_LENGTH) setup.py examples zeroconf | |
| 30 | 30 | ||
| 31 | + pylint: | ||
| 32 | + pylint zeroconf/__init__.py zeroconf/asyncio.py | ||
| 33 | + | ||
| 31 | 34 | .PHONY: black_check | |
| 32 | 35 | black_check: | |
| 33 | 36 | black --check setup.py examples zeroconf | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,11 +25,13 @@ good-names = [ | |||
| 25 | 25 | ||
| 26 | 26 | [tool.pylint."MESSAGES CONTROL"] | |
| 27 | 27 | disable = [ | |
| 28 | + "duplicate-code", | ||
| 28 | 29 | "fixme", | |
| 29 | 30 | "format", | |
| 30 | 31 | "missing-class-docstring", | |
| 31 | 32 | "missing-function-docstring", | |
| 32 | 33 | "too-few-public-methods", | |
| 33 | 34 | "too-many-arguments", | |
| 34 | - "too-many-instance-attributes" | ||
| 35 | + "too-many-instance-attributes", | ||
| 36 | + "too-many-public-methods" | ||
| 35 | 37 | ] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,6 +9,7 @@ ifaddr | |||
| 9 | 9 | mypy;implementation_name=="cpython" | |
| 10 | 10 | # 0.11.0 breaks things https://github.com/PyCQA/pep8-naming/issues/152 | |
| 11 | 11 | pep8-naming!=0.6.0,!=0.11.0 | |
| 12 | + pylint | ||
| 12 | 13 | pytest | |
| 13 | 14 | pytest-asyncio | |
| 14 | 15 | pytest-cov | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -49,7 +49,7 @@ | |||
| 49 | 49 | def _get_best_available_queue() -> queue.Queue: | |
| 50 | 50 | """Create the best available queue type.""" | |
| 51 | 51 | if hasattr(queue, "SimpleQueue"): | |
| 52 | - return queue.SimpleQueue() # type: ignore | ||
| 52 | + return queue.SimpleQueue() # type: ignore # pylint: disable=all | ||
| 53 | 53 | return queue.Queue() | |
| 54 | 54 | ||
| 55 | 55 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments