Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 835bb9d

Browse files
Update CONTRIBUTING.md with formatting instructions (#13395)
1 parent b6f08a9 commit 835bb9d

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

CONTRIBUTING.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ pytest mypy/test/testcheck.py::TypeCheckSuite::check-dataclasses.test
7171
7272
# Run the linter
7373
flake8
74+
75+
# Run formatters
76+
black . && isort .
7477
```
7578

7679
For an in-depth guide on running and writing tests,
@@ -131,10 +134,9 @@ advice about good pull requests for open-source projects applies; we
131134
have [our own writeup](https://github.com/python/mypy/wiki/Good-Pull-Request)
132135
of 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

139141
Also, do not squash your commits after you have submitted a pull request, as this
140142
erases context during review. We will squash commits when the pull request is merged.

0 commit comments

Comments
 (0)