From a2ff3daaf00b927bbddf64f875ec09df675a8bcb Mon Sep 17 00:00:00 2001 From: Alexander Clausen Date: Thu, 6 Jul 2023 17:49:16 +0200 Subject: [PATCH 1/2] s/setup.cfg/pyproject.toml/ in the development docs --- docs/development.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/development.rst b/docs/development.rst index d060a2f09..758605b40 100644 --- a/docs/development.rst +++ b/docs/development.rst @@ -94,12 +94,12 @@ Code style guide - First and foremost, the linters configured for the project must pass; this generally means following PEP-8 rules, as codified by: ``flake8``, ``black``, ``isort``, ``pyupgrade``. -- The supported Python versions (and the code syntax to use) are listed in the ``setup.cfg`` file - in the ``options/python_requires`` entry. However, there are some files that have to be kept compatible +- The supported Python versions (and the code syntax to use) are listed in the ``pyproject.toml`` file + in the ``project/requires-python`` entry. However, there are some files that have to be kept compatible with Python 2.7 to allow and test for running Python 2 envs from tox. They are listed in ``.pre-commit-config.yaml`` under ``repo: https://github.com/asottile/pyupgrade`` under ``hooks/exclude``. Please do not attempt to modernize them to Python 3.x. -- Packaging options should be specified within ``setup.cfg``; ``setup.py`` is only kept for editable installs. +- Packaging options should be specified within ``pyproject.toml``. - All code (tests too) must be type annotated as much as required by ``mypy``. - We use a line length of 120. - Exception messages should only be capitalized (and ended with a period/exclamation mark) if they are multi-sentenced, From ca33f855961427dfb629bd5478a8d84b29db186e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= Date: Thu, 6 Jul 2023 08:58:21 -0700 Subject: [PATCH 2/2] Update docs/development.rst Co-authored-by: Alexander Clausen --- docs/development.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/development.rst b/docs/development.rst index 758605b40..3c0fb580d 100644 --- a/docs/development.rst +++ b/docs/development.rst @@ -99,7 +99,6 @@ Code style guide with Python 2.7 to allow and test for running Python 2 envs from tox. They are listed in ``.pre-commit-config.yaml`` under ``repo: https://github.com/asottile/pyupgrade`` under ``hooks/exclude``. Please do not attempt to modernize them to Python 3.x. -- Packaging options should be specified within ``pyproject.toml``. - All code (tests too) must be type annotated as much as required by ``mypy``. - We use a line length of 120. - Exception messages should only be capitalized (and ended with a period/exclamation mark) if they are multi-sentenced,