home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.03k stars 28.28k forks source link

Replace pylint protected-access with Ruff SLF001 #115735

Closed autinerd closed 1 week ago

autinerd commented 1 month ago
## Proposed change

This replaces the pylint protected-access rule with the Ruff SLF001 rule.

Type of change

Additional information

Checklist

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

To help with the load of incoming pull requests:

puddly commented 1 month ago

Does ruff have readable short names for these directives? The pylint one was pretty straightforward. The ruff one...not so much.

autinerd commented 1 month ago

Unfortunately, ruff only has the codes.

home-assistant[bot] commented 1 week ago

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks :+1:

Learn more about our pull request process.

puddly commented 1 week ago

Regarding human-friendly names: ruff will probably implement it in the future: https://github.com/astral-sh/ruff/issues/1773