From ed1ae3d7a81347383591cd7547cf7e52b01be9c5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 14 May 2024 22:40:29 +0000 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#448) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/tox-dev/pyproject-fmt: 1.8.0 → 2.0.4](https://github.com/tox-dev/pyproject-fmt/compare/1.8.0...2.0.4) --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Adam Johnson --- .pre-commit-config.yaml | 2 +- pyproject.toml | 29 ++++++++++++++--------------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b8248d7..355af04 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 additional_dependencies: ["tox>=4.9"] diff --git a/pyproject.toml b/pyproject.toml index cdd757a..70c24b7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ requires = [ name = "time-machine" version = "2.14.1" description = "Travel through time in your tests." -readme = {file = "README.rst", content-type = "text/x-rst"} +readme = { file = "README.rst", content-type = "text/x-rst" } keywords = [ "date", "datetime", @@ -19,8 +19,10 @@ keywords = [ "time", "warp", ] -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", @@ -35,22 +37,19 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", - "Programming Language :: Python :: 3.13", "Typing :: Typed", ] dependencies = [ "python-dateutil", ] -[project.urls] -Changelog = "https://github.com/adamchainz/time-machine/blob/main/CHANGELOG.rst" -Funding = "https://adamj.eu/books/" -Repository = "https://github.com/adamchainz/time-machine" -[project.entry-points.pytest11] -time_machine = "time_machine" +urls.Changelog = "https://github.com/adamchainz/time-machine/blob/main/CHANGELOG.rst" +urls.Funding = "https://adamj.eu/books/" +urls.Repository = "https://github.com/adamchainz/time-machine" +entry-points.pytest11.time_machine = "time_machine" [tool.isort] add_imports = [ - "from __future__ import annotations" + "from __future__ import annotations", ] force_single_line = true profile = "black" @@ -65,14 +64,14 @@ addopts = """\ branch = true parallel = true source = [ - "src/_time_machine.c", - "tests", + "src/_time_machine.c", + "tests", ] [tool.coverage.paths] source = [ - "src", - ".tox/**/site-packages", + "src", + ".tox/**/site-packages", ] [tool.coverage.report]