Skip to content

Commit

Permalink
make pyproject.toml valid TOML again (#11510)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood authored Feb 29, 2024
1 parent 26e8c00 commit e050986
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,16 @@ ignore = [
# deliberately contain code that might not be considered idiomatic or modern
# These can be run manually once in a while
"**/test_cases/**/*.py" = ["UP"]
# Generated protobuf files:
# TODO: Re-run sync_tensorflow_protobuf_stubs.sh with this rule enabled to remove this entry
"*_pb2.pyi" = [
"UP036", # Version block is outdated for minimum Python version
]

[tool.ruff.lint.per-file-ignores]
"*.pyi" = [
# Most flake8-bugbear rules don't apply for third-party stubs like typeshed,
# B033 could be slightly useful but Ruff doesn't have per-file select
"B", # flake8-bugbear
]
# Generated protobuf files:
# TODO: Re-run sync_tensorflow_protobuf_stubs.sh with this rule enabled to remove this entry
"*_pb2.pyi" = [
"UP036", # Version block is outdated for minimum Python version
]

[tool.ruff.lint.isort]
split-on-trailing-comma = false
Expand Down

0 comments on commit e050986

Please sign in to comment.