Skip to content

feat: Add strict setting to opt-into v1 behavior#138

Merged
sondrelg merged 2 commits intomainfrom
strict
Oct 16, 2022
Merged

feat: Add strict setting to opt-into v1 behavior#138
sondrelg merged 2 commits intomainfrom
strict

Conversation

@sondrelg
Copy link
Copy Markdown
Member

Closes #137

Copy link
Copy Markdown
Contributor

@radoering radoering left a comment

Choose a reason for hiding this comment

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

It works as expected.

Apart from some minor documentation nitpicks, LGTM. 👍

Comment thread README.md Outdated
Comment thread tests/test_strict.py Outdated

def test_strict_mode():
"""
Assert that imports are flagged for TC001 on a per-module basis by default,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It seems the test is for TC002.

@sondrelg
Copy link
Copy Markdown
Member Author

Yep you're right about both. Thanks!

I'll merge this now, and try to dig into #139 a little before releasing v2.2.0

@sondrelg sondrelg merged commit 64550a7 into main Oct 16, 2022
@sondrelg sondrelg deleted the strict branch October 16, 2022 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No warning if only some imports from a module can be moved into a type-checking block

2 participants