Skip to content

Conversation

@rytilahti
Copy link
Member

Re-enables https://docs.astral.sh/ruff/rules/unused-import/ for tests to clean up unused imports.



def _get_subclasses(of_class):
import kasa
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if this could cause some issues, but tests pass locally.

@codecov
Copy link

codecov bot commented Jan 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9e6896a) 87.96% compared to head (d724f98) 87.96%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #724   +/-   ##
=======================================
  Coverage   87.96%   87.96%           
=======================================
  Files          41       41           
  Lines        3632     3632           
  Branches      910      910           
=======================================
  Hits         3195     3195           
  Misses        362      362           
  Partials       75       75           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rytilahti rytilahti force-pushed the janitor/remove_f401_for_tests branch from befd419 to 510f7f7 Compare January 29, 2024 19:27
@rytilahti rytilahti merged commit 55525fc into python-kasa:master Jan 29, 2024
@rytilahti rytilahti deleted the janitor/remove_f401_for_tests branch January 29, 2024 23:16
rytilahti added a commit to rytilahti/python-kasa that referenced this pull request Feb 2, 2024
[Full Changelog](python-kasa/python-kasa@0.6.2...0.6.2.1)

**Fixed bugs:**

- Avoid crashing on childdevice property accesses [\python-kasa#732](python-kasa#732) (@rytilahti)

**Merged pull requests:**

- Retain last two chars for children device\_id [\python-kasa#733](python-kasa#733) (@rytilahti)
- Add TP15 fixture [\python-kasa#730](python-kasa#730) (@bdraco)
- Add TP25 fixtures [\python-kasa#729](python-kasa#729) (@bdraco)
- Various test code cleanups [\python-kasa#725](python-kasa#725) (@rytilahti)
- Unignore F401 for tests [\python-kasa#724](python-kasa#724) (@rytilahti)
@rytilahti rytilahti mentioned this pull request Feb 2, 2024
rytilahti added a commit that referenced this pull request Feb 2, 2024
[Full Changelog](0.6.2...0.6.2.1)

**Fixed bugs:**

- Avoid crashing on childdevice property accesses [\#732](#732) (@rytilahti)

**Merged pull requests:**

- Retain last two chars for children device\_id [\#733](#733) (@rytilahti)
- Add TP15 fixture [\#730](#730) (@bdraco)
- Add TP25 fixtures [\#729](#729) (@bdraco)
- Various test code cleanups [\#725](#725) (@rytilahti)
- Unignore F401 for tests [\#724](#724) (@rytilahti)
@sdb9696 sdb9696 added the maintenance Project improvements and maintenance label Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Project improvements and maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants