aio-libs / aiomysql

aiomysql is a library for accessing a MySQL database from the asyncio
https://aiomysql.rtfd.io
MIT License
1.73k stars 253 forks source link

Add pre-commit config for pyupgrade --py37-plus #931

Closed Nothing4You closed 1 year ago

Nothing4You commented 1 year ago

What do these changes do?

Add pre-commit config for pyupgrade.

This also allows using the pre-commit.ci PR integration.

Are there changes in behavior for the user?

No, optional helper for aiomysql developers.

codecov[bot] commented 1 year ago

Codecov Report

Merging #931 (04c04fd) into master (bcc2be3) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #931   +/-   ##
=======================================
  Coverage   93.64%   93.64%           
=======================================
  Files          36       36           
  Lines        5538     5538           
  Branches      895      895           
=======================================
  Hits         5186     5186           
  Misses        262      262           
  Partials       90       90           
Flag Coverage Δ
CI-GHA 93.24% <ø> (ø)
DB-mariadb-10.3 90.30% <ø> (ø)
DB-mariadb-10.4 90.30% <ø> (ø)
DB-mariadb-10.5 90.28% <ø> (ø)
DB-mariadb-10.6 90.28% <ø> (ø)
DB-mariadb-10.7 90.28% <ø> (ø)
DB-mariadb-10.8 90.28% <ø> (ø)
DB-mysql-5.7 90.98% <ø> (ø)
DB-mysql-8.0 92.37% <ø> (ø)
OS-Linux 93.24% <ø> (ø)
Py-3.10.11 93.15% <ø> (ø)
Py-3.11.3 93.15% <ø> (ø)
Py-3.7.16 92.78% <ø> (ø)
Py-3.8.16 93.18% <ø> (ø)
Py-3.9.16 93.02% <ø> (ø)
VM-ubuntu-latest 93.24% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.3 90.21% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.4 90.21% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.5 90.19% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.6 90.19% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.7 90.19% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.8 90.19% <ø> (ø)
ubuntu-latest_3.10_mysql-5.7 90.89% <ø> (ø)
ubuntu-latest_3.10_mysql-8.0 92.28% <ø> (ø)
ubuntu-latest_3.11_mariadb-10.3 90.21% <ø> (ø)
ubuntu-latest_3.11_mariadb-10.4 90.21% <ø> (ø)
ubuntu-latest_3.11_mariadb-10.5 90.19% <ø> (ø)
ubuntu-latest_3.11_mariadb-10.6 90.19% <ø> (ø)
ubuntu-latest_3.11_mariadb-10.7 90.19% <ø> (ø)
ubuntu-latest_3.11_mariadb-10.8 90.19% <ø> (ø)
ubuntu-latest_3.11_mysql-5.7 90.89% <ø> (ø)
ubuntu-latest_3.11_mysql-8.0 92.28% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.3 89.66% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.4 89.66% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.5 89.64% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.6 89.64% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.7 89.64% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.8 89.64% <ø> (ø)
ubuntu-latest_3.7_mysql-5.7 90.39% <ø> (ø)
ubuntu-latest_3.7_mysql-8.0 91.86% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.3 90.25% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.4 90.25% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.5 90.23% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.6 90.23% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.7 90.23% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.8 90.23% <ø> (ø)
ubuntu-latest_3.8_mysql-5.7 90.94% <ø> (ø)
ubuntu-latest_3.8_mysql-8.0 92.31% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.3 90.09% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.4 90.09% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.5 90.07% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.6 90.07% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.7 90.07% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.8 90.07% <ø> (ø)
ubuntu-latest_3.9_mysql-5.7 90.77% <ø> (ø)
ubuntu-latest_3.9_mysql-8.0 92.15% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more