Skip to content
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,7 +1,7 @@
minimum_pre_commit_version: "2.9.0"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v6.0.0
hooks:
- id: check-yaml
args: [--allow-multiple-documents]
Expand All @@ -10,21 +10,21 @@ repos:
- id: end-of-file-fixer
- id: debug-statements
- id: trailing-whitespace
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.9.0
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.16.0
hooks:
- id: reorder-python-imports
args: [--py39-plus]
- repo: https://github.com/psf/black
rev: 23.1.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.1.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.3.0
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.0.1
rev: v1.19.1
hooks:
- id: mypy
additional_dependencies: [pytest]
Expand Down
6 changes: 2 additions & 4 deletions tests/test_f.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,9 @@ def test_get_source_segment():


def test_bad_source_segment():
s = F(
f"""
s = F(f"""
{1 + (2)}
"""
).strip()
""").strip()
[part] = s.parts
assert isinstance(part, FValue)
# Depending on Python version, ast.get_source_segment may be wrong,
Expand Down