tortoise / tortoise-orm

Familiar asyncio ORM for python, built with relations in mind
https://tortoise.github.io
Apache License 2.0
4.38k stars 356 forks source link

Migrate lint/format tool from isort/black to ruff and run unittest of examples in ci #1596

Closed waketzheng closed 2 weeks ago

waketzheng commented 2 months ago
  1. Fully migrate to Ruff, remove black, use ruff format to make style;
  2. Auto run unittests in examples when running ci

Description

Ruff is much more faster, we can fully migrate to it as the fastapi's lint script

Motivation and Context

  1. Unittests in examples should also be run in ci
  2. Lint/format by only ruff is better than by isort+black+ruff.

How Has This Been Tested?

make ci

Checklist:

coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 8889506316

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
tortoise/contrib/mysql/fields.py 0 1 0.0%
<!-- Total: 4 5 80.0% -->
Totals Coverage Status
Change from base Build 8879569614: -0.005%
Covered Lines: 5768
Relevant Lines: 6464

💛 - Coveralls