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

[DI-2708] Ruff ALL rules #91

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

bulya
Copy link
Collaborator

@bulya bulya commented Oct 23, 2024

Ruff ALL rules

The main change is select = ["ALL"] as ruff rules, with some minimal exceptions.
Adds a lot of type annotations that would be helpful for further mypy integration.

Also, running make api-check for checking linting and formatting of the generated default project.

@alexryabtsev
Copy link
Collaborator

IMHO All these type annotations litter code a lot, especially things like:

  • request: Request
  • mocker: MockerFixture

What do you think about using an if statement with TYPE_CHECKING?

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