Skip to content

Commit

Permalink
Update linters
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Feb 25, 2023
1 parent 82a1cec commit cd6ecdd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Expand Up @@ -6,18 +6,18 @@ repos:
exclude: src/furo/theme/.*|docs/(recommendations|reference/admonitions).md

- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.1.0
hooks:
- id: black
language_version: python3.8

- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
rev: 1.13.0
hooks:
- id: blacken-docs

- repo: https://github.com/PyCQA/isort
rev: 5.11.4
rev: 5.12.0
hooks:
- id: isort
files: \.py$
Expand All @@ -41,15 +41,15 @@ repos:
- id: flake8

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
rev: v1.0.1
hooks:
- id: mypy
args: [--disallow-untyped-defs, --ignore-missing-imports]
files: src/.*\.py$
additional_dependencies: [types-docutils]

- repo: https://github.com/PyCQA/pydocstyle
rev: 6.1.1
rev: 6.3.0
hooks:
- id: pydocstyle
files: src/.*\.py$
1 change: 1 addition & 0 deletions docs/kitchen-sink/blocks.rst
Expand Up @@ -187,6 +187,7 @@ This has an alias of ``code-block``.
from typing import Iterator
# This is an example
class Math:
@staticmethod
Expand Down
6 changes: 5 additions & 1 deletion src/furo/__init__.py
Expand Up @@ -384,7 +384,11 @@ def _overwrite_pygments_css(
return

assert app.builder
with open(os.path.join(app.builder.outdir, "_static", "pygments.css"), "w", encoding='utf-8') as f:
with open(
os.path.join(app.builder.outdir, "_static", "pygments.css"),
"w",
encoding="utf-8",
) as f:
f.write(get_pygments_stylesheet())


Expand Down

0 comments on commit cd6ecdd

Please sign in to comment.