seddonym / import-linter

Import Linter allows you to define and enforce rules for the internal and external imports within your Python project.
https://import-linter.readthedocs.io/
BSD 2-Clause "Simplified" License
664 stars 45 forks source link

Test conditional imports can be handled #183

Closed jthevos closed 10 months ago

jthevos commented 1 year ago

This PR follows this one here

seddonym commented 1 year ago

I've left some comments on the upstream PR. As things stand I'm not sure this is quite the right direction, but let's leave it open for now.

seddonym commented 10 months ago

Excluding imports that are under a type checking guard is now available in v1.12.1, so I'm closing this ticket. Thanks for your contribution though!