epenet
05fc7cfbde
Enforce namespace use for import conventions ( #118215 )
...
* Enforce namespace use for import conventions
* Include all registries
* Only apply to functions
* Use blacklist
* Rephrase comment
* Add async_entries_for_config_entry
* Typo
* Improve
* More core files
* Revert "More core files"
This reverts commit 9978b93706
.
* Revert diagnostics amends
* Include category/floor/label registries
* Performance
* Adjust text
2024-05-28 18:15:53 +02:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ( #88165 )
...
* Enable Ruff PT006
* Adjust existing cases
* Fix tests
* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
30bf0634fe
Add per-file-ignore to pylint ( #86289 )
2023-01-22 17:26:24 +01:00
epenet
4b813f2460
Adjust pylint plugin for tests directory ( #78727 )
...
* Add module_name to parametrize
* Add tests for tests directory
* Apply patch from mib1185
* Adjust plugin to allow imports from component being tested
2022-09-19 14:27:21 +02:00
epenet
0dcbc85684
Adjust relative-import plugin for tests ( #78742 )
2022-09-19 12:57:07 +02:00
epenet
3941290edc
Force root import of const from other components ( #78014 )
...
* Force root import of const from other components
* Add missing commit
* Add tests
* Add tests
* Apply suggestion
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Apply suggestion
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2022-09-14 14:07:57 +02:00
epenet
f1c7fb7866
Adjust pylint plugin for relative imports ( #78277 )
2022-09-14 00:11:57 +02:00
epenet
8ed689fede
Add new rule to enforce relative imports in pylint ( #77358 )
...
* Add new rule to enforce relative imports in pylint
* Early return
* Adjust components
2022-08-29 08:55:32 +02:00
epenet
38ca74b547
Adjust pylint plugin for absolute/relative imports ( #77219 )
...
* Adjust pylint plugin for absolute/relative imports
* Adjust components
* One more
* Adjust mqtt
* Adjust mqtt.DOMAIN import
* Adjust internal import
* Add tests for valid local component imports
* Adjust relative path check
* Fixes
* Fixes
2022-08-26 14:27:13 +02:00