mirror of
https://github.com/micahqcade/custom_vesync.git
synced 2025-03-12 07:40:07 +01:00
add trunk linting.
This commit is contained in:
parent
0afbef7f11
commit
dbfc03fcaf
3
.flake8
Normal file
3
.flake8
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Autoformatter friendly flake8 config (all formatting rules disabled)
|
||||||
|
[flake8]
|
||||||
|
extend-ignore = E1, E2, E3, E501, W1, W2, W3, W5
|
2
.gitpod.Dockerfile
vendored
2
.gitpod.Dockerfile
vendored
@ -5,4 +5,4 @@ USER gitpod
|
|||||||
RUN pyenv install 3.9.7 &&\
|
RUN pyenv install 3.9.7 &&\
|
||||||
pyenv global 3.9.7 &&\
|
pyenv global 3.9.7 &&\
|
||||||
echo "export PIP_USER=no" >> /home/gitpod/.bashrc &&\
|
echo "export PIP_USER=no" >> /home/gitpod/.bashrc &&\
|
||||||
python -m pip install virtualenv
|
python -m pip install --no-cache-dir virtualenv==20.14.1
|
||||||
|
7
.hadolint.yaml
Normal file
7
.hadolint.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# Following source doesn't work in most setups
|
||||||
|
ignored:
|
||||||
|
- SC1090
|
||||||
|
- SC1091
|
||||||
|
|
||||||
|
/home/vlb/temp/HAcore/custom_vesync/.venv/local/bin
|
||||||
|
/home/vlb/temp/HAcore/custom_vesync/.venv/bin
|
2
.isort.cfg
Normal file
2
.isort.cfg
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[settings]
|
||||||
|
profile=black
|
10
.markdownlint.yaml
Normal file
10
.markdownlint.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# Autoformatter friendly markdownlint config (all formatting rules disabled)
|
||||||
|
default: true
|
||||||
|
blank_lines: false
|
||||||
|
bullet: false
|
||||||
|
html: false
|
||||||
|
indentation: false
|
||||||
|
line_length: false
|
||||||
|
spaces: false
|
||||||
|
url: false
|
||||||
|
whitespace: false
|
1
.trunk/.gitignore
vendored
Normal file
1
.trunk/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*out
|
15
.trunk/trunk.yaml
Normal file
15
.trunk/trunk.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
version: 0.1
|
||||||
|
cli:
|
||||||
|
version: 0.11.0-beta
|
||||||
|
lint:
|
||||||
|
enabled:
|
||||||
|
- actionlint@1.6.9
|
||||||
|
- black@22.3.0
|
||||||
|
- flake8@4.0.1
|
||||||
|
- gitleaks@8.3.0
|
||||||
|
- hadolint@2.8.0
|
||||||
|
- isort@5.9.3
|
||||||
|
- markdownlint@0.31.1
|
||||||
|
- prettier@2.5.1
|
||||||
|
- taplo-fmt@release-cli-0.6.0
|
||||||
|
- taplo@release-cli-0.6.0
|
@ -1,9 +1,8 @@
|
|||||||
"""Config flow utilities."""
|
"""Config flow utilities."""
|
||||||
from collections import OrderedDict
|
|
||||||
import logging
|
import logging
|
||||||
|
from collections import OrderedDict
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
from homeassistant.components import dhcp
|
from homeassistant.components import dhcp
|
||||||
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
|
||||||
|
@ -1,17 +1,15 @@
|
|||||||
"""VeSync API Device Library."""
|
"""VeSync API Device Library."""
|
||||||
|
|
||||||
from itertools import chain
|
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
import time
|
import time
|
||||||
|
from itertools import chain
|
||||||
from typing import Tuple
|
from typing import Tuple
|
||||||
|
|
||||||
from . import (
|
from . import vesyncbulb as bulb_mods
|
||||||
vesyncbulb as bulb_mods,
|
from . import vesyncfan as fan_mods
|
||||||
vesyncfan as fan_mods,
|
from . import vesyncoutlet as outlet_mods
|
||||||
vesyncoutlet as outlet_mods,
|
from . import vesyncswitch as switch_mods
|
||||||
vesyncswitch as switch_mods,
|
|
||||||
)
|
|
||||||
from .helpers import Helpers
|
from .helpers import Helpers
|
||||||
from .vesyncbasedevice import VeSyncBaseDevice
|
from .vesyncbasedevice import VeSyncBaseDevice
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
"""Etekcity Smart Light Bulb."""
|
"""Etekcity Smart Light Bulb."""
|
||||||
|
|
||||||
from abc import ABCMeta, abstractmethod
|
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
from abc import ABCMeta, abstractmethod
|
||||||
from typing import Dict, Union
|
from typing import Dict, Union
|
||||||
|
|
||||||
from .helpers import Helpers as helpers
|
from .helpers import Helpers as helpers
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
"""Etekcity Outlets."""
|
"""Etekcity Outlets."""
|
||||||
|
|
||||||
from abc import ABCMeta, abstractmethod
|
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import time
|
import time
|
||||||
|
from abc import ABCMeta, abstractmethod
|
||||||
|
|
||||||
from .helpers import Helpers
|
from .helpers import Helpers
|
||||||
from .vesyncbasedevice import VeSyncBaseDevice
|
from .vesyncbasedevice import VeSyncBaseDevice
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
"""Classes for VeSync Switch Devices."""
|
"""Classes for VeSync Switch Devices."""
|
||||||
|
|
||||||
from abc import ABCMeta, abstractmethod
|
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
from abc import ABCMeta, abstractmethod
|
||||||
from typing import Dict, Union
|
from typing import Dict, Union
|
||||||
|
|
||||||
from .helpers import Helpers as helpers
|
from .helpers import Helpers as helpers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user