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

refactor: apply pre-commit fixes #296

Closed
wants to merge 7 commits into from
Closed
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
42 changes: 22 additions & 20 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,16 @@ repos:
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-mock-methods
- id: python-use-type-annotations
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.2
hooks:
- id: black
# It is recommended to specify the latest version of Python
# supported by your project here, or alternatively use
# pre-commit's default_language_version, see
# https://pre-commit.com/#top_level-default_language_version
language_version: python3.11
# # Using this mirror lets us use mypyc-compiled black, which is about 2x faster
# - repo: https://github.com/psf/black-pre-commit-mirror
# rev: 24.4.2
# hooks:
# - id: black
# # It is recommended to specify the latest version of Python
# # supported by your project here, or alternatively use
# # pre-commit's default_language_version, see
# # https://pre-commit.com/#top_level-default_language_version
# language_version: python3.11
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
Expand All @@ -32,11 +27,18 @@ repos:
- flake8-bugbear==24.2.6
- flake8-comprehensions
- flake8-simplify
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.8.0"
# - repo: https://github.com/tox-dev/pyproject-fmt
# rev: "1.8.0"
# hooks:
# - id: pyproject-fmt
# # https://pyproject-fmt.readthedocs.io/en/latest/#calculating-max-supported-python-version
# additional_dependencies: ["tox>=4.9"]
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
hooks:
- id: pyproject-fmt
# https://pyproject-fmt.readthedocs.io/en/latest/#calculating-max-supported-python-version
additional_dependencies: ["tox>=4.9"]
- id: docformatter
additional_dependencies: [tomli]
args: [--in-place --config ./pyproject.toml]

ci:
autoupdate_schedule: monthly
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ extend-exclude = '''(
(_pb2.pyi?|_pb2_grpc.pyi?)$
)'''

[tool.docformatter]
blank = true
style = "google"

[tool.pytest.ini_options]
asyncio_mode = "auto"
log_auto_indent = true
Expand Down