You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which states the formatting will not change in a calendar year.
59
-
- If you have an existing project with un-blackened code, _format the entire
60
-
project all at once_. Don't do it gradually. Do it in a single dedicated pull request.
53
+
- To exclude certain files and directories, use the exclude options to each tool, (usually `--exclude`).
54
+
- If you have an existing project with unformatted code, _format the entire project all at once_. Don't do it gradually. I do it in a single dedicated PR, but I've seen others reformat the repository's entire history, to preserve git blame.
61
55
62
56
See also: [How to use Ruff, Mypy, Black and Isort in Pre-commit?](/python/pre-commit)
which states the formatting will not change in a calendar year.
89
-
- If you have an existing project with un-blackened code, _format the entire
90
-
project all at once_. Don't do it gradually. Do it in a single dedicated pull request.
83
+
- You may want to run tests in pre-commit as well. I prefer to run them separately.
84
+
- To exclude certain files and directories, use the exclude option, e.g. `exclude: ^(docs/|examples/request.py)`.
85
+
- If you have an existing project with unformatted code, _format the entire project all at once_. Don't do it gradually. I do it in a single dedicated PR, but I've seen others reformat the repository's entire history, to preserve git blame.
91
86
92
87
See also: [How to use Ruff, Mypy, Black, Isort and Pytest in Github Actions?](/python/github-actions)
0 commit comments