Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions eng/black-pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[tool.black]
line-length = 120
extend-exclude = '''
# Exclude some directories from formatting (note the slashes surrounding the pattern)
/(
azure/ai/ml/_restclient
)/
'''
2 changes: 1 addition & 1 deletion scripts/devops_tasks/validate_formatting.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def run_black(service_dir):
package_name = os.path.basename(package)

if is_check_enabled(package, "black", True):
out = subprocess.Popen([sys.executable, "-m", "black", "-l", "120", "sdk/{}/{}".format(service_dir, package_name)],
out = subprocess.Popen([sys.executable, "-m", "black", "--config", os.path.join(root_dir, "eng", "black-pyproject.toml"), os.path.join("sdk", service_dir, package_name)],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
cwd = root_dir
Expand Down