Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.55k stars 2.77k forks source link

refactor `black` check to be configured in pyproject.toml instead of ci.yml #35153

Open kristapratico opened 5 months ago

kristapratico commented 5 months ago

black formatting is currently opt-in by specifying ValidateFormatting: true in a library's ci.yml: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/eng_sys_checks.md#opt-in-to-formatting-validation

We should refactor this check to instead be turned on/off by the pyproject.toml where other checks like pylint, mypy, pyright, and sphinx are controlled.

kristapratico commented 5 months ago

Also consider setting up next-black so we can more regularly bump our black version across repo