Skip to content

Commit d947fde

Browse files
[pre-commit.ci] pre-commit autoupdate (#134)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/psf/black: 22.12.0 → 23.1.0](psf/black@22.12.0...23.1.0) - [github.com/pre-commit/mirrors-mypy: v0.991 → v1.0.1](pre-commit/mirrors-mypy@v0.991...v1.0.1) - [github.com/PyCQA/pylint: v2.16.0b1 → v2.16.4](pylint-dev/pylint@v2.16.0b1...v2.16.4) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 6c8799f commit d947fde

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ repos:
1717
hooks:
1818
- id: pyupgrade
1919
- repo: https://github.com/psf/black
20-
rev: 22.12.0
20+
rev: 23.1.0
2121
hooks:
2222
- id: black
2323
- repo: https://github.com/pycqa/flake8
2424
rev: 6.0.0
2525
hooks:
2626
- id: flake8
2727
- repo: https://github.com/pre-commit/mirrors-mypy
28-
rev: v0.991
28+
rev: v1.0.1
2929
hooks:
3030
- id: mypy
3131
# empty args needed in order to match mypy cli behavior
@@ -37,7 +37,7 @@ repos:
3737
- types-setuptools
3838
- types-docutils
3939
- repo: https://github.com/PyCQA/pylint
40-
rev: v2.16.0b1
40+
rev: v2.16.4
4141
hooks:
4242
- id: pylint
4343
additional_dependencies:

src/doc8/checks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,12 @@ def find_containing_nodes(num):
259259
if num < first_line and nodes_lines:
260260
return [nodes_lines[0][0]]
261261
contained_in = []
262-
for (n, (line_min, line_max)) in nodes_lines:
262+
for n, (line_min, line_max) in nodes_lines:
263263
if line_min <= num <= line_max:
264264
contained_in.append((n, (line_min, line_max)))
265265
smallest_span = None
266266
best_nodes = []
267-
for (n, (line_min, line_max)) in contained_in:
267+
for n, (line_min, line_max) in contained_in:
268268
span = line_max - line_min
269269
if smallest_span is None:
270270
smallest_span = span
@@ -289,7 +289,7 @@ def any_types(nodes, types):
289289
for i, line in enumerate(lines):
290290
if len(line) > self._max_line_length:
291291
in_directive = False
292-
for (start, end) in directives:
292+
for start, end in directives:
293293
if start <= i <= end:
294294
in_directive = True
295295
break

src/doc8/version.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
try:
1717
from ._version import version as __version__
1818
except ImportError: # pragma: no branch
19-
2019
try:
2120
import pkg_resources
2221

0 commit comments

Comments
 (0)