vim-eof-comment 0.3.21__tar.gz → 0.4.0__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.
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/PKG-INFO +1 -1
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/pyproject.toml +1 -1
- vim_eof_comment-0.4.0/version.txt +1 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/file.py +9 -1
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/file.pyi +31 -1
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/version.py +1 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment.egg-info/PKG-INFO +1 -1
- vim_eof_comment-0.3.21/version.txt +0 -1
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/.flake8 +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/.gitattributes +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/.github/CODEOWNERS +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/.github/workflows/flake8-lint.yml +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/.github/workflows/mypy-lint.yml +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/.github/workflows/release.yml +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/.github/workflows/vim-eof-comment.yml +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/.pre-commit-config.yaml +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/LICENSE +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/Makefile +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/Pipfile +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/README.md +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/docs/Makefile +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/docs/make.bat +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/docs/source/conf.py +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/docs/source/functions.rst +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/docs/source/index.rst +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/docs/source/installation.rst +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/requirements.txt +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/setup.cfg +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/taplo.toml +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/__init__.py +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/__init__.pyi +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/__main__.py +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/args/__init__.py +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/args/__init__.pyi +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/args/completion.py +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/args/completion.pyi +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/args/parsing.py +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/args/parsing.pyi +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/comments/__init__.py +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/comments/__init__.pyi +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/comments/filetypes.json +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/comments/generator.py +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/comments/generator.pyi +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/eof.py +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/eof.pyi +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/py.typed +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/regex.py +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/regex.pyi +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/types.py +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/types.pyi +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/util.py +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/util.pyi +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment/version.pyi +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment.egg-info/SOURCES.txt +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment.egg-info/dependency_links.txt +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment.egg-info/entry_points.txt +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment.egg-info/requires.txt +0 -0
- {vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: vim-eof-comment
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
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>
|
|
@@ -39,7 +39,7 @@ maintainers = [{ name = "Guennadi Maximov C", email = "g.maxc.fox@protonmail.com
|
|
|
39
39
|
name = "vim-eof-comment"
|
|
40
40
|
readme = "README.md"
|
|
41
41
|
requires-python = ">=3.10"
|
|
42
|
-
version = "0.
|
|
42
|
+
version = "0.4.0"
|
|
43
43
|
|
|
44
44
|
[project.scripts]
|
|
45
45
|
vim-eof-comment = "vim_eof_comment.eof:main"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.4.0
|
|
@@ -5,7 +5,15 @@ File management utilities.
|
|
|
5
5
|
|
|
6
6
|
Copyright (c) 2025 Guennadi Maximov C. All Rights Reserved.
|
|
7
7
|
"""
|
|
8
|
-
__all__ = [
|
|
8
|
+
__all__ = [
|
|
9
|
+
"EXCLUDED_DIRS",
|
|
10
|
+
"bootstrap_paths",
|
|
11
|
+
"get_last_line",
|
|
12
|
+
"has_excluded",
|
|
13
|
+
"modify_file",
|
|
14
|
+
"open_batch_paths",
|
|
15
|
+
"try_open",
|
|
16
|
+
]
|
|
9
17
|
|
|
10
18
|
from io import TextIOWrapper
|
|
11
19
|
from os import walk
|
|
@@ -2,8 +2,38 @@ from io import TextIOWrapper
|
|
|
2
2
|
|
|
3
3
|
from .types import BatchPairDict, BatchPathDict, LineBool
|
|
4
4
|
|
|
5
|
-
__all__ = ['bootstrap_paths', '
|
|
5
|
+
__all__ = ['EXCLUDED_DIRS', 'bootstrap_paths', 'get_last_line', 'has_excluded', 'modify_file', 'open_batch_paths', 'try_open']
|
|
6
6
|
|
|
7
|
+
EXCLUDED_DIRS: list[str]
|
|
8
|
+
|
|
9
|
+
def try_open(fpath: str) -> bool:
|
|
10
|
+
"""
|
|
11
|
+
Try to open a file, unless a ``UnicodeDecodeError`` triggers.
|
|
12
|
+
|
|
13
|
+
Parameters
|
|
14
|
+
----------
|
|
15
|
+
fpath : str
|
|
16
|
+
The file path to try and open.
|
|
17
|
+
|
|
18
|
+
Returns
|
|
19
|
+
-------
|
|
20
|
+
bool
|
|
21
|
+
Whether the file triggers a ``UnicodeDecodeError`` or not.
|
|
22
|
+
"""
|
|
23
|
+
def has_excluded(dir: str) -> bool:
|
|
24
|
+
"""
|
|
25
|
+
Check whether a directory list contains any excluded directories.
|
|
26
|
+
|
|
27
|
+
Parameters
|
|
28
|
+
----------
|
|
29
|
+
dir : str
|
|
30
|
+
The directory to check.
|
|
31
|
+
|
|
32
|
+
Returns
|
|
33
|
+
-------
|
|
34
|
+
bool
|
|
35
|
+
Whether an excluded directory was found.
|
|
36
|
+
"""
|
|
7
37
|
def bootstrap_paths(paths: list[str], exts: list[str]) -> list[BatchPairDict]:
|
|
8
38
|
"""
|
|
9
39
|
Bootstrap all the matching paths in current dir and below.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: vim-eof-comment
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.4.0
|
|
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
|
-
0.3.21
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{vim_eof_comment-0.3.21 → vim_eof_comment-0.4.0}/vim_eof_comment.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|