Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.6
rev: v0.12.2
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Comment thread
AlexWaygood marked this conversation as resolved.
Outdated
Expand Down
12 changes: 8 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,14 @@ ignore = [
"UP019",
"UP035",
"UP038",
# Not relevant here
"RUF012",
"RUF022",
"RUF023",
# Not relevant here, or harmful for tests if applied.
"RUF012", # Use ClassVar for mutables
"RUF022", # Unsorted __all__
"RUF023", # Unsorted __slots__
"RUF031", # parentheses for tuples in subscripts
"RUF041", # nested Literal
"RUF036", # None not at end of Union
Comment thread
AlexWaygood marked this conversation as resolved.
Outdated
"B903", # Use dataclass / namedtuple
# Ruff doesn't understand the globals() assignment; we test __all__
# directly in test_all_names_in___all__.
"F822",
Expand Down
2 changes: 1 addition & 1 deletion src/_typed_dict_test_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Foo(TypedDict):


class FooGeneric(TypedDict, Generic[T]):
a: Optional[T]
a: Optional[T] # noqa: UP045 while < (3, 10)
Comment thread
AlexWaygood marked this conversation as resolved.
Outdated


class VeryAnnotated(TypedDict, total=False):
Expand Down
Loading