Skip to content

Refactor the project - #213

Merged
sobolevn merged 12 commits into
typeddjango:masterfrom
Khabib73:patch-4
Oct 30, 2026
Merged

sobolevn merged 12 commits into
typeddjango:masterfrom
Khabib73:patch-4

Conversation

@Khabib73

Copy link
Copy Markdown
Contributor

No description provided.

@Khabib73
Khabib73 marked this pull request as draft October 28, 2026 20:10
Comment thread pytest_mypy_plugins/item.py Outdated
except TypecheckAssertionError:
if not self.expect_fail:
raise e
raise TypecheckAssertionError

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
raise TypecheckAssertionError
raise

Comment thread setup.py Outdated
"pytest>=7.0.0",
"pyyaml",
"regex",
# TODO: should we use tomli?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

yes, we should :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Ok, I also a little scale project, I create new dir logic, into I add pure functions, it's more seems good pattern for others project like dotenv-linter and wps.

@Khabib73
Khabib73 marked this pull request as ready for review October 30, 2026 08:09
@Khabib73
Khabib73 requested a review from sobolevn October 30, 2026 08:09
@Khabib73

Khabib73 commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor Author

Improve architecrutre, now we use logic directory, constants module, types module
Improve codebase:

  • Improve naming
  • Simplify functions
  • Create local constants for modules
  • something else I forgot to add

Comment thread pytest_mypy_plugins/configs.py Outdated
from typing import Any, Final

import tomlkit
import tomli

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

oh, right. sorry, this was my mistake. we should not do that.
new deps are not really required here. let's keep this as it was.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That’s even better!

@Khabib73
Khabib73 requested a review from sobolevn October 30, 2026 12:11

@sobolevn sobolevn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@sobolevn sobolevn changed the title Update utils.py Refactor the project Oct 30, 2026
@sobolevn
sobolevn merged commit 6510c12 into typeddjango:master Oct 30, 2026
22 checks passed
@Khabib73

Copy link
Copy Markdown
Contributor Author

prepare to add wps 🥰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants