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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
default_language_version:
python: python3.12
repos:
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.10.1
- repo: https://github.com/PyCQA/isort
rev: 6.0.0
hooks:
- id: isort
additional_dependencies: [toml]

- repo: https://github.com/psf/black
rev: 24.4.2
rev: 25.1.0
hooks:
- id: black
# override until resolved: https://github.com/ambv/black/issues/402
files: \.pyi?$
types: []

- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
rev: v3.19.1
hooks:
- id: pyupgrade
args: ['--py38-plus']

- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.1
hooks:
- id: codespell
args: ["--config", ".codespellrc"]
exclude: PyObjCTest|_metadata\.py$|\.fwinfo$|\.rtf$|\.mht$

- repo: https://github.com/pycqa/flake8
rev: 7.1.0
rev: 7.1.1
hooks:
- id: flake8
args: ["--config", ".flake8" ]
Expand Down Expand Up @@ -66,7 +66,7 @@ repos:
# - pyobjc-core

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down
2 changes: 1 addition & 1 deletion py2app_tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" py2app tests """
"""py2app tests"""
2 changes: 1 addition & 1 deletion py2app_tests/basic_app/package1/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" package1 """
"""package1"""
2 changes: 1 addition & 1 deletion py2app_tests/basic_app/package1/subpackage/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" package1.subpackage """
"""package1.subpackage"""
2 changes: 1 addition & 1 deletion py2app_tests/basic_app/package1/subpackage/module.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" package1.subpackage.module """
"""package1.subpackage.module"""
2 changes: 1 addition & 1 deletion py2app_tests/basic_app/package2/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" package2 """
"""package2"""
2 changes: 1 addition & 1 deletion py2app_tests/basic_app/package3/mod.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" package3.mod """
"""package3.mod"""
2 changes: 1 addition & 1 deletion py2app_tests/basic_app2/package1/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" package1 """
"""package1"""
2 changes: 1 addition & 1 deletion py2app_tests/basic_app2/package1/subpackage/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" package1.subpackage """
"""package1.subpackage"""
2 changes: 1 addition & 1 deletion py2app_tests/basic_app2/package1/subpackage/module.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" package1.subpackage.module """
"""package1.subpackage.module"""
2 changes: 1 addition & 1 deletion py2app_tests/basic_app2/package2/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" package2 """
"""package2"""
2 changes: 1 addition & 1 deletion py2app_tests/basic_app_with_encoding/package1/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" package1 """
"""package1"""
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" package1.subpackage """
"""package1.subpackage"""
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" package1.subpackage.module """
"""package1.subpackage.module"""
2 changes: 1 addition & 1 deletion py2app_tests/basic_app_with_encoding/package2/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" package2 """
"""package2"""
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" package2.sub """
"""package2.sub"""
2 changes: 1 addition & 1 deletion py2app_tests/basic_app_with_encoding/package3/mod.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" package3.mod """
"""package3.mod"""
2 changes: 1 addition & 1 deletion py2app_tests/pkg_script_app/quot/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" quot package """
"""quot package"""
2 changes: 1 addition & 1 deletion py2app_tests/pkg_script_app/quot/queue.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" quot.queue """
"""quot.queue"""
2 changes: 1 addition & 1 deletion src/py2app/_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def relpath_for_script(node: Script) -> str:


def iter_resources(
node: Union[Package, NamespacePackage]
node: Union[Package, NamespacePackage],
) -> typing.Iterator[typing.Tuple[str, bytes]]:
"""
Yield all resources in a package, including those in subdirectories.
Expand Down
2 changes: 1 addition & 1 deletion src/py2app/_recipedefs/stdlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@


def _mods(
values: typing.Sequence[typing.Tuple[str, typing.Sequence[str]]]
values: typing.Sequence[typing.Tuple[str, typing.Sequence[str]]],
) -> typing.Sequence[str]:
return tuple(v[0] for v in values)

Expand Down
2 changes: 1 addition & 1 deletion src/py2app/bootstrap/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" py2app bootstrap files """
"""py2app bootstrap files"""
4 changes: 2 additions & 2 deletions src/py2app/build_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def validate_target(


def normalize_data_file(
fn: typing.Union[str, typing.Tuple[str, typing.List[str]]]
fn: typing.Union[str, typing.Tuple[str, typing.List[str]]],
) -> typing.Tuple[str, typing.List[str]]:
if isinstance(fn, str):
fn = convert_path(fn)
Expand Down Expand Up @@ -1575,7 +1575,7 @@ def packagefilter(
included_metadata.add(os.fspath(dist_info_path))

def files_in_dir(
toplevel: typing.Union[str, os.PathLike[str]]
toplevel: typing.Union[str, os.PathLike[str]],
) -> typing.Iterator[str]:
for dirname, _, fns in os.walk(toplevel):
for fn in fns:
Expand Down
2 changes: 1 addition & 1 deletion src/py2app/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@


def find_converter(
source: typing.Union[str, os.PathLike[str]]
source: typing.Union[str, os.PathLike[str]],
) -> typing.Optional[typing.Callable[..., None]]:
if not gConverterTab:
for ep in importlib_metadata.entry_points(group="py2app.converter"):
Expand Down
1 change: 1 addition & 0 deletions stubs/macholib/MachOGraph.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import typing

from .MachO import MachO

class MachOGraph:
Expand Down
3 changes: 2 additions & 1 deletion stubs/macholib/MachOStandalone.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
""" """

import typing
import collections
import typing

from macholib.MachOGraph import MachOGraph

class MachOStandalone:
Expand Down
2 changes: 1 addition & 1 deletion stubs/macholib/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1 +1 @@
""" stub """
"""stub"""
2 changes: 1 addition & 1 deletion stubs/macholib/util.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Minimal stubs """
"""Minimal stubs"""

import typing

Expand Down
3 changes: 2 additions & 1 deletion stubs/modulegraph/find_modules.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
""" """

import typing
from .modulegraph import Node, Extension, ModuleGraph

from .modulegraph import Extension, ModuleGraph, Node

PY_SUFFIXES: list[str]
C_SUFFIXES: list[str]
Expand Down
Loading