Skip to content

chore(pre-commit.ci): pre-commit autoupdate #1594

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

Merged
merged 2 commits into from
Jul 31, 2025
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
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ci:

repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.8.2
rev: v4.8.3
hooks:
- id: commitizen
stages: [commit-msg]
Expand Down Expand Up @@ -40,7 +40,7 @@ repos:
- id: pyupgrade
args: [--py39-plus]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.11
rev: v0.12.5
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand All @@ -50,16 +50,16 @@ repos:
hooks:
- id: codespell
- repo: https://github.com/PyCQA/flake8
rev: 7.2.0
rev: 7.3.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.15.0
rev: v1.17.0
hooks:
- id: mypy
additional_dependencies: [ifaddr]
- repo: https://github.com/MarcoGorelli/cython-lint
rev: v0.16.6
rev: v0.16.7
hooks:
- id: cython-lint
- id: double-quote-cython-strings
2 changes: 1 addition & 1 deletion build_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def build(setup_kwargs: Any) -> None:
if os.environ.get("SKIP_CYTHON"):
return
try:
from Cython.Build import cythonize
from Cython.Build import cythonize # noqa: PLC0415

setup_kwargs.update(
{
Expand Down
4 changes: 2 additions & 2 deletions src/zeroconf/_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class DNSQuestionType(enum.Enum):
QM = 2


class DNSEntry:
class DNSEntry: # noqa: PLW1641
"""A DNS entry"""

__slots__ = ("class_", "key", "name", "type", "unique")
Expand Down Expand Up @@ -161,7 +161,7 @@ def __repr__(self) -> str:
)


class DNSRecord(DNSEntry):
class DNSRecord(DNSEntry): # noqa: PLW1641
"""A DNS record - like a DNS entry, but has a TTL"""

__slots__ = ("created", "ttl")
Expand Down
2 changes: 1 addition & 1 deletion src/zeroconf/_services/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
heappush = heapq.heappush


class _ScheduledPTRQuery:
class _ScheduledPTRQuery: # noqa: PLW1641
__slots__ = (
"alias",
"cancelled",
Expand Down
Loading