mirror of
https://github.com/JarvyJ/HomeIntent.git
synced 2022-02-11 01:01:05 +03:00
Ended up changing how the extract settings worked a bit. Now there's a custom validator to ensure that the value doesn't come in as `null`. This mostly forces the API to act more like just passing human-ish values to the config.yaml. I ran into some fun issues due to https://github.com/samuelcolvin/pydantic/issues/990, so went with it defaulting to a custom class that I end up manually removing from the model before dumping back out as JSON or YAML. Also, now I have a lot of the fields expressed in code. Going to try creating dynamic forms (and maybe build the settings in the docs later). Still a lot of work to do in the frontend. This PR was supposed to be for that, but a lot more backend issues kept cropping up!
22 lines
657 B
TOML
22 lines
657 B
TOML
[tool.black]
|
|
line-length = 100
|
|
target-version = ['py38']
|
|
|
|
[tool.isort]
|
|
# https://github.com/PyCQA/isort/wiki/isort-Settings
|
|
profile = "black"
|
|
|
|
# will group `import x` and `from x import` of the same module.
|
|
force_sort_within_sections = true
|
|
|
|
combine_as_imports = true
|
|
|
|
[tool.pylint.'MESSAGES CONTROL']
|
|
extension-pkg-whitelist = "pydantic"
|
|
max-line-length = 100
|
|
disable = "C0114, C0115, C0116, W0707, W1203, R1705, R1720"
|
|
|
|
[tool.pylint.MASTER]
|
|
jobs=2
|
|
init-hook='from pylint.config.find_default_config_files import find_default_config_files; from pathlib import Path; import sys; sys.path.append(str(Path(Path(list(find_default_config_files())[0]).parent)))'
|