diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 000000000000..b8313eb9fca4
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,6 @@
+[tool.black]
+extend-exclude = '''
+(
+  third-party/
+)
+'''