Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #410

Merged
merged 4 commits into from
Sep 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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