vim-eof-comment 0.6.0__tar.gz → 0.6.1__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.
Files changed (60) hide show
  1. vim_eof_comment-0.6.1/.github/FUNDING.yml +3 -0
  2. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/.github/workflows/flake8-lint.yml +2 -0
  3. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/.github/workflows/mypy-lint.yml +2 -0
  4. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/.github/workflows/release.yml +2 -0
  5. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/.github/workflows/vim-eof-comment.yml +3 -1
  6. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/Makefile +1 -1
  7. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/PKG-INFO +1 -1
  8. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/pyproject.toml +1 -1
  9. vim_eof_comment-0.6.1/version.txt +1 -0
  10. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/comments/generator.py +2 -2
  11. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/types.py +1 -30
  12. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/types.pyi +1 -22
  13. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/util.py +2 -2
  14. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/version.py +1 -0
  15. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment.egg-info/PKG-INFO +1 -1
  16. vim_eof_comment-0.6.0/.github/FUNDING.yml +0 -1
  17. vim_eof_comment-0.6.0/version.txt +0 -1
  18. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/.flake8 +0 -0
  19. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/.gitattributes +0 -0
  20. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/.github/CODEOWNERS +0 -0
  21. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/.pre-commit-config.yaml +0 -0
  22. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/CHANGELOG.md +0 -0
  23. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/LICENSE +0 -0
  24. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/README.md +0 -0
  25. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/docs/Makefile +0 -0
  26. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/docs/make.bat +0 -0
  27. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/docs/source/conf.py +0 -0
  28. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/docs/source/functions.rst +0 -0
  29. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/docs/source/index.rst +0 -0
  30. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/docs/source/installation.rst +0 -0
  31. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/requirements.txt +0 -0
  32. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/setup.cfg +0 -0
  33. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/taplo.toml +0 -0
  34. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/__init__.py +0 -0
  35. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/__init__.pyi +0 -0
  36. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/__main__.py +0 -0
  37. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/args/__init__.py +0 -0
  38. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/args/__init__.pyi +0 -0
  39. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/args/completion.py +0 -0
  40. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/args/completion.pyi +0 -0
  41. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/args/parsing.py +0 -0
  42. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/args/parsing.pyi +0 -0
  43. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/comments/__init__.py +0 -0
  44. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/comments/__init__.pyi +0 -0
  45. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/comments/filetypes.json +0 -0
  46. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/comments/generator.pyi +0 -0
  47. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/eof.py +0 -0
  48. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/eof.pyi +0 -0
  49. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/file.py +0 -0
  50. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/file.pyi +0 -0
  51. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/py.typed +0 -0
  52. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/regex.py +0 -0
  53. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/regex.pyi +0 -0
  54. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/util.pyi +0 -0
  55. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment/version.pyi +0 -0
  56. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment.egg-info/SOURCES.txt +0 -0
  57. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment.egg-info/dependency_links.txt +0 -0
  58. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment.egg-info/entry_points.txt +0 -0
  59. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment.egg-info/requires.txt +0 -0
  60. {vim_eof_comment-0.6.0 → vim_eof_comment-0.6.1}/vim_eof_comment.egg-info/top_level.txt +0 -0
@@ -0,0 +1,3 @@
1
+ github: DrKJeff16
2
+
3
+ # vim: set ts=2 sts=2 sw=2 et ai si sta:
@@ -38,3 +38,5 @@ jobs:
38
38
  path: "vim_eof_comment"
39
39
  plugins: "flake8-pyi"
40
40
  exclude: ".tox,.git,*staticfiles*,build,locale,docs,tools,venv,.venv,*migrations*,*.pyc,*.pyi,__pycache__,test_*.py"
41
+
42
+ # vim: set ts=2 sts=2 sw=2 et ai si sta:
@@ -35,3 +35,5 @@ jobs:
35
35
  checkName: mypy-lint # NOTE: this needs to be the same as the job name
36
36
  env:
37
37
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38
+
39
+ # vim: set ts=2 sts=2 sw=2 et ai si sta:
@@ -101,3 +101,5 @@ jobs:
101
101
  uses: pypa/gh-action-pypi-publish@v1.13.0
102
102
  with:
103
103
  packages-dir: dist/
104
+
105
+ # vim: set ts=2 sts=2 sw=2 et ai si sta:
@@ -28,10 +28,12 @@ jobs:
28
28
  pip install -U vim-eof-comment
29
29
  - name: Run vim-eof-comment
30
30
  run: |
31
- vim-eof-comment -e py,pyi,md,Makefile,yaml,toml -i py:4:Y,pyi:4:Y,md:2:Y -nv .
31
+ vim-eof-comment -e py,pyi,md,Makefile,yaml,yml,toml -i py:4:Y,pyi:4:Y,md:2:Y -nv .
32
32
  - name: Auto Commit Changes
33
33
  uses: stefanzweifel/git-auto-commit-action@v7.1.0
34
34
  with:
35
35
  commit_message: "chore: format files with `vim-eof-comment`"
36
36
  commit_options: "--signoff"
37
37
  branch: ${{ github.head_ref }}
38
+
39
+ # vim: set ts=2 sts=2 sw=2 et ai si sta:
@@ -62,7 +62,7 @@ local-install: build
62
62
 
63
63
  run-script:
64
64
  @echo -e "Running vim-eof-comment..."
65
- @vim-eof-comment -e py,pyi,Makefile,md -nv .
65
+ @vim-eof-comment -e py,pyi,Makefile,md,yaml,yml,toml -nv .
66
66
  @echo -e "Done!"
67
67
 
68
68
  # vim: set ts=4 sts=4 sw=0 noet ai si sta:
@@ -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.1
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>
@@ -40,7 +40,7 @@ maintainers = [{ name = "Guennadi Maximov C", email = "g.maxc.fox@protonmail.com
40
40
  name = "vim-eof-comment"
41
41
  readme = "README.md"
42
42
  requires-python = ">=3.10"
43
- version = "0.6.0"
43
+ version = "0.6.1"
44
44
 
45
45
  [project.scripts]
46
46
  vim-eof-comment = "vim_eof_comment.eof:main"
@@ -0,0 +1 @@
1
+ 0.6.1
@@ -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
 
@@ -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
  """
@@ -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
  """
@@ -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,7 @@ version_info = VersionInfo([
83
83
  (0, 5, 2),
84
84
  (0, 5, 3),
85
85
  (0, 6, 0),
86
+ (0, 6, 1),
86
87
  ])
87
88
 
88
89
  __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.1
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>
@@ -1 +0,0 @@
1
- github: DrKJeff16
@@ -1 +0,0 @@
1
- 0.6.0
File without changes
File without changes