vim-eof-comment 0.6.0__py3-none-any.whl → 0.6.2__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.
@@ -1 +1 @@
1
- [{ "C": "/* {comment} */", "H": "/* {comment} */", "Makefile": "# {comment}", "bash": "# {comment}", "c": "/* {comment} */", "cc": "/* {comment} */", "cpp": "/* {comment} */", "css": "/* {comment} */", "fish": "# {comment}", "h": "/* {comment} */", "hh": "/* {comment} */", "hpp": "/* {comment} */", "htm": "<!-- {comment} -->", "html": "<!-- {comment} -->", "javascript": "/* {comment} */", "javascriptreact": "/* {comment} */", "js": "/* {comment} */", "jsx": "/* {comment} */", "latex": "% {comment}", "lua": "-- {comment}", "make": "# {comment}", "markdown": "<!-- {comment} -->", "md": "<!-- {comment} -->", "mk": "# {comment}", "py": "# {comment}", "pyi": "# {comment}", "python": "# {comment}", "rb": "# {comment}", "rs": "/* {comment} */", "ruby": "# {comment}", "rust": "/* {comment} */", "sh": "# {comment}", "tex": "% {comment}", "toml": "# {comment}", "ts": "/* {comment} */", "tsx": "/* {comment} */", "typescript": "/* {comment} */", "typescriptreact": "/* {comment} */", "xhtml": "<!-- {comment} -->", "xml": "<!-- {comment} -->", "yaml": "# {comment}", "yml": "# {comment}", "zsh": "# {comment}" }, { "C": { "level": 2, "expandtab": true }, "H": { "level": 2, "expandtab": true }, "Makefile": { "level": 4, "expandtab": false }, "bash": { "level": 4, "expandtab": true }, "c": { "level": 2, "expandtab": true }, "cc": { "level": 2, "expandtab": true }, "cpp": { "level": 2, "expandtab": true }, "css": { "level": 4, "expandtab": true }, "fish": { "level": 4, "expandtab": true }, "h": { "level": 2, "expandtab": true }, "hh": { "level": 2, "expandtab": true }, "hpp": { "level": 2, "expandtab": true }, "htm": { "level": 2, "expandtab": true }, "html": { "level": 2, "expandtab": true }, "javascript": { "level": 4, "expandtab": true }, "javascriptreact": { "level": 4, "expandtab": true }, "js": { "level": 4, "expandtab": true }, "jsx": { "level": 4, "expandtab": true }, "latex": { "level": 2, "expandtab": true }, "lua": { "level": 4, "expandtab": true }, "make": { "level": 4, "expandtab": false }, "markdown": { "level": 2, "expandtab": true }, "md": { "level": 2, "expandtab": true }, "mk": { "level": 4, "expandtab": false }, "py": { "level": 4, "expandtab": true }, "pyi": { "level": 4, "expandtab": true }, "python": { "level": 4, "expandtab": true }, "rb": { "level": 2, "expandtab": true }, "rs": { "level": 4, "expandtab": true }, "ruby": { "level": 2, "expandtab": true }, "rust": { "level": 4, "expandtab": true }, "sh": { "level": 4, "expandtab": true }, "tex": { "level": 2, "expandtab": true }, "toml": { "level": 4, "expandtab": true }, "ts": { "level": 4, "expandtab": true }, "tsx": { "level": 4, "expandtab": true }, "typescript": { "level": 4, "expandtab": true }, "typescriptreact": { "level": 4, "expandtab": true }, "xhtml": { "level": 2, "expandtab": true }, "xml": { "level": 2, "expandtab": true }, "yaml": { "level": 2, "expandtab": true }, "yml": { "level": 2, "expandtab": true }, "zsh": { "level": 4, "expandtab": true } }]
1
+ [{ "C": "/* {comment} */", "H": "/* {comment} */", "Makefile": "# {comment}", "bash": "# {comment}", "c": "/* {comment} */", "c++": "/* {comment} */", "cc": "/* {comment} */", "coffee": "# {comment}", "cpp": "/* {comment} */", "cson": "# {comment}", "css": "/* {comment} */", "fish": "# {comment}", "h": "/* {comment} */", "hh": "/* {comment} */", "hpp": "/* {comment} */", "htm": "<!-- {comment} -->", "html": "<!-- {comment} -->", "javascript": "/* {comment} */", "javascriptreact": "/* {comment} */", "jl": "# {comment}", "js": "/* {comment} */", "jsonc": "/* {comment} */", "jsx": "/* {comment} */", "julia": "# {comment}", "latex": "% {comment}", "litcoffee": "# {comment}", "lua": "-- {comment}", "make": "# {comment}", "markdown": "<!-- {comment} -->", "md": "<!-- {comment} -->", "mk": "# {comment}", "py": "# {comment}", "pyi": "# {comment}", "python": "# {comment}", "rb": "# {comment}", "rs": "/* {comment} */", "ruby": "# {comment}", "rust": "/* {comment} */", "sh": "# {comment}", "tex": "% {comment}", "toml": "# {comment}", "ts": "/* {comment} */", "tsx": "/* {comment} */", "typescript": "/* {comment} */", "typescriptreact": "/* {comment} */", "xhtml": "<!-- {comment} -->", "xml": "<!-- {comment} -->", "yaml": "# {comment}", "yml": "# {comment}", "zsh": "# {comment}" }, { "C": {"level": 2, "expandtab": true}, "H": {"level": 2, "expandtab": true}, "Makefile": {"level": 4, "expandtab": false}, "bash": {"level": 4, "expandtab": true}, "c": {"level": 2, "expandtab": true}, "c++": {"level": 2, "expandtab": true}, "cc": {"level": 2, "expandtab": true}, "coffee": {"level": 4, "expandtab": true}, "cpp": {"level": 2, "expandtab": true}, "cson": {"level": 4, "expandtab": true}, "css": {"level": 4, "expandtab": true}, "fish": {"level": 4, "expandtab": true}, "h": {"level": 2, "expandtab": true}, "hh": {"level": 2, "expandtab": true}, "hpp": {"level": 2, "expandtab": true}, "htm": {"level": 2, "expandtab": true}, "html": {"level": 2, "expandtab": true}, "javascript": {"level": 4, "expandtab": true}, "javascriptreact": {"level": 4, "expandtab": true}, "jl": {"level": 4, "expandtab": true}, "js": {"level": 4, "expandtab": true}, "jsonc": {"level": 4, "expandtab": true}, "jsx": {"level": 4, "expandtab": true}, "julia": {"level": 4, "expandtab": true}, "latex": {"level": 2, "expandtab": true}, "litcoffee": {"level": 4, "expandtab": true}, "lua": {"level": 4, "expandtab": true}, "make": {"level": 4, "expandtab": false}, "markdown": {"level": 2, "expandtab": true}, "md": {"level": 2, "expandtab": true}, "mk": {"level": 4, "expandtab": false}, "py": {"level": 4, "expandtab": true}, "pyi": {"level": 4, "expandtab": true}, "python": {"level": 4, "expandtab": true}, "rb": {"level": 2, "expandtab": true}, "rs": {"level": 4, "expandtab": true}, "ruby": {"level": 2, "expandtab": true}, "rust": {"level": 4, "expandtab": true}, "sh": {"level": 4, "expandtab": true}, "tex": {"level": 2, "expandtab": true}, "toml": {"level": 4, "expandtab": true}, "ts": {"level": 4, "expandtab": true}, "tsx": {"level": 4, "expandtab": true}, "typescript": {"level": 4, "expandtab": true}, "typescriptreact": {"level": 4, "expandtab": true}, "xhtml": {"level": 2, "expandtab": true}, "xml": {"level": 2, "expandtab": true}, "yaml": {"level": 2, "expandtab": true}, "yml": {"level": 2, "expandtab": true}, "zsh": {"level": 4, "expandtab": true} }]
@@ -119,9 +119,9 @@ class Comments():
119
119
  if not (self.__is_available(lang)) or len(mapping) == 0:
120
120
  continue
121
121
 
122
- indent, expandtab = mapping.level, True
122
+ indent, expandtab = mapping["level"], True
123
123
  if len(mapping) > 1:
124
- expandtab = mapping.expandtab
124
+ expandtab = mapping["expandtab"]
125
125
 
126
126
  langs[lang] = IndentMap(level=indent, expandtab=expandtab)
127
127
 
vim_eof_comment/types.py CHANGED
@@ -293,19 +293,10 @@ class IndentMap(TypedDict):
293
293
  expandtab: bool
294
294
 
295
295
 
296
- class IndentHandler:
296
+ class IndentHandler(TypedDict):
297
297
  """
298
298
  An object containing ``ft_ext``, ``level`` and ``expandtab``.
299
299
 
300
- Parameters
301
- ----------
302
- ft_ext : str
303
- The file-extension/file-type.
304
- level : str
305
- The string representation of the indent level.
306
- expandtab : bool
307
- Whether to expand tabs or not.
308
-
309
300
  Attributes
310
301
  ----------
311
302
  ft_ext : str
@@ -320,26 +311,6 @@ class IndentHandler:
320
311
  level: str
321
312
  expandtab: bool
322
313
 
323
- def __init__(self, ft_ext: str, level: str, expandtab: bool):
324
- self.ft_ext = ft_ext
325
- self.level = level
326
- self.expandtab = expandtab
327
-
328
- def __iterables(self) -> Tuple[str, str, bool]:
329
- """
330
- Generate iterables.
331
-
332
- Returns
333
- -------
334
- Tuple[str, str, bool]
335
- The ``ft_ext``, ``level`` and ``expandtab`` attributes.
336
- """
337
- return (self.ft_ext, self.level, self.expandtab)
338
-
339
- def __iter__(self):
340
- """Iterate over objects."""
341
- yield from self.__iterables()
342
-
343
314
 
344
315
  class IOWrapperBool:
345
316
  """
vim_eof_comment/types.pyi CHANGED
@@ -219,19 +219,10 @@ class IndentMap(TypedDict):
219
219
  level: int
220
220
  expandtab: bool
221
221
 
222
- class IndentHandler:
222
+ class IndentHandler(TypedDict):
223
223
  """
224
224
  An object containing ``ft_ext``, ``level`` and ``expandtab``.
225
225
 
226
- Parameters
227
- ----------
228
- ft_ext : str
229
- The file-extension/file-type.
230
- level : str
231
- The string representation of the indent level.
232
- expandtab : bool
233
- Whether to expand tabs or not.
234
-
235
226
  Attributes
236
227
  ----------
237
228
  ft_ext : str
@@ -244,18 +235,6 @@ class IndentHandler:
244
235
  ft_ext: str
245
236
  level: str
246
237
  expandtab: bool
247
- def __init__(self, ft_ext: str, level: str, expandtab: bool) -> None: ...
248
- def __iterables(self) -> tuple[str, str, bool]:
249
- """
250
- Generate iterables.
251
-
252
- Returns
253
- -------
254
- Tuple[str, str, bool]
255
- The ``ft_ext``, ``level`` and ``expandtab`` attributes.
256
- """
257
- def __iter__(self):
258
- """Iterate over objects."""
259
238
 
260
239
  class IOWrapperBool:
261
240
  """
vim_eof_comment/util.py CHANGED
@@ -153,14 +153,14 @@ def gen_indent_maps(maps: List[IndentHandler]) -> Dict[str, IndentMap] | None:
153
153
  if mapping_len <= 1:
154
154
  raise ValueError(f"One of the custom mappings is not formatted properly! (`{mapping}`)")
155
155
 
156
- ext, level = mapping.ft_ext, mapping.level
156
+ ext, level = mapping["ft_ext"], mapping["level"]
157
157
  if ext in map_d.keys():
158
158
  continue
159
159
 
160
160
  mapping_len = mapping_len if mapping_len <= 3 else 3
161
161
  map_d[ext] = IndentMap(
162
162
  level=level,
163
- expandtab=True if mapping_len == 2 else mapping.expandtab
163
+ expandtab=True if mapping_len == 2 else mapping["expandtab"]
164
164
  )
165
165
 
166
166
  return map_d
@@ -83,6 +83,8 @@ version_info = VersionInfo([
83
83
  (0, 5, 2),
84
84
  (0, 5, 3),
85
85
  (0, 6, 0),
86
+ (0, 6, 1),
87
+ (0, 6, 2),
86
88
  ])
87
89
 
88
90
  __version__: str = str(version_info)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vim-eof-comment
3
- Version: 0.6.0
3
+ Version: 0.6.2
4
4
  Summary: Adds Vim EOF modeline comments for given filetypes in given directories
5
5
  Author-email: Guennadi Maximov C <g.maxc.fox@protonmail.com>
6
6
  Maintainer-email: Guennadi Maximov C <g.maxc.fox@protonmail.com>
@@ -14,11 +14,11 @@ vim_eof_comment/file.pyi,sha256=yqZh8ipC4X0GpMLVTUsw1UyiQ0JO6dY-_-0qGzJ3HF4,2317
14
14
  vim_eof_comment/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  vim_eof_comment/regex.py,sha256=48oxUO3YDdM30U0qAsqyH_AycYCrcnaQ6cghy3NXHrw,903
16
16
  vim_eof_comment/regex.pyi,sha256=W0ZX_J9mLRckCdBNE-Bl09hsQ61VFqjuLwDlevEeeUM,336
17
- vim_eof_comment/types.py,sha256=9DP25oIFcLwf1rbv1d8PCoL1J6bY_NOjFWjJyL4DA_I,13621
18
- vim_eof_comment/types.pyi,sha256=bBq_Jzl1HlczAG8ayFYS57Es_PcgU4cM-vuf-05VS60,11332
19
- vim_eof_comment/util.py,sha256=rgYlXi1epsNxFEFSElUG4zCoGb6WQoguH7uphcI0Y9Y,4256
17
+ vim_eof_comment/types.py,sha256=nMW7hGgWSDk1VvrRPUi6AzMccd3xnrZyA3u77i5DmZ4,12865
18
+ vim_eof_comment/types.pyi,sha256=AresdpyvrIsdIiuqFD2TX8XzZmHjv0E66Cd7mnGX9cg,10753
19
+ vim_eof_comment/util.py,sha256=syo6rX6e_b7rhE3BLWS9tMZBkXwFa4PVsbHF7n6BHsw,4265
20
20
  vim_eof_comment/util.pyi,sha256=twD4qk_fIL4ftQGbaGYmTSbKqE-RycAs5WTYBZ-HZsc,2653
21
- vim_eof_comment/version.py,sha256=XdpssUzLL8mKqe37XDXTnWKapxkyBiTVal2uanbjgNw,1906
21
+ vim_eof_comment/version.py,sha256=risfbGqPacADh1yxAHoTvDcNlR36uq49os3ZfJ4EzHA,1936
22
22
  vim_eof_comment/version.pyi,sha256=aiA3TyTJOk5eZFt7glPNzRBvVgCwSJDlOFSUqoMPFG4,488
23
23
  vim_eof_comment/args/__init__.py,sha256=Hyqun15456NVFLAJ3cpdtuNEz5XaFH93vfVlbC-aeuc,318
24
24
  vim_eof_comment/args/__init__.pyi,sha256=cXK7nEpYBveD4kxtVTe2x8oUxT9mhENS5r3wK3AAX2U,151
@@ -28,12 +28,12 @@ vim_eof_comment/args/parsing.py,sha256=Clp23emNb1X0KVbnwIY1egA4G1BJjMHiOPkoaNMdq
28
28
  vim_eof_comment/args/parsing.pyi,sha256=wJMDnW_dtIlv8NfTvf_JyTB7qwk_ZwLvCizp3GkFWhw,1741
29
29
  vim_eof_comment/comments/__init__.py,sha256=KIFAbugEKa8arCASaf7pKNHdzUC99N_T18D1CfaCOQs,292
30
30
  vim_eof_comment/comments/__init__.pyi,sha256=cecbbrShh0If8btwJ8zKYpBt9dIsMwrDXbdaBQqwUus,104
31
- vim_eof_comment/comments/filetypes.json,sha256=JpSrnBNO2AivLYi-C5--8yVocyBwye3IkMesNIz1uHA,2973
32
- vim_eof_comment/comments/generator.py,sha256=pCv6FFVCo4GscsB7-cbh-C8Ds19gYZ9dZAX2li9IZkc,7786
31
+ vim_eof_comment/comments/filetypes.json,sha256=45GwdplLqldAX3mqvpHq8GMZ3X7FY0rPBnknibFuuKw,3355
32
+ vim_eof_comment/comments/generator.py,sha256=k4C7w-C4wNJtEu9clf2f4vp-WzJlzzTfGtynV0FIwSE,7792
33
33
  vim_eof_comment/comments/generator.pyi,sha256=MAT7N0bPQE2IswSWOyiELnldbsBcjVsnIwSj4ltkI4g,3665
34
- vim_eof_comment-0.6.0.dist-info/licenses/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
35
- vim_eof_comment-0.6.0.dist-info/METADATA,sha256=UuN2LfHn7DksUxHDDXT6QHkX72m5qHEOEP8r3YN6n2o,2826
36
- vim_eof_comment-0.6.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
37
- vim_eof_comment-0.6.0.dist-info/entry_points.txt,sha256=vm47g4hoUbow4elcHr9yylYfj6IvAs10wSFKqwqTu6E,61
38
- vim_eof_comment-0.6.0.dist-info/top_level.txt,sha256=TkaQ5vuhVzXaJnfUdcLJCQ81ILK2V6OtvX5-hIMZAc0,21
39
- vim_eof_comment-0.6.0.dist-info/RECORD,,
34
+ vim_eof_comment-0.6.2.dist-info/licenses/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
35
+ vim_eof_comment-0.6.2.dist-info/METADATA,sha256=Z8Q8xvXelnrol1zx3TK6Q0aOq3_kwqZ-Yc4l0mrlv1E,2826
36
+ vim_eof_comment-0.6.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
37
+ vim_eof_comment-0.6.2.dist-info/entry_points.txt,sha256=vm47g4hoUbow4elcHr9yylYfj6IvAs10wSFKqwqTu6E,61
38
+ vim_eof_comment-0.6.2.dist-info/top_level.txt,sha256=TkaQ5vuhVzXaJnfUdcLJCQ81ILK2V6OtvX5-hIMZAc0,21
39
+ vim_eof_comment-0.6.2.dist-info/RECORD,,