Skip to content

Commit c296700

Browse files
chore(hooks): add precommit hooks cfg, add security baseline (#53)
* chore(hooks): add precommit hooks cfg, add security baseline * Apply automatic documentation changes Co-authored-by: Alexander VT <[email protected]>
1 parent cd73c77 commit c296700

File tree

8 files changed

+284
-60
lines changed

8 files changed

+284
-60
lines changed

.pre-commit-config.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
repos:
2+
- repo: [email protected]:Yelp/detect-secrets
3+
rev: v0.13.1
4+
hooks:
5+
- id: detect-secrets
6+
args: ['--baseline', '.secrets.baseline']
7+
- repo: https://github.com/pre-commit/pre-commit-hooks
8+
rev: v2.5.0
9+
hooks:
10+
- id: no-commit-to-branch
11+
args: [--branch, develop, --branch, master, --pattern, release/.*]
12+
- repo: https://github.com/psf/black
13+
rev: 19.10b0
14+
hooks:
15+
- id: black

.secrets.baseline

Lines changed: 189 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,189 @@
1+
{
2+
"exclude": {
3+
"files": null,
4+
"lines": null
5+
},
6+
"generated_at": "2020-07-22T16:27:46Z",
7+
"plugins_used": [
8+
{
9+
"name": "AWSKeyDetector"
10+
},
11+
{
12+
"name": "ArtifactoryDetector"
13+
},
14+
{
15+
"base64_limit": 4.5,
16+
"name": "Base64HighEntropyString"
17+
},
18+
{
19+
"name": "BasicAuthDetector"
20+
},
21+
{
22+
"name": "CloudantDetector"
23+
},
24+
{
25+
"hex_limit": 3,
26+
"name": "HexHighEntropyString"
27+
},
28+
{
29+
"name": "IbmCloudIamDetector"
30+
},
31+
{
32+
"name": "IbmCosHmacDetector"
33+
},
34+
{
35+
"name": "JwtTokenDetector"
36+
},
37+
{
38+
"keyword_exclude": null,
39+
"name": "KeywordDetector"
40+
},
41+
{
42+
"name": "MailchimpDetector"
43+
},
44+
{
45+
"name": "PrivateKeyDetector"
46+
},
47+
{
48+
"name": "SlackDetector"
49+
},
50+
{
51+
"name": "SoftlayerDetector"
52+
},
53+
{
54+
"name": "StripeDetector"
55+
},
56+
{
57+
"name": "TwilioKeyDetector"
58+
}
59+
],
60+
"results": {
61+
".travis.yml": [
62+
{
63+
"hashed_secret": "9cc200a9de33fcc94e4d8bccbbc3e9a25260a308",
64+
"is_secret": false,
65+
"is_verified": false,
66+
"line_number": 17,
67+
"type": "Base64 High Entropy String"
68+
}
69+
],
70+
"README.md": [
71+
{
72+
"hashed_secret": "301918c8b904630da85e75ee32e9ba68ff925b73",
73+
"is_secret": false,
74+
"is_verified": false,
75+
"line_number": 114,
76+
"type": "Hex High Entropy String"
77+
}
78+
],
79+
"tests/test_jobs.py": [
80+
{
81+
"hashed_secret": "16ac780c5e695ed5f79a4300ac498e07200c9865",
82+
"is_secret": false,
83+
"is_verified": false,
84+
"line_number": 159,
85+
"type": "Hex High Entropy String"
86+
}
87+
],
88+
"tests/test_manifests.py": [
89+
{
90+
"hashed_secret": "6487fa7aea293dfde99cda9c6ccb9161219331c7",
91+
"is_secret": false,
92+
"is_verified": false,
93+
"line_number": 72,
94+
"type": "Hex High Entropy String"
95+
},
96+
{
97+
"hashed_secret": "96c9184fb19c9c1618ccf44d141f8029a739891c",
98+
"is_secret": false,
99+
"is_verified": false,
100+
"line_number": 115,
101+
"type": "Hex High Entropy String"
102+
},
103+
{
104+
"hashed_secret": "e1da93616713812cb50e0ac845b1e9e305d949f1",
105+
"is_secret": false,
106+
"is_verified": false,
107+
"line_number": 311,
108+
"type": "Hex High Entropy String"
109+
},
110+
{
111+
"hashed_secret": "47f42f4c34fddab383b817e689dc0fb75af81266",
112+
"is_secret": false,
113+
"is_verified": false,
114+
"line_number": 335,
115+
"type": "Hex High Entropy String"
116+
},
117+
{
118+
"hashed_secret": "300d95dd5d30ab6928ffda6c08c6a129a23e5b39",
119+
"is_secret": false,
120+
"is_verified": false,
121+
"line_number": 359,
122+
"type": "Hex High Entropy String"
123+
},
124+
{
125+
"hashed_secret": "f9e664db75c7f23a299b0b055c10e08d47073e93",
126+
"is_secret": false,
127+
"is_verified": false,
128+
"line_number": 415,
129+
"type": "Hex High Entropy String"
130+
},
131+
{
132+
"hashed_secret": "7c35c215b326b9463b669b657c1ff9873ff53d9a",
133+
"is_secret": false,
134+
"is_verified": false,
135+
"line_number": 434,
136+
"type": "Hex High Entropy String"
137+
}
138+
],
139+
"tests/unitindexd_test.py": [
140+
{
141+
"hashed_secret": "995018d248e5bf0c4ca4fb44c52e2eb9be4876a7",
142+
"is_secret": false,
143+
"is_verified": false,
144+
"line_number": 62,
145+
"type": "Hex High Entropy String"
146+
},
147+
{
148+
"hashed_secret": "0b1691078688badae57b2078ae6b00c7eec78972",
149+
"is_secret": false,
150+
"is_verified": false,
151+
"line_number": 93,
152+
"type": "Hex High Entropy String"
153+
},
154+
{
155+
"hashed_secret": "50d0a1cf4bf47b1625d4a8e4b0afad02012eb3da",
156+
"is_secret": false,
157+
"is_verified": false,
158+
"line_number": 97,
159+
"type": "Hex High Entropy String"
160+
},
161+
{
162+
"hashed_secret": "98f0a724b4285da1d5dced7c16d8a546f08c297d",
163+
"is_secret": false,
164+
"is_verified": false,
165+
"line_number": 124,
166+
"type": "Hex High Entropy String"
167+
},
168+
{
169+
"hashed_secret": "190506946c18c0b0b2dd270e8de76ebc8d5ad672",
170+
"is_secret": false,
171+
"is_verified": false,
172+
"line_number": 174,
173+
"type": "Hex High Entropy String"
174+
},
175+
{
176+
"hashed_secret": "0fdd976872ec302887d854f6b1452bd8fcdf76dc",
177+
"is_secret": false,
178+
"is_verified": false,
179+
"line_number": 228,
180+
"type": "Hex High Entropy String"
181+
}
182+
]
183+
},
184+
"version": "0.13.1",
185+
"word_list": {
186+
"file": null,
187+
"hash": null
188+
}
189+
}

docs/_build/html/_static/basic.css

Lines changed: 39 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ div.clearer {
1515
clear: both;
1616
}
1717

18+
div.section::after {
19+
display: block;
20+
content: '';
21+
clear: left;
22+
}
23+
1824
/* -- relbar ---------------------------------------------------------------- */
1925

2026
div.related {
@@ -328,8 +334,8 @@ p.sidebar-title {
328334
font-weight: bold;
329335
}
330336

331-
div.admonition, div.topic, pre, div[class|="highlight"] {
332-
clear: both;
337+
div.admonition, div.topic, blockquote {
338+
clear: left;
333339
}
334340

335341
/* -- topics ---------------------------------------------------------------- */
@@ -338,7 +344,6 @@ div.topic {
338344
border: 1px solid #ccc;
339345
padding: 7px;
340346
margin: 10px 0 10px 0;
341-
overflow-x: auto;
342347
}
343348

344349
p.topic-title {
@@ -353,7 +358,6 @@ div.admonition {
353358
margin-top: 10px;
354359
margin-bottom: 10px;
355360
padding: 7px;
356-
overflow-x: auto;
357361
}
358362

359363
div.admonition dt {
@@ -378,6 +382,15 @@ div.admonition > :last-child {
378382
margin-bottom: 0;
379383
}
380384

385+
div.sidebar::after,
386+
div.topic::after,
387+
div.admonition::after,
388+
blockquote::after {
389+
display: block;
390+
content: '';
391+
clear: both;
392+
}
393+
381394
/* -- tables ---------------------------------------------------------------- */
382395

383396
table.docutils {
@@ -513,28 +526,31 @@ ol.upperroman {
513526
list-style: upper-roman;
514527
}
515528

516-
ol > li:first-child > :first-child,
517-
ul > li:first-child > :first-child {
529+
:not(li) > ol > li:first-child > :first-child,
530+
:not(li) > ul > li:first-child > :first-child {
518531
margin-top: 0px;
519532
}
520533

521-
ol ol > li:first-child > :first-child,
522-
ol ul > li:first-child > :first-child,
523-
ul ol > li:first-child > :first-child,
524-
ul ul > li:first-child > :first-child {
525-
margin-top: revert;
534+
:not(li) > ol > li:last-child > :last-child,
535+
:not(li) > ul > li:last-child > :last-child {
536+
margin-bottom: 0px;
526537
}
527538

528-
ol > li:last-child > :last-child,
529-
ul > li:last-child > :last-child {
530-
margin-bottom: 0px;
539+
ol.simple ol p,
540+
ol.simple ul p,
541+
ul.simple ol p,
542+
ul.simple ul p {
543+
margin-top: 0;
531544
}
532545

533-
ol ol > li:last-child > :last-child,
534-
ol ul > li:last-child > :last-child,
535-
ul ol > li:last-child > :last-child,
536-
ul ul > li:last-child > :last-child {
537-
margin-bottom: revert;
546+
ol.simple > li:not(:first-child) > p,
547+
ul.simple > li:not(:first-child) > p {
548+
margin-top: 0;
549+
}
550+
551+
ol.simple p,
552+
ul.simple p {
553+
margin-bottom: 0;
538554
}
539555

540556
dl.footnote > dt,
@@ -677,6 +693,10 @@ pre {
677693
overflow-y: hidden; /* fixes display issues on Chrome browsers */
678694
}
679695

696+
pre, div[class|="highlight"] {
697+
clear: both;
698+
}
699+
680700
span.pre {
681701
-moz-hyphens: none;
682702
-ms-hyphens: none;

0 commit comments

Comments
 (0)