File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -94,12 +94,11 @@ Code style guide
94
94
95
95
- First and foremost, the linters configured for the project must pass; this generally means following PEP-8 rules,
96
96
as codified by: ``flake8 ``, ``black ``, ``isort ``, ``pyupgrade ``.
97
- - The supported Python versions (and the code syntax to use) are listed in the ``setup.cfg `` file
98
- in the ``options/python_requires `` entry. However, there are some files that have to be kept compatible
97
+ - The supported Python versions (and the code syntax to use) are listed in the ``pyproject.toml `` file
98
+ in the ``project/requires-python `` entry. However, there are some files that have to be kept compatible
99
99
with Python 2.7 to allow and test for running Python 2 envs from tox. They are listed in ``.pre-commit-config.yaml ``
100
100
under ``repo: https://github.com/asottile/pyupgrade `` under ``hooks/exclude ``.
101
101
Please do not attempt to modernize them to Python 3.x.
102
- - Packaging options should be specified within ``setup.cfg ``; ``setup.py `` is only kept for editable installs.
103
102
- All code (tests too) must be type annotated as much as required by ``mypy ``.
104
103
- We use a line length of 120.
105
104
- Exception messages should only be capitalized (and ended with a period/exclamation mark) if they are multi-sentenced,
You can’t perform that action at this time.
0 commit comments