Skip to content

Commit

Permalink
MAINT: apply new black formatting (#211)
Browse files Browse the repository at this point in the history
* MAINT: autoupdate pre-commit hooks
  • Loading branch information
redeboer authored Nov 7, 2023
1 parent 2560dba commit feea665
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ repos:
files: ^\.pre\-commit\-(config|hooks)\.yaml$

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.9.1
rev: 23.10.1
hooks:
- id: black

Expand All @@ -66,12 +66,12 @@ repos:
- id: blacken-docs

- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v7.3.1
rev: v7.3.2
hooks:
- id: cspell

- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 2.7.2
rev: 2.7.3
hooks:
- id: editorconfig-checker
name: editorconfig
Expand All @@ -97,7 +97,7 @@ repos:
- id: prettier

- repo: https://github.com/ComPWA/mirrors-pyright
rev: v1.1.330
rev: v1.1.334
hooks:
- id: pyright

Expand All @@ -109,7 +109,7 @@ repos:
- --py36-plus

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.292
rev: v0.1.4
hooks:
- id: ruff
args:
Expand Down
1 change: 1 addition & 0 deletions src/repoma/check_dev_files/citation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Check citation files."""

import json
import os
from textwrap import dedent
Expand Down
1 change: 1 addition & 0 deletions src/repoma/check_dev_files/commitlint.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
See https://github.com/ComPWA/repo-maintenance/issues/177.
"""

import os

from repoma.errors import PrecommitError
Expand Down
1 change: 1 addition & 0 deletions src/repoma/check_dev_files/github_workflows.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Check :file:`.github/workflows` folder content."""

import os
import re
import shutil
Expand Down
1 change: 1 addition & 0 deletions src/repoma/check_dev_files/mypy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Check and update :code:`mypy` settings."""

import os

import tomlkit
Expand Down
1 change: 0 additions & 1 deletion src/repoma/check_dev_files/nbstripout.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Check the nbstripout hook in the pre-commit config."""


from ruamel.yaml.comments import CommentedMap
from ruamel.yaml.scalarstring import LiteralScalarString

Expand Down
1 change: 1 addition & 0 deletions src/repoma/check_dev_files/precommit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Check content of :code:`.pre-commit-config.yaml` and related files."""

from textwrap import dedent
from typing import List, Set

Expand Down
1 change: 1 addition & 0 deletions src/repoma/check_dev_files/pyright.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Check and update :code:`mypy` settings."""

import json
import os
from typing import TYPE_CHECKING, Optional
Expand Down
1 change: 1 addition & 0 deletions src/repoma/check_dev_files/pytest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Check and update :code:`pytest` settings."""

import os
from typing import Dict

Expand Down
1 change: 1 addition & 0 deletions src/repoma/check_dev_files/release_drafter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Update Release Drafter Action."""

import os
from typing import Any, Dict

Expand Down
1 change: 1 addition & 0 deletions src/repoma/check_dev_files/setup_cfg.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Apply a certain set of standards to the :file:`setup.cfg`."""

# pyright: reportUnknownLambdaType=false
import dataclasses
import os
Expand Down
1 change: 1 addition & 0 deletions src/repoma/check_dev_files/toml.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Configuration for working with TOML files."""

import os
import shutil
from glob import glob
Expand Down
1 change: 0 additions & 1 deletion src/repoma/errors.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Exceptions that are caught by a pre-commit hook and printed instead."""


class PrecommitError(RuntimeError):
pass
1 change: 1 addition & 0 deletions src/repoma/self_check.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Checks to be performed locally on the ComPWA/repo-maintenance repository."""

from functools import lru_cache
from io import StringIO
from textwrap import dedent, indent
Expand Down
1 change: 1 addition & 0 deletions src/repoma/utilities/pyproject.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tools for loading, inspecting, and updating :code:`pyproject.toml`."""

import os
from typing import Any, Iterable, Optional

Expand Down

0 comments on commit feea665

Please sign in to comment.