mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Add pyupgrade check outdated-version-block (UP036) (#11509)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
@@ -74,6 +74,7 @@ PROTO_FILES=$(grep "GenProto.*google" $PYTHON_PROTOBUF_DIR/python/setup.py | \
|
||||
protoc_install/bin/protoc --proto_path="$PYTHON_PROTOBUF_DIR/src" --mypy_out="relax_strict_optional_primitives:$REPO_ROOT/stubs/protobuf" $PROTO_FILES
|
||||
|
||||
ruff check "$REPO_ROOT/stubs/protobuf" --fix-only
|
||||
ruff check "$REPO_ROOT/stubs/protobuf" --fix-only --select=UP036 --unsafe-fixes
|
||||
black "$REPO_ROOT/stubs/protobuf"
|
||||
|
||||
sed --in-place="" \
|
||||
|
||||
@@ -62,6 +62,7 @@ rm tensorflow/compiler/xla/service/hlo_execution_profile_data_pb2.pyi \
|
||||
tensorflow/core/util/example_proto_fast_parsing_test_pb2.pyi
|
||||
|
||||
ruff check "$REPO_ROOT/stubs/tensorflow/tensorflow" --fix-only
|
||||
ruff check "$REPO_ROOT/stubs/protobuf" --fix-only --select=UP036 --unsafe-fixes
|
||||
black "$REPO_ROOT/stubs/tensorflow/tensorflow"
|
||||
|
||||
sed --in-place="" \
|
||||
|
||||
Reference in New Issue
Block a user