check-empty 4.0.0__tar.gz → 4.1.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.
- {check_empty-4.0.0 → check_empty-4.1.0}/PKG-INFO +9 -10
- {check_empty-4.0.0 → check_empty-4.1.0}/README.md +6 -6
- {check_empty-4.0.0 → check_empty-4.1.0}/check_empty/__init__.py +2 -3
- {check_empty-4.0.0 → check_empty-4.1.0}/check_empty/constants.py +1 -5
- {check_empty-4.0.0 → check_empty-4.1.0}/check_empty/reporter/abcdef.py +2 -2
- {check_empty-4.0.0 → check_empty-4.1.0}/pyproject.toml +5 -6
- {check_empty-4.0.0 → check_empty-4.1.0}/pyproject.toml.orig +6 -6
- {check_empty-4.0.0 → check_empty-4.1.0}/AUTHORS.md +0 -0
- {check_empty-4.0.0 → check_empty-4.1.0}/LICENSE +0 -0
- {check_empty-4.0.0 → check_empty-4.1.0}/check_empty/__main__.py +0 -0
- {check_empty-4.0.0 → check_empty-4.1.0}/check_empty/archives.py +0 -0
- {check_empty-4.0.0 → check_empty-4.1.0}/check_empty/py.typed +0 -0
- {check_empty-4.0.0 → check_empty-4.1.0}/check_empty/reporter/__init__.py +0 -0
- {check_empty-4.0.0 → check_empty-4.1.0}/check_empty/reporter/dct.py +0 -0
- {check_empty-4.0.0 → check_empty-4.1.0}/check_empty/reporter/exceptions.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: check-empty
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.1.0
|
|
4
4
|
Summary: Command-line utility, as well as a hook usable by the Python pre-commit framework, and a GitHub Action, to ensure that selected files are empty.
|
|
5
5
|
Keywords: check,command-line,empty,files,github-action,helper,hook,lightweight,pre-commit,prek,tool,utility
|
|
6
6
|
Author: Jonathan Dung
|
|
@@ -15,7 +15,6 @@ Classifier: Natural Language :: English
|
|
|
15
15
|
Classifier: Operating System :: OS Independent
|
|
16
16
|
Classifier: Programming Language :: Python :: 3
|
|
17
17
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
19
18
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.13
|
|
@@ -27,13 +26,13 @@ Classifier: Topic :: Utilities
|
|
|
27
26
|
Classifier: Typing :: Typed
|
|
28
27
|
Requires-Dist: py7zr==1.1.3 ; extra == '7z'
|
|
29
28
|
Requires-Dist: acefile==0.6.14 ; extra == 'ace'
|
|
30
|
-
Requires-Dist: check-empty[7z,ace,ar,lzh,rar]==4.
|
|
29
|
+
Requires-Dist: check-empty[7z,ace,ar,lzh,rar]==4.1.0 ; extra == 'all'
|
|
31
30
|
Requires-Dist: arpy==2.4.0 ; extra == 'ar'
|
|
32
31
|
Requires-Dist: lhafile==0.3.1 ; extra == 'lzh'
|
|
33
32
|
Requires-Dist: rarfile==4.5 ; extra == 'rar'
|
|
34
33
|
Maintainer: Jonathan Dung
|
|
35
34
|
Maintainer-email: Jonathan Dung <jonathandung@yahoo.com>
|
|
36
|
-
Requires-Python: >=3.
|
|
35
|
+
Requires-Python: >=3.11
|
|
37
36
|
Provides-Extra: 7z
|
|
38
37
|
Provides-Extra: ace
|
|
39
38
|
Provides-Extra: all
|
|
@@ -42,7 +41,7 @@ Provides-Extra: lzh
|
|
|
42
41
|
Provides-Extra: rar
|
|
43
42
|
Description-Content-Type: text/markdown
|
|
44
43
|
|
|
45
|
-
# [check-empty](https://pypi.org/project/check-empty/4.
|
|
44
|
+
# [check-empty](https://pypi.org/project/check-empty/4.1.0)
|
|
46
45
|
|
|
47
46
|
[](https://github.com/TheBSD/StandWithPalestine/blob/main/docs/README.md)
|
|
48
47
|
|
|
@@ -57,7 +56,7 @@ specified.
|
|
|
57
56
|
|
|
58
57
|
## Prerequisites
|
|
59
58
|
|
|
60
|
-
Supports every Python 3.
|
|
59
|
+
Supports every Python 3.11 runtime. There are no other requirements unless you want to
|
|
61
60
|
check if files in certain types of (compressed) archives are empty.
|
|
62
61
|
|
|
63
62
|
## Quickstart
|
|
@@ -126,7 +125,7 @@ As a pre-commit hook:
|
|
|
126
125
|
# .pre-commit-config.yaml
|
|
127
126
|
repos:
|
|
128
127
|
- repo: https://github.com/jonathandung/check-empty
|
|
129
|
-
rev: v4.
|
|
128
|
+
rev: v4.1.0 # repository version
|
|
130
129
|
hooks:
|
|
131
130
|
- id: check-empty # the hook
|
|
132
131
|
args: # example list of arguments
|
|
@@ -142,7 +141,7 @@ equivalent in `prek.toml` format:
|
|
|
142
141
|
```toml
|
|
143
142
|
[[repos]]
|
|
144
143
|
repo = "https://github.com/jonathandung/check-empty"
|
|
145
|
-
rev = "v4.
|
|
144
|
+
rev = "v4.1.0"
|
|
146
145
|
|
|
147
146
|
[[repos.hooks]]
|
|
148
147
|
id = "check-empty"
|
|
@@ -166,7 +165,7 @@ or (TOML 1.1+):
|
|
|
166
165
|
# using multiline inline tables
|
|
167
166
|
[[repos]]
|
|
168
167
|
repo = "https://github.com/jonathandung/check-empty"
|
|
169
|
-
rev = "v4.
|
|
168
|
+
rev = "v4.1.0"
|
|
170
169
|
hooks = [{
|
|
171
170
|
id = "check-empty",
|
|
172
171
|
args = ["-Q"],
|
|
@@ -186,7 +185,7 @@ As a GitHub Actions workflow step:
|
|
|
186
185
|
|
|
187
186
|
```yaml
|
|
188
187
|
steps:
|
|
189
|
-
- uses: jonathandung/check-empty@v4.
|
|
188
|
+
- uses: jonathandung/check-empty@v4.1.0 # the latest version on the GitHub Actions
|
|
190
189
|
# marketplace; this step will fail and subsequent jobs will not run if any file is
|
|
191
190
|
# not empty
|
|
192
191
|
with:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# [check-empty](https://pypi.org/project/check-empty/4.
|
|
1
|
+
# [check-empty](https://pypi.org/project/check-empty/4.1.0)
|
|
2
2
|
|
|
3
3
|
[](https://github.com/TheBSD/StandWithPalestine/blob/main/docs/README.md)
|
|
4
4
|
|
|
@@ -13,7 +13,7 @@ specified.
|
|
|
13
13
|
|
|
14
14
|
## Prerequisites
|
|
15
15
|
|
|
16
|
-
Supports every Python 3.
|
|
16
|
+
Supports every Python 3.11 runtime. There are no other requirements unless you want to
|
|
17
17
|
check if files in certain types of (compressed) archives are empty.
|
|
18
18
|
|
|
19
19
|
## Quickstart
|
|
@@ -82,7 +82,7 @@ As a pre-commit hook:
|
|
|
82
82
|
# .pre-commit-config.yaml
|
|
83
83
|
repos:
|
|
84
84
|
- repo: https://github.com/jonathandung/check-empty
|
|
85
|
-
rev: v4.
|
|
85
|
+
rev: v4.1.0 # repository version
|
|
86
86
|
hooks:
|
|
87
87
|
- id: check-empty # the hook
|
|
88
88
|
args: # example list of arguments
|
|
@@ -98,7 +98,7 @@ equivalent in `prek.toml` format:
|
|
|
98
98
|
```toml
|
|
99
99
|
[[repos]]
|
|
100
100
|
repo = "https://github.com/jonathandung/check-empty"
|
|
101
|
-
rev = "v4.
|
|
101
|
+
rev = "v4.1.0"
|
|
102
102
|
|
|
103
103
|
[[repos.hooks]]
|
|
104
104
|
id = "check-empty"
|
|
@@ -122,7 +122,7 @@ or (TOML 1.1+):
|
|
|
122
122
|
# using multiline inline tables
|
|
123
123
|
[[repos]]
|
|
124
124
|
repo = "https://github.com/jonathandung/check-empty"
|
|
125
|
-
rev = "v4.
|
|
125
|
+
rev = "v4.1.0"
|
|
126
126
|
hooks = [{
|
|
127
127
|
id = "check-empty",
|
|
128
128
|
args = ["-Q"],
|
|
@@ -142,7 +142,7 @@ As a GitHub Actions workflow step:
|
|
|
142
142
|
|
|
143
143
|
```yaml
|
|
144
144
|
steps:
|
|
145
|
-
- uses: jonathandung/check-empty@v4.
|
|
145
|
+
- uses: jonathandung/check-empty@v4.1.0 # the latest version on the GitHub Actions
|
|
146
146
|
# marketplace; this step will fail and subsequent jobs will not run if any file is
|
|
147
147
|
# not empty
|
|
148
148
|
with:
|
|
@@ -10,7 +10,7 @@ from __future__ import annotations
|
|
|
10
10
|
from check_empty import constants, reporter
|
|
11
11
|
|
|
12
12
|
__all__ = ('Handler', 'check', 'default_reporter')
|
|
13
|
-
__version__ = '4.
|
|
13
|
+
__version__ = '4.1.0'
|
|
14
14
|
"""The version of the package."""
|
|
15
15
|
default_reporter: reporter.Reporter = reporter.Reporter()
|
|
16
16
|
"""The default reporter used by :func:`check`."""
|
|
@@ -18,10 +18,9 @@ TYPE_CHECKING = False
|
|
|
18
18
|
if TYPE_CHECKING:
|
|
19
19
|
from collections.abc import Callable, Iterable
|
|
20
20
|
from types import TracebackType
|
|
21
|
-
from typing import Any, SupportsIndex
|
|
21
|
+
from typing import Any, Self, SupportsIndex
|
|
22
22
|
|
|
23
23
|
from _typeshed import FileDescriptorOrPath
|
|
24
|
-
from typing_extensions import Self
|
|
25
24
|
|
|
26
25
|
|
|
27
26
|
class Handler:
|
|
@@ -58,9 +58,5 @@ class RecurseInto(__import__('enum').IntFlag):
|
|
|
58
58
|
"""Recurse into all archive types."""
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
ARCHIVE_FORMATS: Final
|
|
62
|
-
filter(lambda x: x > 0 == x & (x - 1), RecurseInto)
|
|
63
|
-
if __import__('sys').version_info < (3, 11)
|
|
64
|
-
else RecurseInto
|
|
65
|
-
)
|
|
61
|
+
ARCHIVE_FORMATS: Final = tuple(RecurseInto)
|
|
66
62
|
del os, TYPE_CHECKING
|
|
@@ -84,8 +84,8 @@ class ReporterABC(metaclass=a.ABCMeta):
|
|
|
84
84
|
|
|
85
85
|
Returns:
|
|
86
86
|
An integer derived from the arguments, which will be returned by
|
|
87
|
-
:func:`~check_empty.check` and act as the exit code if
|
|
88
|
-
|
|
87
|
+
:func:`~check_empty.check` and act as the exit code if the check
|
|
88
|
+
was run as the main routine via :func:`!main`.
|
|
89
89
|
"""
|
|
90
90
|
return y | x << 2 | d << 3
|
|
91
91
|
|
|
@@ -21,7 +21,6 @@ classifiers = [
|
|
|
21
21
|
"Operating System :: OS Independent",
|
|
22
22
|
"Programming Language :: Python :: 3",
|
|
23
23
|
"Programming Language :: Python :: 3 :: Only",
|
|
24
|
-
"Programming Language :: Python :: 3.10",
|
|
25
24
|
"Programming Language :: Python :: 3.11",
|
|
26
25
|
"Programming Language :: Python :: 3.12",
|
|
27
26
|
"Programming Language :: Python :: 3.13",
|
|
@@ -54,8 +53,8 @@ license-files = [
|
|
|
54
53
|
]
|
|
55
54
|
name = "check-empty"
|
|
56
55
|
readme = "README.md"
|
|
57
|
-
requires-python = ">=3.
|
|
58
|
-
version = "4.
|
|
56
|
+
requires-python = ">=3.11"
|
|
57
|
+
version = "4.1.0"
|
|
59
58
|
|
|
60
59
|
[[project.authors]]
|
|
61
60
|
name = "Jonathan Dung"
|
|
@@ -68,7 +67,7 @@ email = "jonathandung@yahoo.com"
|
|
|
68
67
|
[project.optional-dependencies]
|
|
69
68
|
7z = ["py7zr==1.1.3"]
|
|
70
69
|
ace = ["acefile==0.6.14"]
|
|
71
|
-
all = ["check-empty[7z,ace,ar,lzh,rar]==4.
|
|
70
|
+
all = ["check-empty[7z,ace,ar,lzh,rar]==4.1.0"]
|
|
72
71
|
ar = ["arpy==2.4.0"]
|
|
73
72
|
lzh = ["lhafile==0.3.1"]
|
|
74
73
|
rar = ["rarfile==4.5"]
|
|
@@ -78,7 +77,7 @@ check-empty = "check_empty.__main__:main"
|
|
|
78
77
|
|
|
79
78
|
[tool.ruff]
|
|
80
79
|
required-version = ">=0.17.0"
|
|
81
|
-
target-version = "
|
|
80
|
+
target-version = "py311"
|
|
82
81
|
|
|
83
82
|
[tool.ruff.analyze]
|
|
84
83
|
type-checking-imports = false
|
|
@@ -138,7 +137,7 @@ convention = "google"
|
|
|
138
137
|
respect-type-ignore-comments = false
|
|
139
138
|
|
|
140
139
|
[tool.ty.environment]
|
|
141
|
-
python-version = "3.
|
|
140
|
+
python-version = "3.11"
|
|
142
141
|
python-platform = "all"
|
|
143
142
|
|
|
144
143
|
[tool.ty.rules]
|
|
@@ -7,7 +7,7 @@ docs = ["furo==2025.12.19", "sphinx==9.1.0", "sphinx-argparse-cli==1.22.1", "sph
|
|
|
7
7
|
|
|
8
8
|
[project]
|
|
9
9
|
authors = [{name = "Jonathan Dung", email = "jonathandung@yahoo.com"}]
|
|
10
|
-
classifiers = ["Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.
|
|
10
|
+
classifiers = ["Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", "Programming Language :: Python :: 3.15", "Programming Language :: Python :: 3.16", "Programming Language :: Python :: Free Threading :: 3 - Stable", "Topic :: Utilities", "Typing :: Typed"]
|
|
11
11
|
description = "Command-line utility, as well as a hook usable by the Python pre-commit framework, and a GitHub Action, to ensure that selected files are empty."
|
|
12
12
|
keywords = ["check", "command-line", "empty", "files", "github-action", "helper", "hook", "lightweight", "pre-commit", "prek", "tool", "utility"]
|
|
13
13
|
license = "MIT"
|
|
@@ -15,13 +15,13 @@ license-files = ["LICENSE", "AUTHORS.md"]
|
|
|
15
15
|
maintainers = [{name = "Jonathan Dung", email = "jonathandung@yahoo.com"}]
|
|
16
16
|
name = "check-empty"
|
|
17
17
|
readme = "README.md"
|
|
18
|
-
requires-python = ">=3.
|
|
19
|
-
version = "4.
|
|
18
|
+
requires-python = ">=3.11"
|
|
19
|
+
version = "4.1.0"
|
|
20
20
|
|
|
21
21
|
[project.optional-dependencies]
|
|
22
22
|
"7z" = ["py7zr==1.1.3"]
|
|
23
23
|
ace = ["acefile==0.6.14"]
|
|
24
|
-
all = ["check-empty[7z,ace,ar,lzh,rar]==4.
|
|
24
|
+
all = ["check-empty[7z,ace,ar,lzh,rar]==4.1.0"]
|
|
25
25
|
ar = ["arpy==2.4.0"]
|
|
26
26
|
lzh = ["lhafile==0.3.1"]
|
|
27
27
|
rar = ["rarfile==4.5"]
|
|
@@ -31,7 +31,7 @@ check-empty = "check_empty.__main__:main"
|
|
|
31
31
|
|
|
32
32
|
[tool.ruff]
|
|
33
33
|
required-version = ">=0.17.0"
|
|
34
|
-
target-version = "
|
|
34
|
+
target-version = "py311"
|
|
35
35
|
|
|
36
36
|
[tool.ruff.analyze]
|
|
37
37
|
type-checking-imports = false
|
|
@@ -70,7 +70,7 @@ convention = "google"
|
|
|
70
70
|
respect-type-ignore-comments = false
|
|
71
71
|
|
|
72
72
|
[tool.ty.environment]
|
|
73
|
-
python-version = "3.
|
|
73
|
+
python-version = "3.11"
|
|
74
74
|
python-platform = "all"
|
|
75
75
|
|
|
76
76
|
[tool.ty.rules]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|