Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#410)
Browse files Browse the repository at this point in the history
updates:
- git://github.com/pre-commit/pre-commit-hooks: v3.4.0 → v4.0.1
- https://github.com/timothycrosley/isorthttps://github.com/PyCQA/isort
- [github.com/PyCQA/isort: 5.8.0 → 5.9.3](PyCQA/isort@5.8.0...5.9.3)
- [github.com/psf/black: 20.8b1 → 21.7b0](psf/black@20.8b1...21.7b0)
- https://gitlab.com/pycqa/flake8https://github.com/PyCQA/flake8
- [github.com/PyCQA/flake8: 3.9.1 → 3.9.2](PyCQA/flake8@3.9.1...3.9.2)
- [github.com/pre-commit/mirrors-mypy: v0.812 → v0.910](pre-commit/mirrors-mypy@v0.812...v0.910)

Co-authored-by: Chris Sewell <chrisj_sewell@hotmail.com>
  • Loading branch information
pre-commit-ci[bot] and chrisjsewell committed Sep 27, 2021
1 parent f362378 commit 9fe0a12
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,32 @@ exclude: >
repos:

- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
rev: v4.0.1
hooks:
- id: check-json
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace

- repo: https://github.com/mgedmin/check-manifest
rev: "0.46"
rev: "0.47"
hooks:
- id: check-manifest
args: [--no-build-isolation]
additional_dependencies: [setuptools>=46.4.0]

- repo: https://github.com/timothycrosley/isort
rev: 5.8.0
- repo: https://github.com/PyCQA/isort
rev: 5.9.3
hooks:
- id: isort

- repo: https://github.com/psf/black
rev: 20.8b1
rev: 21.9b0
hooks:
- id: black

- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.1
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
additional_dependencies:
Expand All @@ -46,7 +46,7 @@ repos:
# - flake8-self~=0.2.2

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.812
rev: v0.910
hooks:
- id: mypy
args: [--config-file=setup.cfg]
Expand Down
4 changes: 2 additions & 2 deletions myst_parser/docutils_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,11 +535,11 @@ def render_link(self, token: SyntaxTreeNode) -> None:
os.path.join(include_dir, os.path.normpath(destination)), source_dir
)

ref_node["refuri"] = destination # type: ignore[index]
ref_node["refuri"] = destination

title = token.attrGet("title")
if title:
ref_node["title"] = title # type: ignore[index]
ref_node["title"] = title
next_node = ref_node

# TODO currently any reference with a fragment # is deemed external
Expand Down
2 changes: 1 addition & 1 deletion myst_parser/parse_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def nest_vtag(self, name: str, attrs: dict):
top.append(item)

def nest_terminal(self, klass: Type[TerminalElement], data: str):
""" Nest the data onto the tree."""
"""Nest the data onto the tree."""
top = self.last()
item = klass(data)
top.append(item)
Expand Down
6 changes: 6 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,9 @@ check_untyped_defs = true
strict_equality = true
no_implicit_optional = true
warn_unused_ignores = true

[mypy-docutils.*]
ignore_missing_imports = True

[mypy-yaml.*]
ignore_missing_imports = True

0 comments on commit 9fe0a12

Please sign in to comment.