Skip to content

refactor: migrate lint tool from isort+black to ruff#5

Merged
waketzheng merged 10 commits intotortoise:mainfrom
waketzheng:use-ruff
Jun 14, 2025
Merged

refactor: migrate lint tool from isort+black to ruff#5
waketzheng merged 10 commits intotortoise:mainfrom
waketzheng:use-ruff

Conversation

@waketzheng
Copy link
Contributor

Base on #4

  1. ruff is faster that isort+black when make style, and we should reduce dev deps.
  2. only install tomlkit for python version less than 3.11
  3. add from __future__ import annotations to tortoise_cli/cli.py and run ruff check --unsafe-fixes --fix to apply future type hints

@waketzheng waketzheng merged commit e8b26df into tortoise:main Jun 14, 2025
@waketzheng waketzheng deleted the use-ruff branch June 14, 2025 09:13
@waketzheng waketzheng mentioned this pull request Jun 16, 2025
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.

1 participant