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
Manage black version using requirement file (#1748)
* chore: Manage black version in dev.txt
- config pre-commit
- config development guide
- config travis
Refer to the commit below in aws-sam-cli
aws/aws-sam-cli@d725db5fbfc698a9f0c7582
* Format using black 20.8b1
* Opt-out black fron dev.txt for Python 2
Copy file name to clipboardExpand all lines: DEVELOPMENT_GUIDE.rst
+34-6Lines changed: 34 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,16 +28,44 @@ Setup Python locally using `pyenv`_
28
28
29
29
2. Install Additional Tooling
30
30
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31
-
1. Black
32
-
~~~~~~~~
31
+
Black
32
+
'''''
33
33
We format our code using `Black`_ and verify the source code is black compliant
34
-
in Appveyor during PRs. You can find installation instructions on `Black's docs`_.
34
+
in Appveyor during PRs. Black will be installed automatically with ``make init``.
35
35
36
-
After installing, you can check your formatting through our Makefile by running `make black-check`. To automatically update your code to match our formatting, please run `make black`. You can also integrate Black directly in your favorite IDE (instructions
37
-
can be found `here`_)
36
+
After installing, you can run our formatting through our Makefile by
37
+
``make black`` or integrating Black directly in your favorite IDE
38
+
(instructions can be found `here <https://black.readthedocs.io/en/stable/editor_integration.html>`__)
39
+
40
+
(workaround) Integrating Black directly in your favorite IDE
0 commit comments