From e4f52191d1ea0cef02290da7b735384e26d1ac3f Mon Sep 17 00:00:00 2001 From: Jesse Johnson <1024369+holocronweaver@users.noreply.github.com> Date: Fri, 14 Jun 2024 13:16:07 -0700 Subject: [PATCH] Update development checklist to include formatting code with Ruff (#2217) Updates the development checklist to match the current PR template, which suggests using Ruff for code formatting as it has replaced Black. (Indeed, Black is no longer available in the Home Assistant virtual environment.) --- docs/development_checklist.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/development_checklist.md b/docs/development_checklist.md index a8886264..dc166711 100644 --- a/docs/development_checklist.md +++ b/docs/development_checklist.md @@ -12,6 +12,6 @@ Before you commit any changes, check your work against these requirements: - New codeowners are added to `CODEOWNERS` (if applicable), using `python3 -m script.hassfest` - The `.coveragerc` file is updated to exclude your platform if there are no tests available or your new code uses a third-party library for communication with the device, service, or sensor. `config_flow.py` can't be excluded as it must be fully tested (100% coverage). - The `.strict-typing` file is updated to include your code if it provides a fully type hinted source. -- The code is formatted using Black, as per these [guidelines](https://developers.home-assistant.io/blog/2019/07/31/black/). This can be done running the command `black --fast homeassistant tests`. +- The code is formatted using Ruff (`ruff format`). - Documentation is developed for [home-assistant.io](https://home-assistant.io/) - Visit the [website documentation](/documenting.md) for more information about contributing to [home-assistant.io](https://github.com/home-assistant/home-assistant.io).