diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cad111d1..2185dffb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: 1.8.0 + rev: 2.0.4 hooks: - id: pyproject-fmt - repo: https://github.com/tox-dev/tox-ini-fmt @@ -38,7 +38,7 @@ repos: - id: pyupgrade args: [--py38-plus] - repo: https://github.com/adamchainz/django-upgrade - rev: 1.16.0 + rev: 1.17.0 hooks: - id: django-upgrade args: [--target-version, '3.2'] diff --git a/pyproject.toml b/pyproject.toml index 40124910..ce8e404f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,14 +8,16 @@ requires = [ name = "django-mysql" version = "4.13.0" description = "Django-MySQL extends Django's built-in MySQL and MariaDB support their specific features not available on other databases." -readme = {file = "README.rst", content-type = "text/x-rst"} +readme = { file = "README.rst", content-type = "text/x-rst" } keywords = [ "Django", "MariaDB", "MySQL", ] -license = {text = "MIT"} -authors = [{name = "Adam Johnson", email = "me@adamj.eu"}] +license = { text = "MIT" } +authors = [ + { name = "Adam Johnson", email = "me@adamj.eu" }, +] requires-python = ">=3.8" classifiers = [ "Development Status :: 5 - Production/Stable", @@ -40,17 +42,16 @@ classifiers = [ "Typing :: Typed", ] dependencies = [ - "Django>=3.2", + "django>=3.2", ] -[project.urls] -Changelog = "https://django-mysql.readthedocs.io/en/latest/changelog.html" -Documentation = "https://django-mysql.readthedocs.io/" -Funding = "https://adamj.eu/books/" -Repository = "https://github.com/adamchainz/django-mysql" +urls.Changelog = "https://django-mysql.readthedocs.io/en/latest/changelog.html" +urls.Documentation = "https://django-mysql.readthedocs.io/" +urls.Funding = "https://adamj.eu/books/" +urls.Repository = "https://github.com/adamchainz/django-mysql" [tool.isort] add_imports = [ - "from __future__ import annotations" + "from __future__ import annotations", ] force_single_line = true profile = "black" @@ -67,14 +68,14 @@ django_find_project = false branch = true parallel = true source = [ - "django_mysql", - "tests", + "django_mysql", + "tests", ] [tool.coverage.paths] source = [ - "src", - ".tox/**/site-packages", + "src", + ".tox/**/site-packages", ] [tool.coverage.report]