diff --git a/docs/index.rst b/docs/index.rst index dcb26c7..d00dd0c 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -36,18 +36,14 @@ Calculating max supported Python version This tool will automatically generate the ``Programming Language :: Python :: 3.X`` classifiers for you. To do so it needs to know what is the range of Python interpreter versions you support. The lower bound can be deduced by looking at the ``requires-python`` key in the ``pyproject.toml`` configuration file. For the upper bound by default will -assume the latest stable release when the library is released; however, if you're adding support for a not yet final -Python version the tool offers a functionality that it will invoke ``tox`` for you and inspect the test environments -and use the latest python version tested against. For this to work ``tox`` needs to be on ``PATH``, an easy way to -ensure this is to set ``tox`` as additional dependency via: +assume the latest stable release but can be changed via CLI flag or config: .. code-block:: yaml - repo: https://github.com/tox-dev/pyproject-fmt - rev: "1.0.0" + rev: "2.0.0" hooks: - id: pyproject-fmt - additional_dependencies: ["tox>=4.9"] Command line interface @@ -67,17 +63,8 @@ The ``tool.pyproject-fmt`` table is used when present in any of the ``pyproject. # pyproject.toml [tool.pyproject-fmt] + column_width = 120 indent = 4 keep_full_version = false + min_supported_python = "3.7" max_supported_python = "3.10" - -API ---- - -.. automodule:: pyproject_fmt - :members: - -.. toctree:: - :hidden: - - self diff --git a/pyproject.toml b/pyproject.toml index 6084859..a7e98ae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ dynamic = [ "version", ] dependencies = [ - "pyproject-fmt-rust==1.0.1", + "pyproject-fmt-rust==1.0.4", ] optional-dependencies.docs = [ "furo>=2024.5.6",