vim-eof-comment 0.5.0__tar.gz → 0.5.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.5.1/.github/FUNDING.yml +1 -0
  2. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/Makefile +19 -34
  3. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/PKG-INFO +2 -1
  4. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/pyproject.toml +2 -1
  5. vim_eof_comment-0.5.1/version.txt +1 -0
  6. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/eof.py +1 -1
  7. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/regex.py +9 -12
  8. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/regex.pyi +1 -3
  9. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/version.py +1 -0
  10. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment.egg-info/PKG-INFO +2 -1
  11. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment.egg-info/SOURCES.txt +1 -1
  12. vim_eof_comment-0.5.0/Pipfile +0 -42
  13. vim_eof_comment-0.5.0/version.txt +0 -1
  14. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/.flake8 +0 -0
  15. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/.gitattributes +0 -0
  16. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/.github/CODEOWNERS +0 -0
  17. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/.github/workflows/flake8-lint.yml +0 -0
  18. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/.github/workflows/mypy-lint.yml +0 -0
  19. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/.github/workflows/release.yml +0 -0
  20. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/.github/workflows/vim-eof-comment.yml +0 -0
  21. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/.pre-commit-config.yaml +0 -0
  22. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/CHANGELOG.md +0 -0
  23. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/LICENSE +0 -0
  24. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/README.md +0 -0
  25. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/docs/Makefile +0 -0
  26. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/docs/make.bat +0 -0
  27. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/docs/source/conf.py +0 -0
  28. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/docs/source/functions.rst +0 -0
  29. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/docs/source/index.rst +0 -0
  30. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/docs/source/installation.rst +0 -0
  31. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/requirements.txt +0 -0
  32. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/setup.cfg +0 -0
  33. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/taplo.toml +0 -0
  34. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/__init__.py +0 -0
  35. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/__init__.pyi +0 -0
  36. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/__main__.py +0 -0
  37. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/args/__init__.py +0 -0
  38. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/args/__init__.pyi +0 -0
  39. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/args/completion.py +0 -0
  40. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/args/completion.pyi +0 -0
  41. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/args/parsing.py +0 -0
  42. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/args/parsing.pyi +0 -0
  43. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/comments/__init__.py +0 -0
  44. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/comments/__init__.pyi +0 -0
  45. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/comments/filetypes.json +0 -0
  46. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/comments/generator.py +0 -0
  47. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/comments/generator.pyi +0 -0
  48. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/eof.pyi +0 -0
  49. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/file.py +0 -0
  50. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/file.pyi +0 -0
  51. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/py.typed +0 -0
  52. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/types.py +0 -0
  53. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/types.pyi +0 -0
  54. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/util.py +0 -0
  55. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/util.pyi +0 -0
  56. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment/version.pyi +0 -0
  57. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment.egg-info/dependency_links.txt +0 -0
  58. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment.egg-info/entry_points.txt +0 -0
  59. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment.egg-info/requires.txt +0 -0
  60. {vim_eof_comment-0.5.0 → vim_eof_comment-0.5.1}/vim_eof_comment.egg-info/top_level.txt +0 -0
@@ -0,0 +1 @@
1
+ github: DrKJeff16
@@ -1,27 +1,26 @@
1
- .PHONY: all help lint build local-install upload clean sign run-script docs
1
+ .PHONY: all help lint build local-install clean run-script docs
2
2
 
3
- all:
4
- @$(MAKE) clean
3
+ all: clean
5
4
  @$(MAKE) local-install
6
5
  @$(MAKE) run-script
7
6
 
8
7
  clean:
9
8
  @echo "Cleaning..."
10
9
  @rm -rf build dist *.egg-info
11
- @echo -e "\nDone!"
10
+ @echo -e "Done!"
12
11
 
13
12
  distclean: clean
14
13
  @echo "Cleaning Everything..."
15
14
  @rm -rf .mypy_cache .ropeproject .pytest_cache
16
- @echo -e "\nDone!"
15
+ @echo -e "Done!"
17
16
 
18
17
  docs:
19
- @echo -e "Generating docs...\n"
18
+ @echo -e "Generating docs..."
20
19
  @$(MAKE) -C docs html
21
- @echo -e "\nDone!"
20
+ @echo -e "Done!"
22
21
 
23
22
  help:
24
- @echo -e "\nAvailable targets:"
23
+ @echo -e "Available targets:\n"
25
24
  @echo " build"
26
25
  @echo " clean"
27
26
  @echo " distclean"
@@ -30,13 +29,11 @@ help:
30
29
  @echo " lint"
31
30
  @echo " local-install"
32
31
  @echo " run-script"
33
- @echo " sign"
34
32
  @echo " stubs"
35
- @echo " upload"
36
33
  @echo
37
34
 
38
35
  lint:
39
- @echo -e "Linting...\n"
36
+ @echo "Linting..."
40
37
  @flake8 --statistics --show-source --color=always --max-line-length=100 --ignore=D401 \
41
38
  --per-file-ignores=__init__.py:F401 \
42
39
  --exclude .tox,.git,*staticfiles*,build,locale,docs,tools,venv,.venv,*migrations*,*.pyc,*.pyi,__pycache__,test_*.py \
@@ -45,42 +42,30 @@ lint:
45
42
  @autopep8 --aggressive --aggressive --aggressive --in-place --recursive vim_eof_comment
46
43
  $(eval files := $(shell fd --full-path vim_eof_comment -e py))
47
44
  @numpydoc lint $(files)
48
- @echo -e "\nDone!"
45
+ @echo "Done!"
49
46
 
50
47
  stubs: lint
51
- @echo -e "Generating stubs...\n"
48
+ @echo "Generating stubs..."
52
49
  @stubgen --include-docstrings --include-private -v -p vim_eof_comment -o .
53
- @echo -e "\nDone!"
54
- @echo -e "\nRunning isort...\n"
50
+ @echo -e "Done!\nRunning isort..."
55
51
  @isort vim_eof_comment
56
- @echo -e "\nDone!"
57
- @echo -e "\nLinting with mypy...\n"
52
+ @echo -e "Done!\nLinting with mypy..."
58
53
  @mypy vim_eof_comment
59
- @echo -e "\nDone!"
54
+ @echo -e "Done!"
60
55
 
61
56
  build: stubs
62
- @echo -e "Building...\n"
57
+ @echo -e "Building..."
63
58
  @python3 -m build
64
- @echo -e "\nDone!"
65
-
66
- sign: build
67
- @echo -e "Signing build...\n"
68
- @pypi-attestations sign dist/*
69
- @echo -e "\nDone!"
59
+ @echo -e "Done!"
70
60
 
71
61
  local-install: build
72
- @echo -e "Installing locally...\n"
62
+ @echo -e "Installing locally..."
73
63
  @python3 -m pip install .
74
- @echo -e "\nDone!"
64
+ @echo -e "Done!"
75
65
 
76
66
  run-script:
77
- @echo -e "Running vim-eof-comment...\n"
67
+ @echo -e "Running vim-eof-comment..."
78
68
  @vim-eof-comment -e py,pyi,Makefile,md -nv .
79
- @echo -e "\nDone!"
80
-
81
- upload: sign
82
- @echo -e "Uploading to PyPI...\n"
83
- @twine upload dist/*
84
- @echo -e "\nDone!"
69
+ @echo -e "Done!"
85
70
 
86
71
  # vim: set ts=4 sts=4 sw=0 noet ai si sta:
@@ -1,11 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vim-eof-comment
3
- Version: 0.5.0
3
+ Version: 0.5.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>
7
7
  License-Expression: GPL-2.0-only
8
8
  Project-URL: Download, https://github.com/DrKJeff16/vim-eof-comment/releases/latest
9
+ Project-URL: Funding, https://github.com/sponsors/DrKJeff16
9
10
  Project-URL: Issues, https://github.com/DrKJeff16/vim-eof-comment/issues
10
11
  Project-URL: Repository, https://github.com/DrKJeff16/vim-eof-comment
11
12
  Keywords: eof comments,eof,files,preprocessing,text,vim modeline,vim,vim-eof
@@ -40,13 +40,14 @@ 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.5.0"
43
+ version = "0.5.1"
44
44
 
45
45
  [project.scripts]
46
46
  vim-eof-comment = "vim_eof_comment.eof:main"
47
47
 
48
48
  [project.urls]
49
49
  Download = "https://github.com/DrKJeff16/vim-eof-comment/releases/latest"
50
+ Funding = "https://github.com/sponsors/DrKJeff16"
50
51
  Issues = "https://github.com/DrKJeff16/vim-eof-comment/issues"
51
52
  Repository = "https://github.com/DrKJeff16/vim-eof-comment"
52
53
 
@@ -0,0 +1 @@
1
+ 0.5.1
@@ -79,7 +79,7 @@ def eof_comment_search(
79
79
  result[path] = EOFCommentSearch(
80
80
  state=IOWrapperBool(file=open(path, "r"), had_nwl=had_nwl),
81
81
  lang=ext,
82
- match=matches(last_line, verbose)
82
+ match=matches(last_line)
83
83
  )
84
84
  else:
85
85
  verbose_print(f"{_BRIGHT}{_GREEN}OK", verbose=verbose)
@@ -7,11 +7,11 @@ Copyright (c) 2025 Guennadi Maximov C. All Rights Reserved.
7
7
  """
8
8
  __all__ = ["matches"]
9
9
 
10
- from re import compile
11
- from typing import Tuple
10
+ from re import Pattern, compile
11
+ from typing import AnyStr, List
12
12
 
13
13
 
14
- def matches(s: str, verbose: bool = False) -> bool:
14
+ def matches(s: str) -> bool:
15
15
  """
16
16
  Check if given string matches any of the given patterns.
17
17
 
@@ -19,21 +19,18 @@ def matches(s: str, verbose: bool = False) -> bool:
19
19
  ----------
20
20
  s : str
21
21
  The string to be matched.
22
- verbose : bool, optional, default=False
23
- Enables verbose mode.
24
22
 
25
23
  Returns
26
24
  -------
27
25
  bool
28
26
  Whether the string matches the default regex.
29
27
  """
30
- pats: Tuple[str, str] = (
31
- "vim:([a-zA-Z]+(=[a-zA-Z0-9_]*)?:)+",
32
- "vim:\\sset(\\s[a-zA-Z]+(=[a-zA-Z0-9_]*)?)*\\s[a-zA-Z]+(=[a-zA-Z0-9_]*)?:"
33
- )
34
- for pattern in [compile(pat) for pat in pats]:
35
- match = pattern.search(s)
36
- if match is not None:
28
+ pats: List[Pattern[AnyStr]] = [
29
+ compile("vim:([a-zA-Z]+(=[a-zA-Z0-9_]*)?:)+"),
30
+ compile("vim:\\sset(\\s[a-zA-Z]+(=[a-zA-Z0-9_]*)?)*\\s[a-zA-Z]+(=[a-zA-Z0-9_]*)?:"),
31
+ ]
32
+ for pattern in pats:
33
+ if pattern.search(s) is not None:
37
34
  return True
38
35
 
39
36
  return False
@@ -1,6 +1,6 @@
1
1
  __all__ = ['matches']
2
2
 
3
- def matches(s: str, verbose: bool = False) -> bool:
3
+ def matches(s: str) -> bool:
4
4
  """
5
5
  Check if given string matches any of the given patterns.
6
6
 
@@ -8,8 +8,6 @@ def matches(s: str, verbose: bool = False) -> bool:
8
8
  ----------
9
9
  s : str
10
10
  The string to be matched.
11
- verbose : bool, optional, default=False
12
- Enables verbose mode.
13
11
 
14
12
  Returns
15
13
  -------
@@ -81,6 +81,7 @@ version_info = VersionInfo([
81
81
  (0, 4, 1),
82
82
  (0, 4, 2),
83
83
  (0, 5, 0),
84
+ (0, 5, 1),
84
85
  ])
85
86
 
86
87
  __version__: str = str(version_info)
@@ -1,11 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vim-eof-comment
3
- Version: 0.5.0
3
+ Version: 0.5.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>
7
7
  License-Expression: GPL-2.0-only
8
8
  Project-URL: Download, https://github.com/DrKJeff16/vim-eof-comment/releases/latest
9
+ Project-URL: Funding, https://github.com/sponsors/DrKJeff16
9
10
  Project-URL: Issues, https://github.com/DrKJeff16/vim-eof-comment/issues
10
11
  Project-URL: Repository, https://github.com/DrKJeff16/vim-eof-comment
11
12
  Keywords: eof comments,eof,files,preprocessing,text,vim modeline,vim,vim-eof
@@ -4,13 +4,13 @@
4
4
  CHANGELOG.md
5
5
  LICENSE
6
6
  Makefile
7
- Pipfile
8
7
  README.md
9
8
  pyproject.toml
10
9
  requirements.txt
11
10
  taplo.toml
12
11
  version.txt
13
12
  .github/CODEOWNERS
13
+ .github/FUNDING.yml
14
14
  .github/workflows/flake8-lint.yml
15
15
  .github/workflows/mypy-lint.yml
16
16
  .github/workflows/release.yml
@@ -1,42 +0,0 @@
1
- [[source]]
2
- url = "https://pypi.org/simple"
3
- verify_ssl = true
4
- name = "pypi"
5
-
6
- [packages]
7
- argparse = "*"
8
- colorama = "*"
9
- argcomplete = "*"
10
-
11
- [dev-packages]
12
- pyproject = "*"
13
- setuptools = "*"
14
- wheel = "*"
15
- pynvim = "*"
16
- build = "*"
17
- twine = "*"
18
- pypi-attestations = "*"
19
- pre-commit = "*"
20
- flake8 = "*"
21
- flake8-pyi = "*"
22
- mypy = "*"
23
- mypy-extensions = "*"
24
- furo = "*"
25
- sphinx-rtd-theme = "*"
26
- renku-sphinx-theme = "*"
27
- sphinxawesome-theme = "*"
28
- numpydoc = "*"
29
- vim-eof-comment = "*"
30
- pip = "*"
31
-
32
- [scripts]
33
- lint = "flake8 --statistics --show-source --color always --max-line-length 100 --docstring-convention numpy --ignore=D401 ."
34
- build = "python3 -m build"
35
- upload = "twine upload dist/*"
36
- sign = "pypi-attestations sign dist/*"
37
- local-install = "python3 -m pip install ."
38
- install = "python3 -m pip install"
39
- stubs = "stubgen -p vim_eof_comment -o ."
40
-
41
- [requires]
42
- python_version = "3.14"
@@ -1 +0,0 @@
1
- 0.5.0
File without changes
File without changes