Skip to content

Commit 585d8f7

Browse files
committed
Ignore incompatible ruff rule; run pre-commit
1 parent 08a80fb commit 585d8f7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

ruff.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ ignore = [
5252
"D105", # Missing docstring in magic method
5353
"D203", # 1 blank line before after class docstring
5454
"D204", # 1 blank line required after class docstring
55+
"D213", # Make docstrings start on second line
5556
"D413", # 1 blank line after parameters
5657
"SIM108", # Simplify if/else to one line; not always clearer
5758
"D206", # Docstrings should be indented with spaces; unnecessary when running ruff-format

setup.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def initialize_options(self):
3939
if platform.system() == "Windows":
4040
self._additional_build_options = ["--copt=-DWIN32_LEAN_AND_MEAN"]
4141

42-
4342
def run(self):
4443
subprocess.check_call(
4544
[
@@ -120,7 +119,5 @@ def run(self):
120119
download_url="https://github.com/tensorflow/metadata/tags",
121120
requires=[],
122121
cmdclass={"build_py": _BazelBuildCommand},
123-
package_data={
124-
"tensorflow_metadata.proto.v0": ["*.proto"]
125-
}
122+
package_data={"tensorflow_metadata.proto.v0": ["*.proto"]},
126123
)

0 commit comments

Comments
 (0)