File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ Here's a quick checklist to follow when coding to ensure a good pull request
6767 goal.
6868- Ensure all indentation is done as 4-spaces and your editor is set to unix line
6969 endings.
70- - The code matches PEP8 style guides. Make sure to run
71- ` pycodestyle tableauserverclient test samples` to catch and fix any style
70+ - The code matches PEP8 style guides, enforced by the black formatter . Make sure to run
71+ ` black --check --line-length 120 tableauserverclient samples test ` to catch and fix any style
7272 issues before submitting your pull request.
7373- Keep commit messages clean and descriptive.
7474
@@ -84,7 +84,7 @@ Create a file `pre-commit` with the contents below and mark it as executable
8484
8585To test that the hook is working correctly, make a style-inconsistent change (for
8686example, changing some indentation to not be a multiple of 4), then try to commit
87- locally. You should get a failure with an explanation from pycodestyle with the
87+ locally. You should get a failure with an explanation from black with the
8888issue.
8989
9090``` shell
9494if [ -e tableauserverclient/__init__.py ];
9595then
9696 # check for style conventions in all code dirs
97- echo Running pycodestyle
98- pycodestyle tableauserverclient test samples
97+ echo Running black format check
98+ black --check --line-length 120 tableauserverclient samples test
9999fi
100100```
101101
You can’t perform that action at this time.
0 commit comments