Skip to content

Commit

Permalink
Upgrade pre-commit repos
Browse files Browse the repository at this point in the history
  • Loading branch information
lundberg committed Apr 2, 2024
1 parent 1f55faa commit 6baaa09
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ default_language_version:
python: python3.11
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -13,30 +13,30 @@ repos:
- id: debug-statements
- id: detect-private-key
- repo: https://github.com/asottile/pyupgrade
rev: v3.4.0
rev: v3.15.2
hooks:
- id: pyupgrade
args:
- --py37-plus
- --keep-runtime-typing
- repo: https://github.com/pycqa/autoflake
rev: v2.1.1
rev: v2.3.1
hooks:
- id: autoflake
args:
- --in-place
- --remove-all-unused-imports
- --ignore-init-module-imports
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies:
Expand All @@ -47,11 +47,11 @@ repos:
- flake8-pytest-style
- flake8-datetimez
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.23.0
rev: 0.28.1
hooks:
- id: check-github-workflows
- repo: https://github.com/asottile/yesqa
rev: v1.4.0
rev: v1.5.0
hooks:
- id: yesqa
additional_dependencies:
Expand All @@ -62,7 +62,7 @@ repos:
- flake8-pytest-style
- flake8-datetimez
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0-alpha.9-for-vscode"
rev: "v4.0.0-alpha.8"
hooks:
- id: prettier
alias: format-markdown
Expand Down
2 changes: 1 addition & 1 deletion respx/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def pytest_configure(config):
)


@pytest.fixture()
@pytest.fixture
def respx_mock(request):
respx_marker = request.node.get_closest_marker("respx")

Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
pytest_plugins = ["pytester"]


@pytest.fixture()
@pytest.fixture
async def client():
async with httpx.AsyncClient() as client:
yield client


@pytest.fixture()
@pytest.fixture
async def my_mock():
async with respx.mock(
base_url="https://httpx.mock", using="httpcore"
Expand Down

0 comments on commit 6baaa09

Please sign in to comment.