vim-eof-comment 0.3.11__tar.gz → 0.3.12__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 (59) hide show
  1. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/Makefile +2 -0
  2. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/PKG-INFO +4 -1
  3. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/Pipfile +1 -0
  4. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/docs/source/conf.py +17 -0
  5. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/docs/source/index.rst +1 -1
  6. vim_eof_comment-0.3.12/docs/source/installation.rst +14 -0
  7. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/pyproject.toml +5 -2
  8. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/requirements.txt +4 -0
  9. vim_eof_comment-0.3.12/version.txt +1 -0
  10. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/regex.py +2 -2
  11. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/regex.pyi +2 -2
  12. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/types.py +80 -10
  13. vim_eof_comment-0.3.12/vim_eof_comment/types.pyi +157 -0
  14. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/version.py +1 -0
  15. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment.egg-info/PKG-INFO +4 -1
  16. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment.egg-info/SOURCES.txt +2 -2
  17. vim_eof_comment-0.3.11/docs/source/usage.rst +0 -11
  18. vim_eof_comment-0.3.11/version.txt +0 -1
  19. vim_eof_comment-0.3.11/vim_eof_comment/types.pyi +0 -87
  20. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/.flake8 +0 -0
  21. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/.gitattributes +0 -0
  22. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/.github/CODEOWNERS +0 -0
  23. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/.github/workflows/flake8-lint.yml +0 -0
  24. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/.github/workflows/mypy-lint.yml +0 -0
  25. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/.github/workflows/release.yml +0 -0
  26. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/.pre-commit-config.yaml +0 -0
  27. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/LICENSE +0 -0
  28. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/README.md +0 -0
  29. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/docs/Makefile +0 -0
  30. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/docs/make.bat +0 -0
  31. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/docs/source/functions.rst +0 -0
  32. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/setup.cfg +0 -0
  33. /vim_eof_comment-0.3.11/.taplo.toml → /vim_eof_comment-0.3.12/taplo.toml +0 -0
  34. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/__init__.py +0 -0
  35. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/__init__.pyi +0 -0
  36. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/__main__.py +0 -0
  37. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/args/__init__.py +0 -0
  38. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/args/__init__.pyi +0 -0
  39. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/args/completion.py +0 -0
  40. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/args/completion.pyi +0 -0
  41. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/args/parsing.py +0 -0
  42. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/args/parsing.pyi +0 -0
  43. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/comments/__init__.py +0 -0
  44. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/comments/__init__.pyi +0 -0
  45. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/comments/filetypes.json +0 -0
  46. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/comments/generator.py +0 -0
  47. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/comments/generator.pyi +0 -0
  48. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/eof.py +0 -0
  49. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/eof.pyi +0 -0
  50. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/file.py +0 -0
  51. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/file.pyi +0 -0
  52. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/py.typed +0 -0
  53. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/util.py +0 -0
  54. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/util.pyi +0 -0
  55. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment/version.pyi +0 -0
  56. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment.egg-info/dependency_links.txt +0 -0
  57. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment.egg-info/entry_points.txt +0 -0
  58. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment.egg-info/requires.txt +0 -0
  59. {vim_eof_comment-0.3.11 → vim_eof_comment-0.3.12}/vim_eof_comment.egg-info/top_level.txt +0 -0
@@ -43,6 +43,8 @@ lint:
43
43
  vim_eof_comment
44
44
  @pydocstyle --convention=numpy --match='.*\.py' vim_eof_comment
45
45
  @autopep8 --aggressive --aggressive --aggressive --in-place --recursive vim_eof_comment
46
+ $(eval files := $(shell fd --full-path vim_eof_comment -e py))
47
+ @numpydoc lint $(files)
46
48
  @echo -e "\nDone!"
47
49
 
48
50
  stubs: lint
@@ -1,18 +1,21 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vim-eof-comment
3
- Version: 0.3.11
3
+ Version: 0.3.12
4
4
  Summary: Adds Vim EOF 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>
7
7
  License-Expression: GPL-2.0-only
8
8
  Project-URL: Issues, https://github.com/DrKJeff16/vim-eof-comment/issues
9
9
  Project-URL: Repository, https://github.com/DrKJeff16/vim-eof-comment
10
+ Project-URL: Download, https://github.com/DrKJeff16/vim-eof-comment/releases/latest
10
11
  Keywords: eof comments,eof,files,preprocessing,text,vim modeline,vim,vim-eof
11
12
  Classifier: Development Status :: 4 - Beta
12
13
  Classifier: Environment :: Console
13
14
  Classifier: Intended Audience :: Developers
14
15
  Classifier: Intended Audience :: End Users/Desktop
15
16
  Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Python :: 3
16
19
  Classifier: Programming Language :: Python :: 3.10
17
20
  Classifier: Programming Language :: Python :: 3.11
18
21
  Classifier: Programming Language :: Python :: 3.12
@@ -13,6 +13,7 @@ pyproject = "*"
13
13
  colorama = "*"
14
14
  argcomplete = "*"
15
15
  python-magic = "*"
16
+ pynvim = "*"
16
17
 
17
18
  [dev-packages]
18
19
  pynvim = "*"
@@ -22,8 +22,10 @@ release: str = '0.1.33'
22
22
  # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
23
23
 
24
24
  extensions: List[str] = [
25
+ 'numpydoc',
25
26
  'sphinx.ext.autodoc',
26
27
  'sphinx.ext.autosectionlabel',
28
+ 'sphinx.ext.autosummary',
27
29
  'sphinx.ext.duration',
28
30
  ]
29
31
 
@@ -36,4 +38,19 @@ exclude_patterns: List[str] = []
36
38
  html_theme: str = 'sphinx_rtd_theme'
37
39
  html_static_path: List[str] = ['_static']
38
40
 
41
+ # -- Options for numpydoc ----------------------------------------------------
42
+ numpydoc_xref_param_type = True
43
+ numpydoc_validation_checks = {
44
+ "all", # report on all checks, except the below
45
+ "ES01",
46
+ "EX01",
47
+ "SA01",
48
+ }
49
+ numpydoc_xref_aliases = {
50
+ 'TextIO': 'typing.TextIO',
51
+ 'List': 'list',
52
+ 'Dict': 'dict',
53
+ 'Tuple': 'tuple',
54
+ }
55
+
39
56
  # vim: set ts=4 sts=4 sw=4 et ai si sta:
@@ -18,5 +18,5 @@ Contents
18
18
 
19
19
  .. toctree::
20
20
 
21
- usage
21
+ installation
22
22
  functions
@@ -0,0 +1,14 @@
1
+ Installation
2
+ ============
3
+
4
+ To install *vim-eof-comment*, first install it using ``pip``:
5
+
6
+ .. code-block:: console
7
+
8
+ $ pip install -U vim-eof-comment
9
+
10
+ You may also use ``pipenv`` or any other virtual environment:
11
+
12
+ .. code-block:: console
13
+
14
+ $ pipenv install vim-eof-comment
@@ -10,6 +10,8 @@ classifiers = [
10
10
  "Intended Audience :: Developers",
11
11
  "Intended Audience :: End Users/Desktop",
12
12
  "Operating System :: OS Independent",
13
+ "Programming Language :: Python :: 3 :: Only",
14
+ "Programming Language :: Python :: 3",
13
15
  "Programming Language :: Python :: 3.10",
14
16
  "Programming Language :: Python :: 3.11",
15
17
  "Programming Language :: Python :: 3.12",
@@ -45,7 +47,7 @@ maintainers = [{ name = "Guennadi Maximov C", email = "g.maxc.fox@protonmail.com
45
47
  name = "vim-eof-comment"
46
48
  readme = "README.md"
47
49
  requires-python = ">=3.10"
48
- version = "0.3.11"
50
+ version = "0.3.12"
49
51
 
50
52
  [project.scripts]
51
53
  vim-eof-comment = "vim_eof_comment.eof:main"
@@ -53,13 +55,14 @@ version = "0.3.11"
53
55
  [project.urls]
54
56
  Issues = "https://github.com/DrKJeff16/vim-eof-comment/issues"
55
57
  Repository = "https://github.com/DrKJeff16/vim-eof-comment"
58
+ Download = "https://github.com/DrKJeff16/vim-eof-comment/releases/latest"
56
59
 
57
60
  [tool.numpydoc_validation]
58
61
  checks = [
62
+ "all", # report on all checks, except the below
59
63
  "ES01",
60
64
  "EX01",
61
65
  "SA01",
62
- "all", # report on all checks, except the below
63
66
  ]
64
67
  exclude = [
65
68
  '\.undocumented_method$',
@@ -2,7 +2,11 @@
2
2
  argcomplete==3.6.3; python_version >= '3.8'
3
3
  argparse==1.4.0
4
4
  colorama==0.4.6; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6'
5
+ greenlet==3.3.0; python_version >= '3.10'
6
+ msgpack==1.1.2; python_version >= '3.9'
7
+ pynvim==0.6.0; python_version >= '3.7'
5
8
  pyproject==1!0.1.2; python_version >= '3.12'
9
+ python-magic==0.4.27; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
6
10
  setuptools==80.9.0; python_version >= '3.9'
7
11
  typing==3.7.4.3; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
8
12
  typing-extensions==4.15.0; python_version >= '3.9'
@@ -0,0 +1 @@
1
+ 0.3.12
@@ -11,7 +11,7 @@ from re import compile
11
11
  from typing import Tuple
12
12
 
13
13
 
14
- def matches(s: str, verbose: bool) -> bool:
14
+ def matches(s: str, verbose: bool = False) -> bool:
15
15
  """
16
16
  Check if given string matches any of the given patterns.
17
17
 
@@ -19,7 +19,7 @@ def matches(s: str, verbose: bool) -> bool:
19
19
  ----------
20
20
  s : str
21
21
  The string to be matched.
22
- verbose : bool
22
+ verbose : bool, optional, default=False
23
23
  Enables verbose mode.
24
24
 
25
25
  Returns
@@ -1,6 +1,6 @@
1
1
  __all__ = ['matches']
2
2
 
3
- def matches(s: str, verbose: bool) -> bool:
3
+ def matches(s: str, verbose: bool = False) -> bool:
4
4
  """
5
5
  Check if given string matches any of the given patterns.
6
6
 
@@ -8,7 +8,7 @@ def matches(s: str, verbose: bool) -> bool:
8
8
  ----------
9
9
  s : str
10
10
  The string to be matched.
11
- verbose : bool
11
+ verbose : bool, optional, default=False
12
12
  Enables verbose mode.
13
13
 
14
14
  Returns
@@ -32,15 +32,15 @@ class ParserSpec(TypedDict):
32
32
  ----------
33
33
  opts : List[str]
34
34
  A list containing all the relevant iterations of the same option.
35
- kwargs : Dict[str, str]
35
+ kwargs : Dict[str, Any]
36
36
  Extra arguments for ``argparse.ArgumentParser``.
37
- completer : argcomplete.DirectoriesCompleter, optional, default=None
38
- An optional ``argcomplete`` completer object.
37
+ completer : argcomplete.DirectoriesCompleter
38
+ An ``argcomplete`` completer object.
39
39
  """
40
40
 
41
41
  opts: List[str]
42
42
  kwargs: Dict[str, Any]
43
- completer: DirectoriesCompleter | None
43
+ completer: DirectoriesCompleter
44
44
 
45
45
 
46
46
  class CommentMap(TypedDict):
@@ -59,7 +59,18 @@ class CommentMap(TypedDict):
59
59
 
60
60
 
61
61
  class IndentMap(TypedDict):
62
- """A ``TypedDict`` container."""
62
+ """
63
+ A dict containing ``level`` and ``expandtab`` as keys.
64
+
65
+ This is a ``TypedDict``-like object.
66
+
67
+ Attributes
68
+ ----------
69
+ level : int
70
+ The indent level.
71
+ expandtab : bool
72
+ Whether to expand tabs or not.
73
+ """
63
74
 
64
75
  level: int
65
76
  expandtab: bool
@@ -69,6 +80,8 @@ class IndentHandler(TypedDict):
69
80
  """
70
81
  A dict containing ``ft_ext``, ``level`` and ``expandtab`` as keys.
71
82
 
83
+ This is a ``TypedDict``-like object.
84
+
72
85
  Attributes
73
86
  ----------
74
87
  ft_ext : str
@@ -85,35 +98,92 @@ class IndentHandler(TypedDict):
85
98
 
86
99
 
87
100
  class IOWrapperBool(TypedDict):
88
- """A ``TypedDict`` container."""
101
+ """
102
+ A dict containing ``file`` and ``has_nwl`` as keys.
103
+
104
+ This is a ``TypedDict``-like object.
105
+
106
+ Attributes
107
+ ----------
108
+ file : TextIO
109
+ The opened file as a ``TextIO`` wrapper.
110
+ has_nwl : bool
111
+ Whether the file has a newline or not.
112
+ """
89
113
 
90
114
  file: TextIO
91
115
  has_nwl: bool
92
116
 
93
117
 
94
118
  class LineBool(TypedDict):
95
- """A ``TypedDict`` container."""
119
+ """
120
+ A dict containing ``line`` and ``has_nwl`` as keys.
121
+
122
+ This is a ``TypedDict``-like object.
123
+
124
+ Attributes
125
+ ----------
126
+ line : str
127
+ The last line of the target file.
128
+ has_nwl : bool
129
+ Whether the file has a newline or not.
130
+ """
96
131
 
97
132
  line: str
98
133
  has_nwl: bool
99
134
 
100
135
 
101
136
  class BatchPathDict(TypedDict):
102
- """A ``TypedDict`` container."""
137
+ """
138
+ A dict containing ``file`` and ``ft_ext`` as keys.
139
+
140
+ This is a ``TypedDict``-like object.
141
+
142
+ Attributes
143
+ ----------
144
+ file : TextIO
145
+ The opened file as a ``TextIO`` wrapper.
146
+ ft_ext : str
147
+ The file-type/file-extension.
148
+ """
103
149
 
104
150
  file: TextIO
105
151
  ft_ext: str
106
152
 
107
153
 
108
154
  class BatchPairDict(TypedDict):
109
- """A ``TypedDict`` container."""
155
+ """
156
+ A dict containing ``fpath`` and ``ft_ext`` as keys.
157
+
158
+ This is a ``TypedDict``-like object.
159
+
160
+ Attributes
161
+ ----------
162
+ fpath : str
163
+ The target file's path.
164
+ ft_ext : str
165
+ The file-type/file-extension.
166
+ """
110
167
 
111
168
  fpath: str
112
169
  ft_ext: str
113
170
 
114
171
 
115
172
  class EOFCommentSearch(TypedDict):
116
- """A ``TypedDict`` container."""
173
+ """
174
+ A dict containing ``state``, ``lang`` and ``match`` as keys.
175
+
176
+ This is a ``TypedDict``-like object.
177
+
178
+ Attributes
179
+ ----------
180
+ state : IOWrapperBool
181
+ The target ``IOWrapperBool`` object.
182
+ lang : str
183
+ The file language.
184
+ match : bool
185
+ Whether it has a variation of an EOF comment at the end.
186
+ """
117
187
 
118
188
  state: IOWrapperBool
119
189
  lang: str
@@ -0,0 +1,157 @@
1
+ from typing import Any, TextIO, TypedDict
2
+
3
+ from argcomplete.completers import DirectoriesCompleter
4
+
5
+ __all__ = ['BatchPairDict', 'BatchPathDict', 'CommentMap', 'EOFCommentSearch', 'IOWrapperBool', 'IndentHandler', 'IndentMap', 'LineBool', 'ParserSpec']
6
+
7
+ class ParserSpec(TypedDict):
8
+ """
9
+ Stores the spec for ``argparse`` operations in a constant value.
10
+
11
+ This is a ``TypedDict``-like object.
12
+
13
+ Attributes
14
+ ----------
15
+ opts : List[str]
16
+ A list containing all the relevant iterations of the same option.
17
+ kwargs : Dict[str, Any]
18
+ Extra arguments for ``argparse.ArgumentParser``.
19
+ completer : argcomplete.DirectoriesCompleter
20
+ An ``argcomplete`` completer object.
21
+ """
22
+ opts: list[str]
23
+ kwargs: dict[str, Any]
24
+ completer: DirectoriesCompleter
25
+
26
+ class CommentMap(TypedDict):
27
+ """
28
+ Stores a dict with a ``level`` key.
29
+
30
+ This is a ``TypedDict``-like object.
31
+
32
+ Attributes
33
+ ----------
34
+ level : int
35
+ The indentation level.
36
+ """
37
+ level: int
38
+
39
+ class IndentMap(TypedDict):
40
+ """
41
+ A dict containing ``level`` and ``expandtab`` as keys.
42
+
43
+ This is a ``TypedDict``-like object.
44
+
45
+ Attributes
46
+ ----------
47
+ level : int
48
+ The indent level.
49
+ expandtab : bool
50
+ Whether to expand tabs or not.
51
+ """
52
+ level: int
53
+ expandtab: bool
54
+
55
+ class IndentHandler(TypedDict):
56
+ """
57
+ A dict containing ``ft_ext``, ``level`` and ``expandtab`` as keys.
58
+
59
+ This is a ``TypedDict``-like object.
60
+
61
+ Attributes
62
+ ----------
63
+ ft_ext : str
64
+ The file-extension/file-type.
65
+ level : str
66
+ The string representation of the indent level.
67
+ expandtab : bool
68
+ Whether to expand tabs or not.
69
+ """
70
+ ft_ext: str
71
+ level: str
72
+ expandtab: bool
73
+
74
+ class IOWrapperBool(TypedDict):
75
+ """
76
+ A dict containing ``file`` and ``has_nwl`` as keys.
77
+
78
+ This is a ``TypedDict``-like object.
79
+
80
+ Attributes
81
+ ----------
82
+ file : TextIO
83
+ The opened file as a ``TextIO`` wrapper.
84
+ has_nwl : bool
85
+ Whether the file has a newline or not.
86
+ """
87
+ file: TextIO
88
+ has_nwl: bool
89
+
90
+ class LineBool(TypedDict):
91
+ """
92
+ A dict containing ``line`` and ``has_nwl`` as keys.
93
+
94
+ This is a ``TypedDict``-like object.
95
+
96
+ Attributes
97
+ ----------
98
+ line : str
99
+ The last line of the target file.
100
+ has_nwl : bool
101
+ Whether the file has a newline or not.
102
+ """
103
+ line: str
104
+ has_nwl: bool
105
+
106
+ class BatchPathDict(TypedDict):
107
+ """
108
+ A dict containing ``file`` and ``ft_ext`` as keys.
109
+
110
+ This is a ``TypedDict``-like object.
111
+
112
+ Attributes
113
+ ----------
114
+ file : TextIO
115
+ The opened file as a ``TextIO`` wrapper.
116
+ ft_ext : str
117
+ The file-type/file-extension.
118
+ """
119
+ file: TextIO
120
+ ft_ext: str
121
+
122
+ class BatchPairDict(TypedDict):
123
+ """
124
+ A dict containing ``fpath`` and ``ft_ext`` as keys.
125
+
126
+ This is a ``TypedDict``-like object.
127
+
128
+ Attributes
129
+ ----------
130
+ fpath : str
131
+ The target file's path.
132
+ ft_ext : str
133
+ The file-type/file-extension.
134
+ """
135
+ fpath: str
136
+ ft_ext: str
137
+
138
+ class EOFCommentSearch(TypedDict):
139
+ """
140
+ A dict containing ``state``, ``lang`` and ``match`` as keys.
141
+
142
+ This is a ``TypedDict``-like object.
143
+
144
+ Attributes
145
+ ----------
146
+ state : IOWrapperBool
147
+ The target ``IOWrapperBool`` object.
148
+ lang : str
149
+ The file language.
150
+ match : bool
151
+ Whether it has a variation of an EOF comment at the end.
152
+ """
153
+ state: IOWrapperBool
154
+ lang: str
155
+ match: bool
156
+
157
+ # vim: set ts=4 sts=4 sw=4 et ai si sta:
@@ -218,6 +218,7 @@ version_info: VersionInfo = VersionInfo([
218
218
  (0, 3, 9),
219
219
  (0, 3, 10),
220
220
  (0, 3, 11),
221
+ (0, 3, 12),
221
222
  ])
222
223
 
223
224
  __version__: str = str(version_info)
@@ -1,18 +1,21 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vim-eof-comment
3
- Version: 0.3.11
3
+ Version: 0.3.12
4
4
  Summary: Adds Vim EOF 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>
7
7
  License-Expression: GPL-2.0-only
8
8
  Project-URL: Issues, https://github.com/DrKJeff16/vim-eof-comment/issues
9
9
  Project-URL: Repository, https://github.com/DrKJeff16/vim-eof-comment
10
+ Project-URL: Download, https://github.com/DrKJeff16/vim-eof-comment/releases/latest
10
11
  Keywords: eof comments,eof,files,preprocessing,text,vim modeline,vim,vim-eof
11
12
  Classifier: Development Status :: 4 - Beta
12
13
  Classifier: Environment :: Console
13
14
  Classifier: Intended Audience :: Developers
14
15
  Classifier: Intended Audience :: End Users/Desktop
15
16
  Classifier: Operating System :: OS Independent
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Python :: 3
16
19
  Classifier: Programming Language :: Python :: 3.10
17
20
  Classifier: Programming Language :: Python :: 3.11
18
21
  Classifier: Programming Language :: Python :: 3.12
@@ -1,13 +1,13 @@
1
1
  .flake8
2
2
  .gitattributes
3
3
  .pre-commit-config.yaml
4
- .taplo.toml
5
4
  LICENSE
6
5
  Makefile
7
6
  Pipfile
8
7
  README.md
9
8
  pyproject.toml
10
9
  requirements.txt
10
+ taplo.toml
11
11
  version.txt
12
12
  .github/CODEOWNERS
13
13
  .github/workflows/flake8-lint.yml
@@ -18,7 +18,7 @@ docs/make.bat
18
18
  docs/source/conf.py
19
19
  docs/source/functions.rst
20
20
  docs/source/index.rst
21
- docs/source/usage.rst
21
+ docs/source/installation.rst
22
22
  vim_eof_comment/__init__.py
23
23
  vim_eof_comment/__init__.pyi
24
24
  vim_eof_comment/__main__.py
@@ -1,11 +0,0 @@
1
- Usage
2
- =====
3
-
4
- Installation
5
- ------------
6
-
7
- To use *vim-eof-comment*, first install it using `pip`:
8
-
9
- .. code-block:: console
10
-
11
- $ pip install vim-eof-comment
@@ -1 +0,0 @@
1
- 0.3.11
@@ -1,87 +0,0 @@
1
- from typing import Any, TextIO, TypedDict
2
-
3
- from argcomplete.completers import DirectoriesCompleter
4
-
5
- __all__ = ['BatchPairDict', 'BatchPathDict', 'CommentMap', 'EOFCommentSearch', 'IOWrapperBool', 'IndentHandler', 'IndentMap', 'LineBool', 'ParserSpec']
6
-
7
- class ParserSpec(TypedDict):
8
- """
9
- Stores the spec for ``argparse`` operations in a constant value.
10
-
11
- This is a ``TypedDict``-like object.
12
-
13
- Attributes
14
- ----------
15
- opts : List[str]
16
- A list containing all the relevant iterations of the same option.
17
- kwargs : Dict[str, str]
18
- Extra arguments for ``argparse.ArgumentParser``.
19
- completer : argcomplete.DirectoriesCompleter, optional, default=None
20
- An optional ``argcomplete`` completer object.
21
- """
22
- opts: list[str]
23
- kwargs: dict[str, Any]
24
- completer: DirectoriesCompleter | None
25
-
26
- class CommentMap(TypedDict):
27
- """
28
- Stores a dict with a ``level`` key.
29
-
30
- This is a ``TypedDict``-like object.
31
-
32
- Attributes
33
- ----------
34
- level : int
35
- The indentation level.
36
- """
37
- level: int
38
-
39
- class IndentMap(TypedDict):
40
- """A ``TypedDict`` container."""
41
- level: int
42
- expandtab: bool
43
-
44
- class IndentHandler(TypedDict):
45
- """
46
- A dict containing ``ft_ext``, ``level`` and ``expandtab`` as keys.
47
-
48
- Attributes
49
- ----------
50
- ft_ext : str
51
- The file-extension/file-type.
52
- level : str
53
- The string representation of the indent level.
54
- expandtab : bool
55
- Whether to expand tabs or not.
56
- """
57
- ft_ext: str
58
- level: str
59
- expandtab: bool
60
-
61
- class IOWrapperBool(TypedDict):
62
- """A ``TypedDict`` container."""
63
- file: TextIO
64
- has_nwl: bool
65
-
66
- class LineBool(TypedDict):
67
- """A ``TypedDict`` container."""
68
- line: str
69
- has_nwl: bool
70
-
71
- class BatchPathDict(TypedDict):
72
- """A ``TypedDict`` container."""
73
- file: TextIO
74
- ft_ext: str
75
-
76
- class BatchPairDict(TypedDict):
77
- """A ``TypedDict`` container."""
78
- fpath: str
79
- ft_ext: str
80
-
81
- class EOFCommentSearch(TypedDict):
82
- """A ``TypedDict`` container."""
83
- state: IOWrapperBool
84
- lang: str
85
- match: bool
86
-
87
- # vim: set ts=4 sts=4 sw=4 et ai si sta: