Merge ~cjwatson/lazr.delegates:pre-commit into lazr.delegates:main

Proposed by Colin Watson
Status: Merged
Merged at revision: e30c5083a46cbbeb340a0f6a72d0f57218b04dd8
Proposed branch: ~cjwatson/lazr.delegates:pre-commit
Merge into: lazr.delegates:main
Diff against target: 295 lines (+256/-1)
4 files modified
.pre-commit-config.yaml (+18/-0)
.woke.yaml (+228/-0)
src/lazr/delegates/docs/conf.py (+1/-1)
tox.ini (+9/-0)
Reviewer Review Type Date Requested Status
Jürgen Gmach Approve
Review via email: mp+412223@code.launchpad.net

Commit message

Add basic pre-commit configuration

To post a comment you must log in.
Revision history for this message
Jürgen Gmach (jugmac00) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
0new file mode 1006440new file mode 100644
index 0000000..8691251
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,18 @@
1# See https://pre-commit.com for more information
2# See https://pre-commit.com/hooks.html for more hooks
3repos:
4- repo: https://github.com/pre-commit/pre-commit-hooks
5 rev: v4.0.1
6 hooks:
7 - id: check-added-large-files
8 - id: check-ast
9 - id: end-of-file-fixer
10 - id: check-json
11 - id: check-merge-conflict
12 - id: check-xml
13 - id: check-yaml
14 - id: debug-statements
15- repo: https://github.com/get-woke/woke
16 rev: ee781d3ce0ddf835267764f27f4ffdd2dd21fa27
17 hooks:
18 - id: woke-from-source
diff --git a/.woke.yaml b/.woke.yaml
0new file mode 10064419new file mode 100644
index 0000000..9d704fa
--- /dev/null
+++ b/.woke.yaml
@@ -0,0 +1,228 @@
1
2# Based on Canonical's Guidelines
3# https://docs.google.com/document/d/1mJUa1VJHOMWa723dmKmNjSKGW-nlBv9xktzGZZwacVo/edit#heading=h.5efudb237qdb
4rules:
5 - name: whitelist
6 terms:
7 - whitelist
8 - white-list
9 - whitelisted
10 - white-listed
11 alternatives:
12 - allowlist
13 - inclusion list
14 severity: warning
15 note: "The underlying assumption of the whitelist/blacklist metaphor is that white = good and black = bad. Because colors in and of themselves have no predetermined meaning, any meaning we assign to them is cultural: for example, the color red in many Southeast Asian countries is lucky, and is often associated with events like marriages, whereas the color white carries the same connotations in many European countries. In the case of whitelist/blacklist, the terms originate in the publishing industry – one dominated by the USA and England, two countries which participated in slavery and which grapple with their racist legacies to this day."
16
17 - name: blacklist
18 terms:
19 - blacklist
20 - black-list
21 - blacklisted
22 - black-listed
23 alternatives:
24 - denylist
25 - blocklist
26 - exclusion list
27 severity: warning
28 note: "The underlying assumption of the whitelist/blacklist metaphor is that white = good and black = bad. Because colors in and of themselves have no predetermined meaning, any meaning we assign to them is cultural: for example, the color red in many Southeast Asian countries is lucky, and is often associated with events like marriages, whereas the color white carries the same connotations in many European countries. In the case of whitelist/blacklist, the terms originate in the publishing industry – one dominated by the USA and England, two countries which participated in slavery and which grapple with their racist legacies to this day."
29
30 - name: master-slave
31 terms:
32 - master-slave
33 - master/slave
34 alternatives:
35 - leader/follower
36 - main/replica
37 - primary/replica
38 - primary/standby
39 - primary/secondary
40
41 - name: slave
42 terms:
43 - slave
44 alternatives:
45 - follower
46 - replica
47 - standby
48
49 - name: grandfathered
50 terms:
51 - grandfathered
52 alternatives:
53 - legacy status
54 - legacied
55 - exempted
56 - carried
57 - brought forward
58 - rolled over
59
60 - name: man-hours
61 terms:
62 - man hours
63 - man-hours
64 alternatives:
65 - person hours
66 - engineer hours
67
68 - name: sanity
69 terms:
70 - sanity
71 alternatives:
72 - confidence
73 - quick check
74 - coherence check
75
76 - name: dummy
77 terms:
78 - dummy
79 alternatives:
80 - placeholder
81 - sample
82
83 - name: guys
84 terms:
85 - guys
86 alternatives:
87 - folks
88 - people
89 - you all
90 - y'all
91 - yinz
92
93 - name: whitebox
94 terms:
95 - white-box
96 - whitebox
97 - white box
98 alternatives:
99 - open-box
100
101 - name: blackbox
102 terms:
103 - black-box
104 - blackbox
105 - black box
106 alternatives:
107 - closed-box
108
109 - name: blackhat
110 terms:
111 - blackhat
112 - black-hat
113 - black hat
114 alternatives:
115 - attacker
116 - malicious actor
117
118 - name: whitehat
119 terms:
120 - whitehat
121 - white-hat
122 - white hat
123 alternatives:
124 - researcher
125 - security specialist
126
127 - name: illegal characters
128 terms:
129 - illegal characters
130 alternatives:
131 - invalid characters
132 - unsupported characters
133 - special characters
134
135 - name: native feature
136 terms:
137 - native feature
138 alternatives:
139 - core feature
140 - built-in feature
141
142 - name: native feature
143 terms:
144 - native feature
145 alternatives:
146 - core feature
147 - built-in feature
148
149 - name: chairman/foreman
150 terms:
151 - chairman
152 - foreman
153 alternatives:
154 - chair
155 - foreperson
156
157 - name: man in the middle
158 terms:
159 - man in the middle
160 - man-in-the-middle
161 alternatives:
162 - machine-in-the-middle
163 - person-in-the-middle
164 - system-in-the-middle
165 - intermediary attack
166
167 - name: middleman
168 terms:
169 - middleman
170 alternatives:
171 - middleperson
172 - intermediary
173
174 - name: manned
175 terms:
176 - manned
177 alternatives:
178 - crewed
179 - staffed
180 - monitored
181 - human operated
182
183 - name: mom test / girlfriend test
184 terms:
185 - mom test
186 - girlfriend test
187 alternatives:
188 - user test
189 - user friendly
190
191 - name: crazy
192 terms:
193 - crazy
194 alternatives:
195 - baffling
196 - unexplained
197 - errant
198
199 - name: cripples
200 terms:
201 - cripples
202 alternatives:
203 - slows down
204 - hinders
205 - obstructs
206
207 - name: crippling
208 terms:
209 - crippling
210 alternatives:
211 - attenuating
212 - incapacitating
213
214 - name: stonith/stomith
215 terms:
216 - stonith
217 - stomith
218 alternatives:
219 - fence failed nodes
220 - machines
221
222 - name: demilitarized zone
223 terms:
224 - demilitarized zone
225 - dmz
226 alternatives:
227 - perimeter network
228 - passthrough network
diff --git a/src/lazr/delegates/docs/conf.py b/src/lazr/delegates/docs/conf.py
index e6ba426..fed69d1 100644
--- a/src/lazr/delegates/docs/conf.py
+++ b/src/lazr/delegates/docs/conf.py
@@ -228,4 +228,4 @@ htmlhelp_basename = 'lazrdelegatesdoc'
228#texinfo_domain_indices = True228#texinfo_domain_indices = True
229229
230# How to display URL addresses: 'footnote', 'no', or 'inline'.230# How to display URL addresses: 'footnote', 'no', or 'inline'.
231#texinfo_show_urls = 'footnote'
232\ No newline at end of file231\ No newline at end of file
232#texinfo_show_urls = 'footnote'
diff --git a/tox.ini b/tox.ini
index 10d788b..e8ee020 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,6 @@
1[tox]1[tox]
2envlist =2envlist =
3 lint
3 py274 py27
4 py355 py35
5 py366 py36
@@ -17,6 +18,14 @@ deps =
17commands =18commands =
18 coverage run -m zope.testrunner --test-path src --tests-pattern ^tests {posargs}19 coverage run -m zope.testrunner --test-path src --tests-pattern ^tests {posargs}
1920
21[testenv:lint]
22basepython = python3.8
23deps =
24 pre-commit
25skip_install = true
26commands =
27 pre-commit run -a
28
20[testenv:docs]29[testenv:docs]
21basepython =30basepython =
22 python331 python3

Subscribers

People subscribed via source and target branches

to all changes: