File tree Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Original file line number Diff line number Diff line change
1
+ # See https://pre-commit.com for more information
2
+ # See https://pre-commit.com/hooks.html for more hooks
3
+ repos :
4
+ - repo : https://github.com/pre-commit/pre-commit-hooks
5
+ rev : v3.2.0
6
+ hooks :
7
+ - id : trailing-whitespace
8
+ - id : end-of-file-fixer
9
+ - id : check-yaml
10
+ - repo : https://github.com/psf/black
11
+ rev : 19.10b0
12
+ hooks :
13
+ - id : black
14
+ - repo : https://gitlab.com/pycqa/flake8
15
+ rev : 3.8.4
16
+ hooks :
17
+ - id : flake8
Original file line number Diff line number Diff line change @@ -111,6 +111,16 @@ Coding Style
111
111
should point to the official ``googleapis `` checkout and the
112
112
the branch should be the main branch on that remote (``master ``).
113
113
114
+ - This repository contains configuration for the
115
+ `pre-commit <https://pre-commit.com/ >`__ tool, which automates checking
116
+ our linters during a commit. If you have it installed on your ``$PATH ``,
117
+ you can enable enforcing those checks via:
118
+
119
+ .. code-block :: bash
120
+
121
+ $ pre-commit install
122
+ pre-commit installed at .git/hooks/pre-commit
123
+
114
124
Exceptions to PEP8:
115
125
116
126
- Many unit tests use a helper method, ``_call_fut `` ("FUT" is short for
Original file line number Diff line number Diff line change 4
4
"git": {
5
5
"name": ".",
6
6
"remote": "https://github.com/googleapis/python-api-core.git",
7
- "sha": "fcf261fc3c4c1f28f2fa13d055716cf70d21f6f5 "
7
+ "sha": "93976931f231da6b42304bd117d8481067c55f6a "
8
8
}
9
9
},
10
10
{
11
11
"git": {
12
12
"name": "synthtool",
13
13
"remote": "https://github.com/googleapis/synthtool.git",
14
- "sha": "a073c873f3928c561bdf87fdfbf1d081d1998984 "
14
+ "sha": "32af6da519a6b042e3da62008e2a75e991efb6b4 "
15
15
}
16
16
}
17
17
],
58
58
".kokoro/test-samples.sh",
59
59
".kokoro/trampoline.sh",
60
60
".kokoro/trampoline_v2.sh",
61
+ ".pre-commit-config.yaml",
61
62
".trampolinerc",
62
63
"CODE_OF_CONDUCT.md",
63
64
"CONTRIBUTING.rst",
You can’t perform that action at this time.
0 commit comments