Skip to content

Commit

Permalink
Make flake8 happy
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanthoss committed Aug 17, 2024
1 parent d065a34 commit d60714c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions bme280_mqtt_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)

Expand Down
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
extend-ignore = E203,E266,E501,W503
max-line-length = 120

0 comments on commit d60714c

Please sign in to comment.