Skip to content

Commit

Permalink
style: ignore classvar annotations for mutable members lint and self …
Browse files Browse the repository at this point in the history
…comparison lint
  • Loading branch information
cpcloud committed Jun 26, 2023
1 parent 536c394 commit d7711fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ibis/expr/datatypes/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class BarStruct:
o: dt.Timestamp
oa: dt.Timestamp['UTC'] # noqa: F821
ob: dt.Timestamp['UTC', 6] # noqa: F821
pa: dt.Interval['s']
pa: dt.Interval['s'] # noqa: F821
q: dt.Decimal
qa: dt.Decimal[12, 2]
r: dt.Array[dt.Int16]
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ ignore = [
"E501",
"E731",
"PGH003",
"PLR0124", # name compared with self, e.g., a == a
"PLR0911", # too many return statements
"PLR0912", # too many branches
"PLR0913", # too many arguments
Expand All @@ -437,6 +438,7 @@ ignore = [
"RET507",
"RET508",
"RUF005", # splat instead of concat
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar`
"SIM102", # nested ifs
"SIM108", # convert everything to ternary operator
"SIM114", # combine `if` branches using logical `or` operator
Expand Down

0 comments on commit d7711fb

Please sign in to comment.