crackerjack 0.6.2__tar.gz → 0.6.4__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: Crackerjack
3
- Version: 0.6.2
3
+ Version: 0.6.4
4
4
  Summary: Crackerjack code style
5
5
  Keywords: black ruff mypy creosote refurb
6
6
  Home-page: https://github.com/lesleslie/crackerjack
@@ -1,7 +1,6 @@
1
1
  import asyncio
2
2
  import sys
3
3
  import typing as t
4
- from shlex import quote as shlex_quote
5
4
  from subprocess import run
6
5
 
7
6
  from acb.actions import dump
@@ -15,7 +14,7 @@ from pydantic import BaseModel
15
14
 
16
15
  class Commands(BaseModel):
17
16
  pre_commit: str = "/usr/local/bin/pre-commit"
18
- git: str = "/usr/bin/git "
17
+ git: str = "/usr/bin/git"
19
18
  pdm: str = "/usr/local/bin/pdm"
20
19
 
21
20
 
@@ -73,7 +72,7 @@ class Crakerjack(BaseModel, arbitrary_types_allowed=True):
73
72
  await pkg_config_path.write_text(
74
73
  config_text.replace("crackerjack", self.pkg_name)
75
74
  )
76
- run([commands.git, "add", config, ""])
75
+ run([commands.git, "add", config])
77
76
 
78
77
  @staticmethod
79
78
  def run_interactive(hook: str) -> None:
@@ -133,17 +132,17 @@ class Crakerjack(BaseModel, arbitrary_types_allowed=True):
133
132
  if options.publish:
134
133
  run([commands.pdm, "publish"])
135
134
  if options.commit:
136
- commit_msg = await ainput("Commit message: ")
135
+ commit_msg = await ainput("\nCommit message: ")
137
136
  run(
138
137
  [
139
- shlex_quote(commands.git),
138
+ commands.git,
140
139
  "commit",
141
140
  "-m",
142
141
  f"{commit_msg}",
143
142
  "--no-verify",
144
143
  "--",
145
144
  ".",
146
- ],
145
+ ]
147
146
  )
148
147
  run([commands.git, "push", "origin", "main"])
149
148
  await aprint("\nCrackerjack complete!\n")
@@ -37,7 +37,6 @@ enable_all = true
37
37
 
38
38
  [tool.bandit]
39
39
  target = [
40
- "__pypackages__",
41
40
  "crackerjack",
42
41
  ]
43
42
  skips = [
@@ -61,7 +60,7 @@ pythonVersion = "3.11"
61
60
 
62
61
  [project]
63
62
  name = "Crackerjack"
64
- version = "0.6.2"
63
+ version = "0.6.4"
65
64
  description = "Crackerjack code style"
66
65
  requires-python = ">=3.11"
67
66
  readme = "README.md"
@@ -37,7 +37,6 @@ enable_all = true
37
37
 
38
38
  [tool.bandit]
39
39
  target = [
40
- "__pypackages__",
41
40
  "crackerjack",
42
41
  ]
43
42
  skips = [
@@ -61,7 +60,7 @@ pythonVersion = "3.11"
61
60
 
62
61
  [project]
63
62
  name = "Crackerjack"
64
- version = "0.6.2"
63
+ version = "0.6.4"
65
64
  description = "Crackerjack code style"
66
65
  requires-python = ">=3.11"
67
66
  readme = "README.md"
File without changes
File without changes