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.)
This commit is contained in:
Jesse Johnson 2024-06-14 13:16:07 -07:00 committed by GitHub
parent 50e3dcbef4
commit e4f52191d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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` - 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 `.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 `.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/) - 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). - Visit the [website documentation](/documenting.md) for more information about contributing to [home-assistant.io](https://github.com/home-assistant/home-assistant.io).