hasl-sensor / integration

Swedish Public Transport Sensor (HASL). Formerly named HomeAssistant SL Sensor
https://hasl.sorlov.com
Apache License 2.0
36 stars 8 forks source link

Dev to main 3.0.5 #37

Closed DSorlov closed 2 years ago

DSorlov commented 2 years ago

Fixes

Changes

pep8speaks commented 2 years ago

Hello @DSorlov! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 204:80: E501 line too long (134 > 79 characters) Line 206:33: W291 trailing whitespace Line 208:80: E501 line too long (86 > 79 characters) Line 209:21: E225 missing whitespace around operator

Line 44:12: E713 test for membership should be 'not in' Line 46:80: E501 line too long (87 > 79 characters) Line 100:80: E501 line too long (81 > 79 characters) Line 102:80: E501 line too long (195 > 79 characters) Line 111:80: E501 line too long (81 > 79 characters) Line 176:38: W291 trailing whitespace

Line 96:80: E501 line too long (107 > 79 characters) Line 114:80: E501 line too long (101 > 79 characters) Line 122:80: E501 line too long (94 > 79 characters) Line 127:80: E501 line too long (133 > 79 characters) Line 131:80: E501 line too long (89 > 79 characters) Line 132:80: E501 line too long (87 > 79 characters) Line 134:17: E722 do not use bare 'except' Line 135:80: E501 line too long (137 > 79 characters) Line 138:80: E501 line too long (114 > 79 characters) Line 139:80: E501 line too long (111 > 79 characters) Line 141:80: E501 line too long (88 > 79 characters) Line 142:80: E501 line too long (92 > 79 characters) Line 177:80: E501 line too long (81 > 79 characters)

Line 76:80: E501 line too long (93 > 79 characters) Line 77:80: E501 line too long (92 > 79 characters) Line 88:80: E501 line too long (106 > 79 characters) Line 89:80: E501 line too long (88 > 79 characters) Line 91:80: E501 line too long (106 > 79 characters) Line 92:80: E501 line too long (88 > 79 characters) Line 104:80: E501 line too long (123 > 79 characters) Line 105:80: E501 line too long (124 > 79 characters) Line 120:80: E501 line too long (81 > 79 characters) Line 206:80: E501 line too long (174 > 79 characters) Line 335:80: E501 line too long (94 > 79 characters) Line 340:24: E225 missing whitespace around operator Line 352:80: E501 line too long (176 > 79 characters) Line 550:80: E501 line too long (209 > 79 characters) Line 654:80: E501 line too long (180 > 79 characters) Line 755:80: E501 line too long (81 > 79 characters) Line 757:80: E501 line too long (195 > 79 characters) Line 766:80: E501 line too long (81 > 79 characters) Line 814:36: E713 test for membership should be 'not in'

sonarcloud[bot] commented 2 years ago

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
13.0% 13.0% Duplication