Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gtfs typing and logger issues #22572

Merged
merged 1 commit into from
Mar 31, 2019

Conversation

renemarc
Copy link
Contributor

Description:

Some code cleanup requests where raised in the latest merged GTFS commit. This new PR aims to address them, including:

  • Clear all typing issues.
  • Respect logger levels and format.
  • Simplify some non-pythonic lines.

This sensor now passes mypy testing, but does so by ignoring two lines with # type: ignore.

Related issue (if applicable): fixes issues raised by @MartinHjelmare in #20966

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.

@MartinHjelmare MartinHjelmare changed the title Fix typing and logger issues Fix gtfs typing and logger issues Mar 31, 2019
@renemarc renemarc force-pushed the gtfs-code-cleanup branch from af69095 to cf20e68 Compare March 31, 2019 13:59
@MartinHjelmare
Copy link
Member

Please don't squash commits after review has started to make it easier for readers to track changes.

@MartinHjelmare
Copy link
Member

Can be merged when build passes.

@robbiet480 robbiet480 merged commit 755571a into home-assistant:dev Mar 31, 2019
@ghost ghost removed the in progress label Mar 31, 2019
@renemarc renemarc deleted the gtfs-code-cleanup branch April 1, 2019 13:47
@renemarc renemarc mentioned this pull request Apr 1, 2019
3 tasks
unibeck pushed a commit to unibeck/home-assistant that referenced this pull request Apr 7, 2019
## Description:
Some code cleanup requests where raised in the [latest merged GTFS commit](home-assistant@9153e3b). This new PR aims to address them, including:
- Clear all typing issues.
- Respect logger levels and format.
- Simplify some non-pythonic lines.

This sensor now passes `mypy` testing, but does so by ignoring two lines with `# type: ignore`.

**Related issue (if applicable):** fixes issues raised by @MartinHjelmare in home-assistant#20966

## Checklist:
  - [x] The code change is tested and works locally.
  - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
  - [x] There is no commented out code in this PR.

[ex-requir]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard/__init__.py#L14
[ex-import]: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/keyboard/__init__.py#L23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants