diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index f54aa20..a484664 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -24,6 +24,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LINTER_RULES_PATH: / PYTHON_BLACK_CONFIG_FILE: pyproject.toml + PYTHON_FLAKE8_CONFIG_FILE: tox.ini PYTHON_ISORT_CONFIG_FILE: pyproject.toml VALIDATE_PYTHON_BLACK: true VALIDATE_PYTHON_FLAKE8: true diff --git a/bme280_mqtt_daemon.py b/bme280_mqtt_daemon.py index 4d0f5e5..eec67c1 100755 --- a/bme280_mqtt_daemon.py +++ b/bme280_mqtt_daemon.py @@ -133,8 +133,8 @@ def publish_mqtt( hum = sensor_data.humidity + options.hoffset temp_C = sensor_data.temperature + options.toffset - temp_F = 9.0 / 5.0 * temp_C + 32 - temp_K = temp_C + 273.15 + # temp_F = 9.0 / 5.0 * temp_C + 32 + # temp_K = temp_C + 273.15 press_A = sensor_data.pressure + options.poffset @@ -332,8 +332,8 @@ def start_bme280_sensor(args): args.verbose, ) first_read = False - done_time = time.time() - # print("difference = {0}".format(done_time - curr_time)) + # done_time = time.time() + # print("difference = {0}".format(done_time - curr_time)) time.sleep(SLEEP_TIME) diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..bcb6d8c --- /dev/null +++ b/tox.ini @@ -0,0 +1,3 @@ +[flake8] +extend-ignore = E203,E266,E501,W503 +max-line-length = 120