home-assistant-core/script
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
..
hassfest Augment SyntaxError raised during dependency collection with offending filename (#109204) 2024-04-23 17:13:25 +02:00
scaffold Enable Ruff INP001 (#115082) 2024-04-08 15:43:58 +02:00
translations Filter out fuzzy translations from Lokalise (#114968) 2024-04-08 10:04:16 +02:00
__init__.py
alexa_locales.py Add script to compare alexa locales with upstream (#114247) 2024-04-18 13:41:34 +02:00
bootstrap Remove legacy pip resolver (#92124) 2023-04-27 22:39:29 +02:00
check_dirty
check_format Switch formatting from black to ruff-format (#102893) 2023-11-27 14:38:59 +01:00
const.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
countries.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
currencies.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
gen_requirements_all.py Generate requirements per supported architecture (#115708) 2024-04-22 19:23:08 +02:00
inspect_schemas.py Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
install_integration_requirements.py Enable Ruff RET504 (#114528) 2024-04-06 11:07:37 +02:00
languages.py Add empty line after module docstring (2) [other] (#112738) 2024-03-08 19:16:38 +01:00
lint Drop flake8 in favor of Ruff (#89863) 2023-03-17 13:30:06 +01:00
lint_and_test.py Enable Ruff TRY201 (#114269) 2024-03-28 10:18:07 +01:00
microsoft_tts.py Add empty line after module docstring [helpers + other] (#112707) 2024-03-08 10:36:11 -05:00
monkeytype
ruff.toml Update ruff to 0.2.1 (#109796) 2024-02-06 15:41:34 +01:00
run-in-env.sh Set default for OSTYPE in run-in-env script (#109731) 2024-02-05 20:23:52 +01:00
server Remove translations from Core (#87543) 2023-02-06 15:06:43 +01:00
setup Update build system (#95237) 2023-06-26 19:03:56 +02:00
split_tests.py Replace pytest-test-groups by custom tests splitter (#114381) 2024-04-03 15:43:12 +02:00
update
util.py Add task to install all requirements of an integration (#108262) 2024-01-18 22:11:02 +01:00
version_bump.py Fix version_bump --set-nightly-version (#114304) 2024-03-27 14:45:28 +01:00