daktari 0.0.289__py3-none-any.whl → 0.0.291__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
daktari/__init__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.0.289"
1
+ __version__ = "0.0.291"
daktari/checks/git.py CHANGED
@@ -158,10 +158,8 @@ class GitCommitSigningSetUp(Check):
158
158
  name = "git.commitSigningSetUp"
159
159
 
160
160
  suggestions = {
161
- OS.OS_X: "Follow instructions to set up commit signing: "
162
- "https://gist.github.com/troyfontaine/18c9146295168ee9ca2b30c00bd1b41e#file-2-using-gpg-md",
163
- OS.UBUNTU: "Follow instructions to set up commit signing: "
164
- "https://brain2life.hashnode.dev/how-to-sign-your-git-commits-in-ubuntu-2004-and-why-you-need-it",
161
+ OS.GENERIC: "Follow instructions to set up commit signing with 1Password: "
162
+ "https://developer.1password.com/docs/ssh/git-commit-signing/",
165
163
  }
166
164
 
167
165
  def check(self) -> CheckResult:
@@ -196,3 +194,22 @@ class GitCommitSigningFormat(Check):
196
194
  f"gpg.format is {self.required_format}",
197
195
  f"gpg.format is not {self.required_format}: {format_setting}",
198
196
  )
197
+
198
+
199
+ class GitUserNameAndEmailConfigured(Check):
200
+ name = "gitUserNameAndEmail.configured"
201
+ depends_on = [GitInstalled]
202
+ pass_fail_message = "git name and email are <not/> set"
203
+
204
+ suggestions = {
205
+ OS.GENERIC: """
206
+ Configure git to use your name and email for commits. These should match your GitHub account.
207
+ <cmd>git config --global user.name "Your Name"</cmd>
208
+ <cmd>git config --global user.email "your.email@genio.co"</cmd>
209
+ """,
210
+ }
211
+
212
+ def check(self):
213
+ user_name = get_stdout("git config user.name")
214
+ user_email = get_stdout("git config user.email")
215
+ return self.verify(None not in (user_name, user_email), self.pass_fail_message)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: daktari
3
- Version: 0.0.289
3
+ Version: 0.0.291
4
4
  Summary: Assist in setting up and maintaining developer environments
5
5
  Author-email: Matt Russell <matthew.russell@sonocent.com>
6
6
  License: Copyright 2021 Sonocent Ltd
@@ -30,7 +30,7 @@ Requires-Dist: pyobjc-core==11.1; sys_platform == "darwin"
30
30
  Requires-Dist: pyobjc-framework-Cocoa==11.1; sys_platform == "darwin"
31
31
  Requires-Dist: requests-unixsocket==0.4.1
32
32
  Requires-Dist: dpath==2.2.0
33
- Requires-Dist: pyOpenSSL==25.2.0
33
+ Requires-Dist: pyOpenSSL==25.3.0
34
34
  Requires-Dist: types-pyOpenSSL==24.1.0.20240722
35
35
  Requires-Dist: pyclip==0.7.0
36
36
  Requires-Dist: urllib3==2.5.0
@@ -45,7 +45,7 @@ In the root of the project repository, create a `.daktari.py` configuration file
45
45
  ```python
46
46
  from daktari.checks.git import *
47
47
 
48
- version = "0.0.289"
48
+ version = "0.0.291"
49
49
  title = "My Project"
50
50
 
51
51
  checks = [
@@ -1,4 +1,4 @@
1
- daktari/__init__.py,sha256=K3GTeVDpz9GO0VZ1iHIanZnlTO4hofp3sa43JK7VS4c,24
1
+ daktari/__init__.py,sha256=lWwIQmKKKA_mxbI6pkZraYNg5zmhDqLQ6Qd2KvjuCaU,24
2
2
  daktari/__main__.py,sha256=iYwgtZZE2HD9Eh9Io6OliGQwCNZJSde_66jI6kF8xJU,1463
3
3
  daktari/asdf.py,sha256=fALVL6UTz1AYxuabw9MZeAES7J_CvImutUDD1Y2yWwM,509
4
4
  daktari/check.py,sha256=WzIiCrrdH7gCbElNwYbYkjhpmaOs_nUWfvkTBkfZlgs,4133
@@ -34,7 +34,7 @@ daktari/checks/docker.py,sha256=VFv6w5fJlss5aob7XX2muEbX05bk7ot5ArIuh8uXCS4,2788
34
34
  daktari/checks/etc_hosts.py,sha256=fS2yU0zjR6qYGYHBQo675HB10oiK02yJOLMl-3Lu2ls,1226
35
35
  daktari/checks/files.py,sha256=Rth-b1XuZw-AjG3Uwg1ZTc6ItBhQ-U6ZP6VzrOzdRhU,2386
36
36
  daktari/checks/flutter.py,sha256=1TI19pIiLVrAuJvoPMXzgX1yOVq6Q5K0TwHNSAUdR_g,1536
37
- daktari/checks/git.py,sha256=yII22HkvhjGM4bpr3wiLvPxi1pSBPiQcxdTyjqPXji4,6508
37
+ daktari/checks/git.py,sha256=pbtRXwbcWic4kkmcwWtAz01mb3LnZ9IqapfHEkIuwKw,7041
38
38
  daktari/checks/google.py,sha256=TlaOrQyTdgC4EMSmhUwiotIXESw2uebeI6GfoGIsUYA,4643
39
39
  daktari/checks/intellij_idea.py,sha256=qm7g_sa-3B639iW1BLE-2lr2Zloy9tMLzFk2Uwcn-Tg,9808
40
40
  daktari/checks/java.py,sha256=vS4gfuLwLxuTLizvybRx2yYXnNLMTsSfmoYHp91rono,3542
@@ -57,9 +57,9 @@ daktari/checks/yarn.py,sha256=T8b_oOoZ4l96delmPgPfgtaTkiUS129hoWlGIBcU7Io,5534
57
57
  daktari/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
58
58
  daktari/resources/daktari-local-template.yaml,sha256=ik7KzMcG1r90nxDOk7t5G7P-BSxQIl2PocGUVe14c44,503
59
59
  daktari/resources/mock_cert.pem,sha256=AIc9dZOVIuxm7KFLunP5WSA1-LDWLOwpfu48B9xQ_Wg,82
60
- daktari-0.0.289.dist-info/licenses/LICENSE.txt,sha256=sMo18UdnQ7rY1SYg9gmop08ubzEQOGO1URYXu1Hxdx0,1051
61
- daktari-0.0.289.dist-info/METADATA,sha256=Rj8sZvaVbAobhHtpSZQ3ssJnrhKQMF8rmq4DxmF42Dw,4557
62
- daktari-0.0.289.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
63
- daktari-0.0.289.dist-info/entry_points.txt,sha256=mfQXkwKyloAzf7sv78icBo1PtRwf9hCP_816F6REf-I,50
64
- daktari-0.0.289.dist-info/top_level.txt,sha256=LW6kawKAAyxUbGqpAbdedKRUyVy2DBzEZOalp0qDdF8,8
65
- daktari-0.0.289.dist-info/RECORD,,
60
+ daktari-0.0.291.dist-info/licenses/LICENSE.txt,sha256=sMo18UdnQ7rY1SYg9gmop08ubzEQOGO1URYXu1Hxdx0,1051
61
+ daktari-0.0.291.dist-info/METADATA,sha256=krmgp5jCPmPGBOK8dM8rlPN7cg_J_qeyjyPY1Jm7BBM,4557
62
+ daktari-0.0.291.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
63
+ daktari-0.0.291.dist-info/entry_points.txt,sha256=mfQXkwKyloAzf7sv78icBo1PtRwf9hCP_816F6REf-I,50
64
+ daktari-0.0.291.dist-info/top_level.txt,sha256=LW6kawKAAyxUbGqpAbdedKRUyVy2DBzEZOalp0qDdF8,8
65
+ daktari-0.0.291.dist-info/RECORD,,