File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,6 +71,9 @@ pytest mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test
7171
7272# Run the linter
7373flake8
74+
75+ # Run formatters
76+ black . && isort .
7477```
7578
7679For an in-depth guide on running and writing tests,
@@ -131,10 +134,9 @@ advice about good pull requests for open-source projects applies; we
131134have [ our own writeup] ( https://github.com/python/mypy/wiki/Good-Pull-Request )
132135of this advice.
133136
134- See also our [ coding conventions] ( https://github.com/python/mypy/wiki/Code-Conventions ) --
135- which consist mainly of a reference to
136- [ PEP 8] ( https://www.python.org/dev/peps/pep-0008/ ) -- for the code you
137- put in the pull request.
137+ We are using ` black ` and ` isort ` to enforce a consistent coding style.
138+ Run ` black . && isort . ` before your commits, otherwise you would receive
139+ a CI failure.
138140
139141Also, do not squash your commits after you have submitted a pull request, as this
140142erases context during review. We will squash commits when the pull request is merged.
You can’t perform that action at this time.
0 commit comments