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 #1350

Merged
merged 4 commits into from
Dec 6, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@ jobs:
python-version: "3.10"

- name: Run result validator
uses: s-weigand/pyglotaran-validation@fix-sting-column-detection
uses: glotaran/pyglotaran-validation@main
with:
validation_name: pyglotaran-examples
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ default_language_version:
repos:
# Formatters
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-ast
- id: check-builtin-literals
Expand All @@ -19,7 +19,7 @@ repos:
args: [--remove]

- repo: https://github.com/asottile/pyupgrade
rev: v3.10.1
rev: v3.15.0
hooks:
- id: pyupgrade
types: [file]
Expand All @@ -36,7 +36,7 @@ repos:
types_or: [python, pyi]

- repo: https://github.com/psf/black
rev: 23.7.0
rev: 23.11.0
hooks:
- id: black
types: [file]
Expand All @@ -52,7 +52,7 @@ repos:
minimum_pre_commit_version: 2.9.0

- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.4.0
rev: v2.5.0
hooks:
- id: setup-cfg-fmt
args: [--include-version-classifiers]
Expand All @@ -68,7 +68,7 @@ repos:
- "metadata.vscode metadata.language_info.version"

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.0
rev: 1.7.1
hooks:
- id: nbqa-black
additional_dependencies: [black==22.6.0]
Expand Down Expand Up @@ -116,7 +116,7 @@ repos:
additional_dependencies: [flake8-docstrings, darglint==1.8.0]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
rev: v1.7.1
hooks:
- id: mypy
exclude: "docs|benchmark/|.*/tests?/.*"
Expand All @@ -131,7 +131,7 @@ repos:
additional_dependencies: [click<8]

- repo: https://github.com/rstcheck/rstcheck
rev: "v6.1.2"
rev: "v6.2.0"
hooks:
- id: rstcheck
additional_dependencies: [sphinx]
Expand All @@ -150,9 +150,9 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
rev: v2.2.6
hooks:
- id: codespell
types: [file]
types_or: [python, pyi, markdown, rst, jupyter]
args: [-L doas]
additional_dependencies: [tomli]
2 changes: 1 addition & 1 deletion glotaran/cli/commands/explore.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def export(filename: str, select, out: str, name: str):
else:
dim = choice
choice = prompt(
"Please select a value. Type 2 values sperated by ',' to select a range.",
"Please select a value. Type 2 values separated by ',' to select a range.",
default="back",
type=util.VALORRANGEORLIST,
)
Expand Down
2 changes: 1 addition & 1 deletion glotaran/deprecation/deprecation_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def glotaran_version() -> str:
This is basically the same as ``glotaran.__version__`` but independent from glotaran.
This way all of the deprecation functionality can be used even in
``glotaran.__init__.py`` without moving the import below the definition of
``__version__`` or causeing a circular import issue.
``__version__`` or causing a circular import issue.

Returns
-------
Expand Down
6 changes: 3 additions & 3 deletions glotaran/model/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __init__(self, error: str):


def _load_item_from_dict(
item_type: type[Item], value: Item | Mapping, extra: dict[str, Any] | None = None
item_type: type[Item], value: Item | dict[str, Any], extra: dict[str, Any] | None = None
) -> Item:
"""Load an item from a dictionary.

Expand Down Expand Up @@ -94,7 +94,7 @@ def _load_item_from_dict(


def _load_model_items_from_dict(
item_type: type[Item], item_dict: Mapping[str, ModelItem | dict]
item_type: type[Item], item_dict: Mapping[str, ModelItem | dict[str, Any]]
) -> dict[str, ModelItem]:
"""Load a model items from a dictionary.

Expand All @@ -116,7 +116,7 @@ def _load_model_items_from_dict(


def _load_global_items_from_dict(
item_type: type[Item], item_list: list[Item | dict]
item_type: type[Item], item_list: list[Item | dict[str, Any]]
) -> list[Item]:
"""Load an item from a dictionary.

Expand Down
2 changes: 1 addition & 1 deletion glotaran/optimization/estimation_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


class UnsupportedResidualFunctionError(ValueError):
"""Inidcates that the residual function is unsupported."""
"""Indicates that the residual function is unsupported."""

def __init__(self, residual_function: str):
"""Initialize an UnsupportedMethodError.
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,6 @@ ignore_errors = true
[[tool.mypy.overrides]]
module = "benchmark.*"
ignore_errors = true

[tool.codespell]
ignore-words-list = "projectio"