crackerjack 0.4.1__tar.gz → 0.4.2__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.4.1
3
+ Version: 0.4.2
4
4
  Summary: Crackerjack code style
5
5
  Keywords: black ruff mypy creosote refurb
6
6
  Home-page: https://github.com/lesleslie/crackerjack
@@ -21,8 +21,8 @@ Requires-Dist: aioconsole>=0.6.2
21
21
  Requires-Dist: pydantic>=2.3.0
22
22
  Requires-Dist: inflection>=0.5.1
23
23
  Requires-Dist: acb>=0.1.12
24
- Requires-Dist: tomli-w>=1.0.0
25
24
  Requires-Dist: pdm-bump>=0.7.3
25
+ Requires-Dist: pyright>=1.1.327
26
26
  Description-Content-Type: text/markdown
27
27
 
28
28
  # Crackerjack Python
@@ -7,8 +7,6 @@
7
7
  /dist/
8
8
  /.mypy_cache/
9
9
  /.ruff_cache/
10
- /.pyanalyze-report.json
11
- /.pyanalyze-report.md
12
10
  /.pdm-build/
13
11
  /tmp/
14
12
  /__pycache__/
@@ -45,7 +45,7 @@ pythonVersion = "3.11"
45
45
 
46
46
  [project]
47
47
  name = "Crackerjack"
48
- version = "0.4.1"
48
+ version = "0.4.2"
49
49
  description = "Crackerjack code style"
50
50
  requires-python = ">=3.11"
51
51
  readme = "README.md"
@@ -69,8 +69,8 @@ dependencies = [
69
69
  "pydantic>=2.3.0",
70
70
  "inflection>=0.5.1",
71
71
  "acb>=0.1.12",
72
- "tomli-w>=1.0.0",
73
72
  "pdm-bump>=0.7.3",
73
+ "pyright>=1.1.327",
74
74
  ]
75
75
  authors = [
76
76
  { name = "lesleslie", email = "les@wedgwoodwebworks.com" },
@@ -64,7 +64,7 @@ pythonVersion = "3.11"
64
64
 
65
65
  [project]
66
66
  name = "Crackerjack"
67
- version = "0.4.1"
67
+ version = "0.4.2"
68
68
  description = "Crackerjack code style"
69
69
  requires-python = ">=3.11"
70
70
  readme = "README.md"
@@ -88,8 +88,8 @@ dependencies = [
88
88
  "pydantic>=2.3.0",
89
89
  "inflection>=0.5.1",
90
90
  "acb>=0.1.12",
91
- "tomli-w>=1.0.0",
92
91
  "pdm-bump>=0.7.3",
92
+ "pyright>=1.1.327",
93
93
  ]
94
94
  authors = [
95
95
  { name = "lesleslie", email = "les@wedgwoodwebworks.com" },
@@ -1,92 +0,0 @@
1
- [
2
- {
3
- "description": "Object of type bytes does not support '__setitem__'",
4
- "filename": "crackerjack/crackerjack.py",
5
- "absolute_filename": "/Users/les/Projects/crackerjack/crackerjack/crackerjack.py",
6
- "code": "unsupported_operation",
7
- "lineno": 46,
8
- "col_offset": 8,
9
- "context": " 43: if self.poetry_pip_env:\n 44: del pkg_toml_config[\"tool\"][\"poetry\"]\n 45: pkg_deps = pkg_toml_config[\"tool\"][\"pdm\"][\"dev-dependencies\"]\n 46: pkg_toml_config[\"tool\"] = our_toml_config[\"tool\"]\n ^\n 47: for tool, settings in pkg_toml_config[\"tool\"].items():\n 48: for setting, value in settings.items():\n 49: if isinstance(value, str | list) and \"crackerjack\" in value:\n",
10
- "message": "\nObject of type bytes does not support '__setitem__' (code: unsupported_operation)\nIn crackerjack/crackerjack.py at line 46\n 43: if self.poetry_pip_env:\n 44: del pkg_toml_config[\"tool\"][\"poetry\"]\n 45: pkg_deps = pkg_toml_config[\"tool\"][\"pdm\"][\"dev-dependencies\"]\n 46: pkg_toml_config[\"tool\"] = our_toml_config[\"tool\"]\n ^\n 47: for tool, settings in pkg_toml_config[\"tool\"].items():\n 48: for setting, value in settings.items():\n 49: if isinstance(value, str | list) and \"crackerjack\" in value:\n"
11
- },
12
- {
13
- "description": "Cannot call overloaded function",
14
- "filename": "crackerjack/crackerjack.py",
15
- "absolute_filename": "/Users/les/Projects/crackerjack/crackerjack/crackerjack.py",
16
- "code": "incompatible_argument",
17
- "lineno": 44,
18
- "col_offset": 16,
19
- "context": " 41: our_toml_config = await load.toml(self.our_toml_path) # type: ignore\n 42: pkg_toml_config = await load.toml(self.pkg_toml_path) # type: ignore\n 43: if self.poetry_pip_env:\n 44: del pkg_toml_config[\"tool\"][\"poetry\"]\n ^\n 45: pkg_deps = pkg_toml_config[\"tool\"][\"pdm\"][\"dev-dependencies\"]\n 46: pkg_toml_config[\"tool\"] = our_toml_config[\"tool\"]\n 47: for tool, settings in pkg_toml_config[\"tool\"].items():\n",
20
- "message": "\nCannot call overloaded function (code: incompatible_argument)\n In overload (self, key: typing_extensions.SupportsIndex (Protocol with members '__index__'), /) -> int\n Incompatible argument type for key: expected typing_extensions.SupportsIndex (Protocol with members '__index__') but got Literal['tool']\n Literal['tool'] has no attribute '__index__'\n\n In overload (self, key: slice, /) -> bytes\n Incompatible argument type for key: expected slice but got Literal['tool']\n Cannot assign Literal['tool'] to slice\n\n\nIn crackerjack/crackerjack.py at line 44\n 41: our_toml_config = await load.toml(self.our_toml_path) # type: ignore\n 42: pkg_toml_config = await load.toml(self.pkg_toml_path) # type: ignore\n 43: if self.poetry_pip_env:\n 44: del pkg_toml_config[\"tool\"][\"poetry\"]\n ^\n 45: pkg_deps = pkg_toml_config[\"tool\"][\"pdm\"][\"dev-dependencies\"]\n 46: pkg_toml_config[\"tool\"] = our_toml_config[\"tool\"]\n 47: for tool, settings in pkg_toml_config[\"tool\"].items():\n"
21
- },
22
- {
23
- "description": "Cannot call overloaded function",
24
- "filename": "crackerjack/crackerjack.py",
25
- "absolute_filename": "/Users/les/Projects/crackerjack/crackerjack/crackerjack.py",
26
- "code": "incompatible_argument",
27
- "lineno": 45,
28
- "col_offset": 19,
29
- "context": " 42: pkg_toml_config = await load.toml(self.pkg_toml_path) # type: ignore\n 43: if self.poetry_pip_env:\n 44: del pkg_toml_config[\"tool\"][\"poetry\"]\n 45: pkg_deps = pkg_toml_config[\"tool\"][\"pdm\"][\"dev-dependencies\"]\n ^\n 46: pkg_toml_config[\"tool\"] = our_toml_config[\"tool\"]\n 47: for tool, settings in pkg_toml_config[\"tool\"].items():\n 48: for setting, value in settings.items():\n",
30
- "message": "\nCannot call overloaded function (code: incompatible_argument)\n In overload (self, key: typing_extensions.SupportsIndex (Protocol with members '__index__'), /) -> int\n Incompatible argument type for key: expected typing_extensions.SupportsIndex (Protocol with members '__index__') but got Literal['tool']\n Literal['tool'] has no attribute '__index__'\n\n In overload (self, key: slice, /) -> bytes\n Incompatible argument type for key: expected slice but got Literal['tool']\n Cannot assign Literal['tool'] to slice\n\n\nIn crackerjack/crackerjack.py at line 45\n 42: pkg_toml_config = await load.toml(self.pkg_toml_path) # type: ignore\n 43: if self.poetry_pip_env:\n 44: del pkg_toml_config[\"tool\"][\"poetry\"]\n 45: pkg_deps = pkg_toml_config[\"tool\"][\"pdm\"][\"dev-dependencies\"]\n ^\n 46: pkg_toml_config[\"tool\"] = our_toml_config[\"tool\"]\n 47: for tool, settings in pkg_toml_config[\"tool\"].items():\n 48: for setting, value in settings.items():\n"
31
- },
32
- {
33
- "description": "Cannot call overloaded function",
34
- "filename": "crackerjack/crackerjack.py",
35
- "absolute_filename": "/Users/les/Projects/crackerjack/crackerjack/crackerjack.py",
36
- "code": "incompatible_argument",
37
- "lineno": 46,
38
- "col_offset": 34,
39
- "context": " 43: if self.poetry_pip_env:\n 44: del pkg_toml_config[\"tool\"][\"poetry\"]\n 45: pkg_deps = pkg_toml_config[\"tool\"][\"pdm\"][\"dev-dependencies\"]\n 46: pkg_toml_config[\"tool\"] = our_toml_config[\"tool\"]\n ^\n 47: for tool, settings in pkg_toml_config[\"tool\"].items():\n 48: for setting, value in settings.items():\n 49: if isinstance(value, str | list) and \"crackerjack\" in value:\n",
40
- "message": "\nCannot call overloaded function (code: incompatible_argument)\n In overload (self, key: typing_extensions.SupportsIndex (Protocol with members '__index__'), /) -> int\n Incompatible argument type for key: expected typing_extensions.SupportsIndex (Protocol with members '__index__') but got Literal['tool']\n Literal['tool'] has no attribute '__index__'\n\n In overload (self, key: slice, /) -> bytes\n Incompatible argument type for key: expected slice but got Literal['tool']\n Cannot assign Literal['tool'] to slice\n\n\nIn crackerjack/crackerjack.py at line 46\n 43: if self.poetry_pip_env:\n 44: del pkg_toml_config[\"tool\"][\"poetry\"]\n 45: pkg_deps = pkg_toml_config[\"tool\"][\"pdm\"][\"dev-dependencies\"]\n 46: pkg_toml_config[\"tool\"] = our_toml_config[\"tool\"]\n ^\n 47: for tool, settings in pkg_toml_config[\"tool\"].items():\n 48: for setting, value in settings.items():\n 49: if isinstance(value, str | list) and \"crackerjack\" in value:\n"
41
- },
42
- {
43
- "description": "Cannot call overloaded function",
44
- "filename": "crackerjack/crackerjack.py",
45
- "absolute_filename": "/Users/les/Projects/crackerjack/crackerjack/crackerjack.py",
46
- "code": "incompatible_argument",
47
- "lineno": 47,
48
- "col_offset": 30,
49
- "context": " 44: del pkg_toml_config[\"tool\"][\"poetry\"]\n 45: pkg_deps = pkg_toml_config[\"tool\"][\"pdm\"][\"dev-dependencies\"]\n 46: pkg_toml_config[\"tool\"] = our_toml_config[\"tool\"]\n 47: for tool, settings in pkg_toml_config[\"tool\"].items():\n ^\n 48: for setting, value in settings.items():\n 49: if isinstance(value, str | list) and \"crackerjack\" in value:\n 50: if isinstance(value, str):\n",
50
- "message": "\nCannot call overloaded function (code: incompatible_argument)\n In overload (self, key: typing_extensions.SupportsIndex (Protocol with members '__index__'), /) -> int\n Incompatible argument type for key: expected typing_extensions.SupportsIndex (Protocol with members '__index__') but got Literal['tool']\n Literal['tool'] has no attribute '__index__'\n\n In overload (self, key: slice, /) -> bytes\n Incompatible argument type for key: expected slice but got Literal['tool']\n Cannot assign Literal['tool'] to slice\n\n\nIn crackerjack/crackerjack.py at line 47\n 44: del pkg_toml_config[\"tool\"][\"poetry\"]\n 45: pkg_deps = pkg_toml_config[\"tool\"][\"pdm\"][\"dev-dependencies\"]\n 46: pkg_toml_config[\"tool\"] = our_toml_config[\"tool\"]\n 47: for tool, settings in pkg_toml_config[\"tool\"].items():\n ^\n 48: for setting, value in settings.items():\n 49: if isinstance(value, str | list) and \"crackerjack\" in value:\n 50: if isinstance(value, str):\n"
51
- },
52
- {
53
- "description": "Cannot call overloaded function",
54
- "filename": "crackerjack/crackerjack.py",
55
- "absolute_filename": "/Users/les/Projects/crackerjack/crackerjack/crackerjack.py",
56
- "code": "incompatible_argument",
57
- "lineno": 56,
58
- "col_offset": 8,
59
- "context": " 53: value.remove(\"crackerjack\")\n 54: value.append(self.pkg_name)\n 55: settings[setting] = value\n 56: pkg_toml_config[\"tool\"][\"pdm\"][\"dev-dependencies\"] = pkg_deps\n ^\n 57: if self.pkg_path.stem == \"crackerjack\":\n 58: await dump.toml(pkg_toml_config, self.our_toml_path) # type: ignore\n 59: else:\n",
60
- "message": "\nCannot call overloaded function (code: incompatible_argument)\n In overload (self, key: typing_extensions.SupportsIndex (Protocol with members '__index__'), /) -> int\n Incompatible argument type for key: expected typing_extensions.SupportsIndex (Protocol with members '__index__') but got Literal['tool']\n Literal['tool'] has no attribute '__index__'\n\n In overload (self, key: slice, /) -> bytes\n Incompatible argument type for key: expected slice but got Literal['tool']\n Cannot assign Literal['tool'] to slice\n\n\nIn crackerjack/crackerjack.py at line 56\n 53: value.remove(\"crackerjack\")\n 54: value.append(self.pkg_name)\n 55: settings[setting] = value\n 56: pkg_toml_config[\"tool\"][\"pdm\"][\"dev-dependencies\"] = pkg_deps\n ^\n 57: if self.pkg_path.stem == \"crackerjack\":\n 58: await dump.toml(pkg_toml_config, self.our_toml_path) # type: ignore\n 59: else:\n"
61
- },
62
- {
63
- "description": "Incompatible argument type for obj: expected Union[str, os.PathLike (Protocol with members '__fspath__'), dict] but got Union[dict, bytes]",
64
- "filename": "crackerjack/crackerjack.py",
65
- "absolute_filename": "/Users/les/Projects/crackerjack/crackerjack/crackerjack.py",
66
- "code": "incompatible_argument",
67
- "lineno": 58,
68
- "col_offset": 28,
69
- "context": " 55: settings[setting] = value\n 56: pkg_toml_config[\"tool\"][\"pdm\"][\"dev-dependencies\"] = pkg_deps\n 57: if self.pkg_path.stem == \"crackerjack\":\n 58: await dump.toml(pkg_toml_config, self.our_toml_path) # type: ignore\n ^\n 59: else:\n 60: await dump.toml(pkg_toml_config, self.pkg_toml_path) # type: ignore\n 61: \n",
70
- "message": "\nIncompatible argument type for obj: expected Union[str, os.PathLike (Protocol with members '__fspath__'), dict] but got Union[dict, bytes] (code: incompatible_argument)\n Cannot assign to Union\n Cannot assign bytes to str\n bytes has no attribute '__fspath__'\n Cannot assign bytes to dict\n\nIn crackerjack/crackerjack.py at line 58\n 55: settings[setting] = value\n 56: pkg_toml_config[\"tool\"][\"pdm\"][\"dev-dependencies\"] = pkg_deps\n 57: if self.pkg_path.stem == \"crackerjack\":\n 58: await dump.toml(pkg_toml_config, self.our_toml_path) # type: ignore\n ^\n 59: else:\n 60: await dump.toml(pkg_toml_config, self.pkg_toml_path) # type: ignore\n 61: \n"
71
- },
72
- {
73
- "description": "Incompatible argument type for obj: expected Union[str, os.PathLike (Protocol with members '__fspath__'), dict] but got Union[dict, bytes]",
74
- "filename": "crackerjack/crackerjack.py",
75
- "absolute_filename": "/Users/les/Projects/crackerjack/crackerjack/crackerjack.py",
76
- "code": "incompatible_argument",
77
- "lineno": 60,
78
- "col_offset": 28,
79
- "context": " 57: if self.pkg_path.stem == \"crackerjack\":\n 58: await dump.toml(pkg_toml_config, self.our_toml_path) # type: ignore\n 59: else:\n 60: await dump.toml(pkg_toml_config, self.pkg_toml_path) # type: ignore\n ^\n 61: \n 62: async def clean_poetry_pipenv(self) -> None:\n 63: root_files = [\n",
80
- "message": "\nIncompatible argument type for obj: expected Union[str, os.PathLike (Protocol with members '__fspath__'), dict] but got Union[dict, bytes] (code: incompatible_argument)\n Cannot assign to Union\n Cannot assign bytes to str\n bytes has no attribute '__fspath__'\n Cannot assign bytes to dict\n\nIn crackerjack/crackerjack.py at line 60\n 57: if self.pkg_path.stem == \"crackerjack\":\n 58: await dump.toml(pkg_toml_config, self.our_toml_path) # type: ignore\n 59: else:\n 60: await dump.toml(pkg_toml_config, self.pkg_toml_path) # type: ignore\n ^\n 61: \n 62: async def clean_poetry_pipenv(self) -> None:\n 63: root_files = [\n"
81
- },
82
- {
83
- "description": "Variable tool is never accessed",
84
- "filename": "crackerjack/crackerjack.py",
85
- "absolute_filename": "/Users/les/Projects/crackerjack/crackerjack/crackerjack.py",
86
- "code": "unused_variable",
87
- "lineno": 47,
88
- "col_offset": 12,
89
- "context": " 44: del pkg_toml_config[\"tool\"][\"poetry\"]\n 45: pkg_deps = pkg_toml_config[\"tool\"][\"pdm\"][\"dev-dependencies\"]\n 46: pkg_toml_config[\"tool\"] = our_toml_config[\"tool\"]\n 47: for tool, settings in pkg_toml_config[\"tool\"].items():\n ^\n 48: for setting, value in settings.items():\n 49: if isinstance(value, str | list) and \"crackerjack\" in value:\n 50: if isinstance(value, str):\n",
90
- "message": "\nVariable tool is never accessed (code: unused_variable)\nIn crackerjack/crackerjack.py at line 47\n 44: del pkg_toml_config[\"tool\"][\"poetry\"]\n 45: pkg_deps = pkg_toml_config[\"tool\"][\"pdm\"][\"dev-dependencies\"]\n 46: pkg_toml_config[\"tool\"] = our_toml_config[\"tool\"]\n 47: for tool, settings in pkg_toml_config[\"tool\"].items():\n ^\n 48: for setting, value in settings.items():\n 49: if isinstance(value, str | list) and \"crackerjack\" in value:\n 50: if isinstance(value, str):\n"
91
- }
92
- ]
@@ -1,168 +0,0 @@
1
- 9 total failures in 1 files
2
-
3
-
4
- ### (9 failures)
5
-
6
- * line 44: `Cannot call overloaded function (code: incompatible_argument)`
7
- ```
8
- In overload (self, key: typing_extensions.SupportsIndex (Protocol with members '__index__'), /) -> int
9
- Incompatible argument type for key: expected typing_extensions.SupportsIndex (Protocol with members '__index__') but got Literal['tool']
10
- Literal['tool'] has no attribute '__index__'
11
-
12
- In overload (self, key: slice, /) -> bytes
13
- Incompatible argument type for key: expected slice but got Literal['tool']
14
- Cannot assign Literal['tool'] to slice
15
-
16
-
17
- In crackerjack/crackerjack.py at line 44
18
- 41: our_toml_config = await load.toml(self.our_toml_path) # type: ignore
19
- 42: pkg_toml_config = await load.toml(self.pkg_toml_path) # type: ignore
20
- 43: if self.poetry_pip_env:
21
- 44: del pkg_toml_config["tool"]["poetry"]
22
- ^
23
- 45: pkg_deps = pkg_toml_config["tool"]["pdm"]["dev-dependencies"]
24
- 46: pkg_toml_config["tool"] = our_toml_config["tool"]
25
- 47: for tool, settings in pkg_toml_config["tool"].items():
26
- ```
27
- * line 45: `Cannot call overloaded function (code: incompatible_argument)`
28
- ```
29
- In overload (self, key: typing_extensions.SupportsIndex (Protocol with members '__index__'), /) -> int
30
- Incompatible argument type for key: expected typing_extensions.SupportsIndex (Protocol with members '__index__') but got Literal['tool']
31
- Literal['tool'] has no attribute '__index__'
32
-
33
- In overload (self, key: slice, /) -> bytes
34
- Incompatible argument type for key: expected slice but got Literal['tool']
35
- Cannot assign Literal['tool'] to slice
36
-
37
-
38
- In crackerjack/crackerjack.py at line 45
39
- 42: pkg_toml_config = await load.toml(self.pkg_toml_path) # type: ignore
40
- 43: if self.poetry_pip_env:
41
- 44: del pkg_toml_config["tool"]["poetry"]
42
- 45: pkg_deps = pkg_toml_config["tool"]["pdm"]["dev-dependencies"]
43
- ^
44
- 46: pkg_toml_config["tool"] = our_toml_config["tool"]
45
- 47: for tool, settings in pkg_toml_config["tool"].items():
46
- 48: for setting, value in settings.items():
47
- ```
48
- * line 46: `Object of type bytes does not support '__setitem__' (code: unsupported_operation)`
49
- ```
50
- In crackerjack/crackerjack.py at line 46
51
- 43: if self.poetry_pip_env:
52
- 44: del pkg_toml_config["tool"]["poetry"]
53
- 45: pkg_deps = pkg_toml_config["tool"]["pdm"]["dev-dependencies"]
54
- 46: pkg_toml_config["tool"] = our_toml_config["tool"]
55
- ^
56
- 47: for tool, settings in pkg_toml_config["tool"].items():
57
- 48: for setting, value in settings.items():
58
- 49: if isinstance(value, str | list) and "crackerjack" in value:
59
- ```
60
- * line 46: `Cannot call overloaded function (code: incompatible_argument)`
61
- ```
62
- In overload (self, key: typing_extensions.SupportsIndex (Protocol with members '__index__'), /) -> int
63
- Incompatible argument type for key: expected typing_extensions.SupportsIndex (Protocol with members '__index__') but got Literal['tool']
64
- Literal['tool'] has no attribute '__index__'
65
-
66
- In overload (self, key: slice, /) -> bytes
67
- Incompatible argument type for key: expected slice but got Literal['tool']
68
- Cannot assign Literal['tool'] to slice
69
-
70
-
71
- In crackerjack/crackerjack.py at line 46
72
- 43: if self.poetry_pip_env:
73
- 44: del pkg_toml_config["tool"]["poetry"]
74
- 45: pkg_deps = pkg_toml_config["tool"]["pdm"]["dev-dependencies"]
75
- 46: pkg_toml_config["tool"] = our_toml_config["tool"]
76
- ^
77
- 47: for tool, settings in pkg_toml_config["tool"].items():
78
- 48: for setting, value in settings.items():
79
- 49: if isinstance(value, str | list) and "crackerjack" in value:
80
- ```
81
- * line 47: `Cannot call overloaded function (code: incompatible_argument)`
82
- ```
83
- In overload (self, key: typing_extensions.SupportsIndex (Protocol with members '__index__'), /) -> int
84
- Incompatible argument type for key: expected typing_extensions.SupportsIndex (Protocol with members '__index__') but got Literal['tool']
85
- Literal['tool'] has no attribute '__index__'
86
-
87
- In overload (self, key: slice, /) -> bytes
88
- Incompatible argument type for key: expected slice but got Literal['tool']
89
- Cannot assign Literal['tool'] to slice
90
-
91
-
92
- In crackerjack/crackerjack.py at line 47
93
- 44: del pkg_toml_config["tool"]["poetry"]
94
- 45: pkg_deps = pkg_toml_config["tool"]["pdm"]["dev-dependencies"]
95
- 46: pkg_toml_config["tool"] = our_toml_config["tool"]
96
- 47: for tool, settings in pkg_toml_config["tool"].items():
97
- ^
98
- 48: for setting, value in settings.items():
99
- 49: if isinstance(value, str | list) and "crackerjack" in value:
100
- 50: if isinstance(value, str):
101
- ```
102
- * line 47: `Variable tool is never accessed (code: unused_variable)`
103
- ```
104
- In crackerjack/crackerjack.py at line 47
105
- 44: del pkg_toml_config["tool"]["poetry"]
106
- 45: pkg_deps = pkg_toml_config["tool"]["pdm"]["dev-dependencies"]
107
- 46: pkg_toml_config["tool"] = our_toml_config["tool"]
108
- 47: for tool, settings in pkg_toml_config["tool"].items():
109
- ^
110
- 48: for setting, value in settings.items():
111
- 49: if isinstance(value, str | list) and "crackerjack" in value:
112
- 50: if isinstance(value, str):
113
- ```
114
- * line 56: `Cannot call overloaded function (code: incompatible_argument)`
115
- ```
116
- In overload (self, key: typing_extensions.SupportsIndex (Protocol with members '__index__'), /) -> int
117
- Incompatible argument type for key: expected typing_extensions.SupportsIndex (Protocol with members '__index__') but got Literal['tool']
118
- Literal['tool'] has no attribute '__index__'
119
-
120
- In overload (self, key: slice, /) -> bytes
121
- Incompatible argument type for key: expected slice but got Literal['tool']
122
- Cannot assign Literal['tool'] to slice
123
-
124
-
125
- In crackerjack/crackerjack.py at line 56
126
- 53: value.remove("crackerjack")
127
- 54: value.append(self.pkg_name)
128
- 55: settings[setting] = value
129
- 56: pkg_toml_config["tool"]["pdm"]["dev-dependencies"] = pkg_deps
130
- ^
131
- 57: if self.pkg_path.stem == "crackerjack":
132
- 58: await dump.toml(pkg_toml_config, self.our_toml_path) # type: ignore
133
- 59: else:
134
- ```
135
- * line 58: `Incompatible argument type for obj: expected Union[str, os.PathLike (Protocol with members '__fspath__'), dict] but got Union[dict, bytes] (code: incompatible_argument)`
136
- ```
137
- Cannot assign to Union
138
- Cannot assign bytes to str
139
- bytes has no attribute '__fspath__'
140
- Cannot assign bytes to dict
141
-
142
- In crackerjack/crackerjack.py at line 58
143
- 55: settings[setting] = value
144
- 56: pkg_toml_config["tool"]["pdm"]["dev-dependencies"] = pkg_deps
145
- 57: if self.pkg_path.stem == "crackerjack":
146
- 58: await dump.toml(pkg_toml_config, self.our_toml_path) # type: ignore
147
- ^
148
- 59: else:
149
- 60: await dump.toml(pkg_toml_config, self.pkg_toml_path) # type: ignore
150
- 61:
151
- ```
152
- * line 60: `Incompatible argument type for obj: expected Union[str, os.PathLike (Protocol with members '__fspath__'), dict] but got Union[dict, bytes] (code: incompatible_argument)`
153
- ```
154
- Cannot assign to Union
155
- Cannot assign bytes to str
156
- bytes has no attribute '__fspath__'
157
- Cannot assign bytes to dict
158
-
159
- In crackerjack/crackerjack.py at line 60
160
- 57: if self.pkg_path.stem == "crackerjack":
161
- 58: await dump.toml(pkg_toml_config, self.our_toml_path) # type: ignore
162
- 59: else:
163
- 60: await dump.toml(pkg_toml_config, self.pkg_toml_path) # type: ignore
164
- ^
165
- 61:
166
- 62: async def clean_poetry_pipenv(self) -> None:
167
- 63: root_files = [
168
- ```
File without changes
File without changes