core/script/hassfest
Volker Stolz 5e250d8a76
Augment SyntaxError raised during dependency collection with offending filename (#109204)
* Capture parsing exception when collecting dependencies and augment with offending filename.

Whereas before any syntax error in some component-file would result in an opaque SyntaxError without pointing out the file, now the result will show as:

```
  File "/usr/local/Cellar/python@3.11/3.11.7_1/Frameworks/Python.framework/Versions/3.11/lib/python3.11/multiprocessing/pool.py", line 873, in next
    raise value
SyntaxError: Can't parse file homeassistant/components/your/file.py
```

* tweak

* D'oh, had pre-commit hook still off.

---------

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-04-23 17:13:25 +02:00
..
__init__.py
__main__.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
application_credentials.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
bluetooth.py Improve loops and lists (#113269) 2024-03-14 10:22:20 +01:00
brand.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
codeowners.py Mark core as codeowner for some folders (#114357) 2024-03-28 10:54:10 +01:00
config_flow.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
config_schema.py Use a constant to reference `homeassistant` domain (#113889) 2024-03-23 19:58:39 +01:00
coverage.py Ignore coverage for aiohttp_resolver backport helper (#115177) 2024-04-12 16:33:05 +02:00
dependencies.py Augment SyntaxError raised during dependency collection with offending filename (#109204) 2024-04-23 17:13:25 +02:00
dhcp.py Improve loops and lists (#113269) 2024-03-14 10:22:20 +01:00
docker.py Remove pip jemalloc config from dockerfile (#115206) 2024-04-09 15:08:55 +02:00
icons.py Clean up unneeded ruff noqa directives (#113616) 2024-03-16 09:48:37 -10:00
json.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
manifest.py Enable ruff RUF005 and fix occurrences (#113589) 2024-03-16 07:37:20 -10:00
metadata.py Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
model.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
mqtt.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
mypy_config.py Set platform for mypy (#115638) 2024-04-15 14:12:26 +02:00
requirements.py Generate requirements per supported architecture (#115708) 2024-04-22 19:23:08 +02:00
serializer.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
services.py Fix hassfest service icons check for custom integrations (#114389) 2024-03-28 16:20:20 +01:00
ssdp.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
translations.py Remove unused legacy state translations (#112023) 2024-04-14 07:13:17 -04:00
usb.py Improve loops and lists (#113269) 2024-03-14 10:22:20 +01:00
zeroconf.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00