components/ads131m08/git_errors.txt
2026-05-01 15:36:27 +02:00

105 lines
4.3 KiB
Plaintext

ruff (legacy alias)......................................................Failed
- hook id: ruff
- exit code: 1
- files were modified by this hook
F401 `esphome.const.CONF_ID` imported but unused; consider removing, adding to `__all__`, or using a redundant alias
--> esphome/components/ads131m08/sensor_rms/__init__.py:6:5
|
4 | from esphome.const import (
5 | CONF_CHANNEL,
6 | CONF_ID,
| ^^^^^^^
7 | CONF_NAME,
8 | DEVICE_CLASS_VOLTAGE,
|
help: Use an explicit re-export: `CONF_ID as CONF_ID`
E402 Module level import not at top of file
--> esphome/components/ads131m08/sensor_rms/__init__.py:20:1
|
18 | MAX_CHANNELS = 12
19 |
20 | from .. import CONF_ADS131M08_ID, ads131m08_ns
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 |
22 | AUTO_LOAD = [
|
Found 6 errors (4 fixed, 2 remaining).
ruff format..............................................................Failed
- hook id: ruff-format
- files were modified by this hook
3 files reformatted
flake8...................................................................Failed
- hook id: flake8
- exit code: 1
esphome/components/ads131m08/sensor_rms/__init__.py:4:1: F401 'esphome.const.CONF_ID' imported but unused
esphome/components/ads131m08/sensor_rms/__init__.py:20:1: E402 module level import not at top of file
don't commit to branch...................................................Failed
- hook id: no-commit-to-branch
- exit code: 1
fix end of files.........................................................Failed
- hook id: end-of-file-fixer
- exit code: 1
- files were modified by this hook
Fixing esphome/components/ads131m08/README.md
Fixing esphome/components/ads131m08/ads131m08.h
Fixing esphome/components/ads131m08/uint_str.h
trim trailing whitespace.................................................Failed
- hook id: trailing-whitespace
- exit code: 1
- files were modified by this hook
Fixing esphome/components/ads131m08/ads131m08_defs.h
Fixing esphome/components/ads131m08/README.md
Fixing esphome/components/ads131m08/sensor/ads131m08_sensor.cpp
Fixing esphome/components/ads131m08/ads131m08.cpp
Fixing esphome/components/ads131m08/ads131m08.h
Fixing esphome/components/ads131m08/sensor/ads131m08_sensor.h
Fixing esphome/components/ads131m08/uint_str.h
pyupgrade................................................................Passed
yamllint.............................................(no files to check)Skipped
clang-format.............................................................Failed
- hook id: clang-format
- files were modified by this hook
pylint...................................................................Failed
- hook id: pylint
- exit code: 16
************* Module esphome.components.ads131m08.sensor_rms
esphome/components/ads131m08/sensor_rms/__init__.py:20:0: C0413: Import "from .. import CONF_ADS131M08_ID, ads131m08_ns" should be placed at the top of the module (wrong-import-position)
Update clang-tidy hash...............................(no files to check)Skipped
ci-custom................................................................Failed
- hook id: ci-custom
- exit code: 2
### File esphome/components/ads131m08/__init__.py
esphome/components/ads131m08/__init__.py:13:2: lint: Constant CONF_OSR does not match value oversampling_ratio! Please make sure the constant's name matches its value!
### File esphome/components/ads131m08/sensor/__init__.py
esphome/components/ads131m08/sensor/__init__.py:14:2: lint: Constant CONF_OFFSET_CAL does not match value offset_calibration! Please make sure the constant's name matches its value!
esphome/components/ads131m08/sensor/__init__.py:16:2: lint: Constant CONF_GAIN_CAL does not match value gain_calibration! Please make sure the constant's name matches its value!
esphome/components/ads131m08/sensor/__init__.py:17:2: lint: Constant CONF_PHASE_CAL does not match value phase_calibration! Please make sure the constant's name matches its value!
esphome/components/ads131m08/sensor/__init__.py:18:2: lint: Constant CONF_MUX_INP does not match value input_select! Please make sure the constant's name matches its value!
### File esphome/components/ads131m08/sensor_rms/__init__.py
esphome/components/ads131m08/sensor_rms/__init__.py:16:2: lint: Constant CONF_CALC_RMS does not match value read_rms! Please make sure the constant's name matches its value!