Skip to content

Commit d1f4af6

Browse files
authored
Add setup-cfg-fmt to pre-commit (#984)
1 parent 546b7ed commit d1f4af6

File tree

2 files changed

+26
-17
lines changed

2 files changed

+26
-17
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ repos:
1313
- id: check-toml
1414
- id: end-of-file-fixer
1515
- id: trailing-whitespace
16+
- repo: https://github.com/asottile/setup-cfg-fmt
17+
rev: v2.2.0
18+
hooks:
19+
- id: setup-cfg-fmt
20+
args:
21+
- --include-version-classifiers
1622
- repo: https://github.com/asottile/pyupgrade
1723
rev: v3.3.1
1824
hooks:

setup.cfg

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
[metadata]
2-
name = django-mysql
2+
name = django_mysql
33
version = 4.8.0
44
description = Django-MySQL extends Django's built-in MySQL and MariaDB support their specific features not available on other databases.
55
long_description = file: README.rst
66
long_description_content_type = text/x-rst
7+
url = https://github.com/adamchainz/django-mysql
78
author = Adam Johnson
89
author_email = [email protected]
9-
url = https://github.com/adamchainz/django-mysql
10-
project_urls =
11-
Documentation = https://django-mysql.readthedocs.io/
12-
Changelog = https://github.com/adamchainz/django-mysql/blob/main/HISTORY.rst
13-
Twitter = https://twitter.com/adamchainz
1410
license = MIT
15-
keywords =
16-
Django
17-
MySQL
18-
MariaDB
11+
license_file = LICENSE
1912
classifiers =
2013
Development Status :: 5 - Production/Stable
2114
Framework :: Django
@@ -26,23 +19,33 @@ classifiers =
2619
License :: OSI Approved :: MIT License
2720
Natural Language :: English
2821
Operating System :: OS Independent
29-
Programming Language :: Python :: 3 :: Only
3022
Programming Language :: Python :: 3
23+
Programming Language :: Python :: 3 :: Only
3124
Programming Language :: Python :: 3.7
3225
Programming Language :: Python :: 3.8
3326
Programming Language :: Python :: 3.9
3427
Programming Language :: Python :: 3.10
3528
Programming Language :: Python :: 3.11
29+
Programming Language :: Python :: Implementation :: CPython
3630
Topic :: Database
3731
Typing :: Typed
32+
keywords =
33+
Django
34+
MySQL
35+
MariaDB
36+
project_urls =
37+
Documentation = https://django-mysql.readthedocs.io/
38+
Changelog = https://github.com/adamchainz/django-mysql/blob/main/HISTORY.rst
39+
Twitter = https://twitter.com/adamchainz
3840
3941
[options]
40-
package_dir=
41-
=src
4242
packages = find:
43-
include_package_data = True
44-
install_requires = Django>=3.2
43+
install_requires =
44+
Django>=3.2
4545
python_requires = >=3.7
46+
include_package_data = True
47+
package_dir =
48+
=src
4649
zip_safe = False
4750
4851
[options.packages.find]
@@ -57,8 +60,8 @@ source =
5760
5861
[coverage:paths]
5962
source =
60-
src
61-
.tox/**/site-packages
63+
src
64+
.tox/**/site-packages
6265
6366
[coverage:report]
6467
show_missing = True

0 commit comments

Comments
 (0)