Skip to content
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
48 changes: 22 additions & 26 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
repos:
- repo: https://github.com/psf/black-pre-commit-mirror
rev: "25.1.0"
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: "6.0.1"
hooks:
- id: isort
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v5.0.0"
hooks:
- id: check-json
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/abravalheri/validate-pyproject
rev: "v0.24.1"
hooks:
- id: validate-pyproject
- repo: local
hooks:
- id: stubgen
name: check API stub files
entry: scripts/stubgen.py
description: check if stub files of the APIs are up-to-date
language: script
types: [python]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.1
hooks:
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v5.0.0"
hooks:
- id: check-json
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/abravalheri/validate-pyproject
rev: "v0.24.1"
hooks:
- id: validate-pyproject
- repo: local
hooks:
- id: stubgen
name: check API stub files
entry: scripts/stubgen.py
description: check if stub files of the APIs are up-to-date
language: script
types: [python]
12 changes: 0 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,6 @@ test = [
"syrupy",
]

[tool.black]
line-length = 127
force-exclude = '.*_pb2\.py|.*\.pyi'

[tool.isort]
combine_as_imports = true
filter_files = true
forced_separate = ["tests"]
line_length = 127
profile = "black"
skip_glob = "*_pb2.py"

[tool.mypy]
ignore_missing_imports = true

Expand Down
1 change: 1 addition & 0 deletions scripts/stubgen.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
"""Generate stub files for API classes with async and sync interface."""

from __future__ import annotations

import sys
Expand Down