check-empty 4.0.0__tar.gz → 4.1.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.
- {check_empty-4.0.0 → check_empty-4.1.1}/PKG-INFO +18 -19
- {check_empty-4.0.0 → check_empty-4.1.1}/README.md +14 -14
- {check_empty-4.0.0 → check_empty-4.1.1}/check_empty/__init__.py +8 -5
- {check_empty-4.0.0 → check_empty-4.1.1}/check_empty/archives.py +3 -3
- {check_empty-4.0.0 → check_empty-4.1.1}/check_empty/constants.py +6 -10
- {check_empty-4.0.0 → check_empty-4.1.1}/check_empty/reporter/abcdef.py +2 -2
- {check_empty-4.0.0 → check_empty-4.1.1}/pyproject.toml +23 -24
- {check_empty-4.0.0 → check_empty-4.1.1}/pyproject.toml.orig +19 -20
- {check_empty-4.0.0 → check_empty-4.1.1}/AUTHORS.md +0 -0
- {check_empty-4.0.0 → check_empty-4.1.1}/LICENSE +0 -0
- {check_empty-4.0.0 → check_empty-4.1.1}/check_empty/__main__.py +0 -0
- {check_empty-4.0.0 → check_empty-4.1.1}/check_empty/py.typed +0 -0
- {check_empty-4.0.0 → check_empty-4.1.1}/check_empty/reporter/__init__.py +0 -0
- {check_empty-4.0.0 → check_empty-4.1.1}/check_empty/reporter/dct.py +0 -0
- {check_empty-4.0.0 → check_empty-4.1.1}/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.1
|
|
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
|
|
@@ -25,15 +24,15 @@ Classifier: Programming Language :: Python :: 3.16
|
|
|
25
24
|
Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
|
|
26
25
|
Classifier: Topic :: Utilities
|
|
27
26
|
Classifier: Typing :: Typed
|
|
28
|
-
Requires-Dist: py7zr==1.1.
|
|
27
|
+
Requires-Dist: py7zr==1.1.4 ; 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.1 ; 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.1)
|
|
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,15 +125,15 @@ 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.1 # repository version
|
|
130
129
|
hooks:
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
130
|
+
- id: check-empty # the hook
|
|
131
|
+
args: # example list of arguments
|
|
132
|
+
- -Q # flag to decrease output, applicable twice (shorthand for --quiet)
|
|
133
|
+
files: ^src/mylib/py\.typed|docs/\.nojekyll|static/\.gitkeep|some_dir/.*|.*\.lock$
|
|
134
|
+
# paths to files/directories to clear or keep empty as a single regular
|
|
135
|
+
# expression (as per the somewhat restrictive pre-commit config schema),
|
|
136
|
+
# relative to project root
|
|
138
137
|
```
|
|
139
138
|
|
|
140
139
|
equivalent in `prek.toml` format:
|
|
@@ -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.1"
|
|
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.1"
|
|
170
169
|
hooks = [{
|
|
171
170
|
id = "check-empty",
|
|
172
171
|
args = ["-Q"],
|
|
@@ -186,11 +185,11 @@ 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.1 # 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:
|
|
193
|
-
python-version: '3.
|
|
192
|
+
python-version: '3.15' # run the script on the latest stable Python version
|
|
194
193
|
filenames: |
|
|
195
194
|
src/mylib/py.typed
|
|
196
195
|
docs/.nojekyll
|
|
@@ -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.1)
|
|
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,15 +82,15 @@ 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.1 # repository version
|
|
86
86
|
hooks:
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
87
|
+
- id: check-empty # the hook
|
|
88
|
+
args: # example list of arguments
|
|
89
|
+
- -Q # flag to decrease output, applicable twice (shorthand for --quiet)
|
|
90
|
+
files: ^src/mylib/py\.typed|docs/\.nojekyll|static/\.gitkeep|some_dir/.*|.*\.lock$
|
|
91
|
+
# paths to files/directories to clear or keep empty as a single regular
|
|
92
|
+
# expression (as per the somewhat restrictive pre-commit config schema),
|
|
93
|
+
# relative to project root
|
|
94
94
|
```
|
|
95
95
|
|
|
96
96
|
equivalent in `prek.toml` format:
|
|
@@ -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.1"
|
|
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.1"
|
|
126
126
|
hooks = [{
|
|
127
127
|
id = "check-empty",
|
|
128
128
|
args = ["-Q"],
|
|
@@ -142,11 +142,11 @@ 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.1 # 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:
|
|
149
|
-
python-version: '3.
|
|
149
|
+
python-version: '3.15' # run the script on the latest stable Python version
|
|
150
150
|
filenames: |
|
|
151
151
|
src/mylib/py.typed
|
|
152
152
|
docs/.nojekyll
|
|
@@ -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.1'
|
|
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:
|
|
@@ -320,8 +319,12 @@ def check(
|
|
|
320
319
|
t += s
|
|
321
320
|
if clear:
|
|
322
321
|
Handler(*i, a).o()
|
|
323
|
-
x, d
|
|
324
|
-
|
|
322
|
+
x, d, y, p = (
|
|
323
|
+
k[1] if z is None else len(z) - 1,
|
|
324
|
+
k[2] if w is None else len(w),
|
|
325
|
+
k[3] if r is None else len(r),
|
|
326
|
+
k[0] if b is None else len(b) - 1,
|
|
327
|
+
)
|
|
325
328
|
reporter.report(z, v, b, ra, r, w, x, y, d, p, n, t, verbosity, clear)
|
|
326
329
|
reporter.reset_out()
|
|
327
330
|
return reporter.calculate_result(*map(bool, (y, x and not may_not_exist, d)))
|
|
@@ -89,11 +89,11 @@ def purge_ar(a: Archive, g: int) -> None:
|
|
|
89
89
|
q = __import__('itertools').filterfalse(
|
|
90
90
|
AR_SKIP.__contains__, map(__import__('operator').attrgetter('name'), i)
|
|
91
91
|
)
|
|
92
|
-
|
|
92
|
+
__gnu(tuple(q), w) if i[0].type == g else __bsd(q, w)
|
|
93
93
|
os.replace(f.name, n)
|
|
94
94
|
|
|
95
95
|
|
|
96
|
-
def
|
|
96
|
+
def __bsd(q: Iterable[bytes], w: Callable[[bytes], int]) -> None:
|
|
97
97
|
"""Clear the contents of each file in a BSD .a, .ar or .lib archive."""
|
|
98
98
|
for m in q:
|
|
99
99
|
x = len(m)
|
|
@@ -101,7 +101,7 @@ def _bsd(q: Iterable[bytes], w: Callable[[bytes], int]) -> None:
|
|
|
101
101
|
w(AR_FS % (b'#1/%d' % x if b else m, x, m if b else b''))
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
def
|
|
104
|
+
def __gnu(q: tuple[bytes, ...], w: Callable[[bytes], int]) -> None:
|
|
105
105
|
"""Clear the contents of each file in a GNU .a, .ar or .lib archive."""
|
|
106
106
|
c, d = 0, {}
|
|
107
107
|
for m in q:
|
|
@@ -16,12 +16,12 @@ TYPE_CHECKING = False
|
|
|
16
16
|
if TYPE_CHECKING:
|
|
17
17
|
from typing import Final
|
|
18
18
|
TYPE_MASK: Final = 0xF000
|
|
19
|
-
"""The mask that extracts the type of a file from its mode bits
|
|
19
|
+
"""The mask that extracts the type of a file from its mode bits using bitwise and."""
|
|
20
20
|
S_IFDIR: Final = 0x4000
|
|
21
21
|
"""Equal to :data:`stat.S_IFDIR`."""
|
|
22
22
|
ENOENT: Final = 2
|
|
23
23
|
"""Equal to :data:`errno.ENOENT`."""
|
|
24
|
-
DIRFD_UNSUPPORTED: Final
|
|
24
|
+
DIRFD_UNSUPPORTED: Final = (
|
|
25
25
|
SystemError('got directory descriptor on Windows')
|
|
26
26
|
if os.name == 'nt'
|
|
27
27
|
else NotImplementedError('directory descriptors are not supported')
|
|
@@ -49,18 +49,14 @@ class RecurseInto(__import__('enum').IntFlag):
|
|
|
49
49
|
TYPICAL = 15
|
|
50
50
|
"""Recurse into the most common archive types, namely .zip, .tar, .7z, and .rar."""
|
|
51
51
|
AR = 16
|
|
52
|
-
"""Recurse into .a, .ar and .lib archives; requires
|
|
52
|
+
"""Recurse into .a, .ar and .lib archives; requires `arpy <https://github.com/onekey-sec/arpy>`__."""
|
|
53
53
|
LZH = 32
|
|
54
|
-
"""Recurse into .lzh and .lha archives; requires
|
|
54
|
+
"""Recurse into .lzh and .lha archives; requires `lhafile <https://github.com/FrodeSolheim/python-lhafile>`__."""
|
|
55
55
|
ACE = 64
|
|
56
|
-
"""Recurse into .ace archives; requires
|
|
56
|
+
"""Recurse into .ace archives; requires `acefile <https://apidoc.roe.ch/acefile/latest>`__."""
|
|
57
57
|
ALL = 127
|
|
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
|
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["uv_build>=0.13.
|
|
2
|
+
requires = ["uv_build>=0.13.7"]
|
|
3
3
|
build-backend = "uv_build"
|
|
4
4
|
|
|
5
5
|
[dependency-groups]
|
|
6
6
|
docs = [
|
|
7
7
|
"furo==2025.12.19",
|
|
8
|
-
"sphinx==9.
|
|
9
|
-
"sphinx-argparse-cli==1.
|
|
8
|
+
"sphinx==9.2.0",
|
|
9
|
+
"sphinx-argparse-cli==1.24.0",
|
|
10
10
|
"sphinx-copybutton==0.5.2",
|
|
11
|
-
"sphinx-lint==1.0.2",
|
|
12
11
|
"sphinx-notfound-page==1.1.0",
|
|
13
12
|
]
|
|
14
13
|
|
|
@@ -21,7 +20,6 @@ classifiers = [
|
|
|
21
20
|
"Operating System :: OS Independent",
|
|
22
21
|
"Programming Language :: Python :: 3",
|
|
23
22
|
"Programming Language :: Python :: 3 :: Only",
|
|
24
|
-
"Programming Language :: Python :: 3.10",
|
|
25
23
|
"Programming Language :: Python :: 3.11",
|
|
26
24
|
"Programming Language :: Python :: 3.12",
|
|
27
25
|
"Programming Language :: Python :: 3.13",
|
|
@@ -54,8 +52,8 @@ license-files = [
|
|
|
54
52
|
]
|
|
55
53
|
name = "check-empty"
|
|
56
54
|
readme = "README.md"
|
|
57
|
-
requires-python = ">=3.
|
|
58
|
-
version = "4.
|
|
55
|
+
requires-python = ">=3.11"
|
|
56
|
+
version = "4.1.1"
|
|
59
57
|
|
|
60
58
|
[[project.authors]]
|
|
61
59
|
name = "Jonathan Dung"
|
|
@@ -66,9 +64,9 @@ name = "Jonathan Dung"
|
|
|
66
64
|
email = "jonathandung@yahoo.com"
|
|
67
65
|
|
|
68
66
|
[project.optional-dependencies]
|
|
69
|
-
7z = ["py7zr==1.1.
|
|
67
|
+
7z = ["py7zr==1.1.4"]
|
|
70
68
|
ace = ["acefile==0.6.14"]
|
|
71
|
-
all = ["check-empty[7z,ace,ar,lzh,rar]==4.
|
|
69
|
+
all = ["check-empty[7z,ace,ar,lzh,rar]==4.1.1"]
|
|
72
70
|
ar = ["arpy==2.4.0"]
|
|
73
71
|
lzh = ["lhafile==0.3.1"]
|
|
74
72
|
rar = ["rarfile==4.5"]
|
|
@@ -77,8 +75,8 @@ rar = ["rarfile==4.5"]
|
|
|
77
75
|
check-empty = "check_empty.__main__:main"
|
|
78
76
|
|
|
79
77
|
[tool.ruff]
|
|
80
|
-
required-version = ">=0.17.
|
|
81
|
-
target-version = "
|
|
78
|
+
required-version = ">=0.17.4"
|
|
79
|
+
target-version = "py311"
|
|
82
80
|
|
|
83
81
|
[tool.ruff.analyze]
|
|
84
82
|
type-checking-imports = false
|
|
@@ -134,17 +132,6 @@ combine-as-imports = true
|
|
|
134
132
|
[tool.ruff.lint.pydocstyle]
|
|
135
133
|
convention = "google"
|
|
136
134
|
|
|
137
|
-
[tool.ty.analysis]
|
|
138
|
-
respect-type-ignore-comments = false
|
|
139
|
-
|
|
140
|
-
[tool.ty.environment]
|
|
141
|
-
python-version = "3.10"
|
|
142
|
-
python-platform = "all"
|
|
143
|
-
|
|
144
|
-
[tool.ty.rules]
|
|
145
|
-
all = "error"
|
|
146
|
-
missing-override-decorator = "ignore"
|
|
147
|
-
|
|
148
135
|
[[tool.ty.overrides]]
|
|
149
136
|
include = ["check_empty/__init__.py"]
|
|
150
137
|
|
|
@@ -159,12 +146,24 @@ include = ["check_empty/reporter/exceptions.py"]
|
|
|
159
146
|
[tool.ty.overrides.rules]
|
|
160
147
|
invalid-mutable-override = "ignore"
|
|
161
148
|
|
|
149
|
+
[tool.ty.analysis]
|
|
150
|
+
respect-type-ignore-comments = false
|
|
151
|
+
|
|
152
|
+
[tool.ty.environment]
|
|
153
|
+
python-version = "3.11"
|
|
154
|
+
python-platform = "all"
|
|
155
|
+
|
|
156
|
+
[tool.ty.rules]
|
|
157
|
+
all = "error"
|
|
158
|
+
missing-override-decorator = "ignore"
|
|
159
|
+
|
|
162
160
|
[tool.uv]
|
|
163
|
-
|
|
161
|
+
preview = true
|
|
162
|
+
required-version = ">=0.13.7"
|
|
164
163
|
|
|
165
164
|
[tool.uv.build-backend]
|
|
166
165
|
module-name = "check_empty"
|
|
167
166
|
module-root = ""
|
|
168
167
|
|
|
169
168
|
[tool.uv.dependency-groups.docs]
|
|
170
|
-
requires-python = ">=3.
|
|
169
|
+
requires-python = ">=3.13"
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["uv_build>=0.13.
|
|
2
|
+
requires = ["uv_build>=0.13.7"]
|
|
3
3
|
build-backend = "uv_build"
|
|
4
4
|
|
|
5
5
|
[dependency-groups]
|
|
6
|
-
docs = ["furo==2025.12.19", "sphinx==9.
|
|
6
|
+
docs = ["furo==2025.12.19", "sphinx==9.2.0", "sphinx-argparse-cli==1.24.0", "sphinx-copybutton==0.5.2", "sphinx-notfound-page==1.1.0"]
|
|
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.1"
|
|
20
20
|
|
|
21
21
|
[project.optional-dependencies]
|
|
22
|
-
"7z" = ["py7zr==1.1.
|
|
22
|
+
"7z" = ["py7zr==1.1.4"]
|
|
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.1"]
|
|
25
25
|
ar = ["arpy==2.4.0"]
|
|
26
26
|
lzh = ["lhafile==0.3.1"]
|
|
27
27
|
rar = ["rarfile==4.5"]
|
|
@@ -30,8 +30,8 @@ rar = ["rarfile==4.5"]
|
|
|
30
30
|
check-empty = "check_empty.__main__:main"
|
|
31
31
|
|
|
32
32
|
[tool.ruff]
|
|
33
|
-
required-version = ">=0.17.
|
|
34
|
-
target-version = "
|
|
33
|
+
required-version = ">=0.17.4"
|
|
34
|
+
target-version = "py311"
|
|
35
35
|
|
|
36
36
|
[tool.ruff.analyze]
|
|
37
37
|
type-checking-imports = false
|
|
@@ -66,31 +66,30 @@ combine-as-imports = true
|
|
|
66
66
|
[tool.ruff.lint.pydocstyle]
|
|
67
67
|
convention = "google"
|
|
68
68
|
|
|
69
|
+
[tool.ty]
|
|
70
|
+
overrides = [
|
|
71
|
+
{include = ["check_empty/__init__.py"], rules = {possibly-unresolved-reference = "ignore", redundant-condition = "ignore", unsound-assignment = "ignore"}},
|
|
72
|
+
{include = ["check_empty/reporter/exceptions.py"], rules = {invalid-mutable-override = "ignore"}}
|
|
73
|
+
]
|
|
74
|
+
|
|
69
75
|
[tool.ty.analysis]
|
|
70
76
|
respect-type-ignore-comments = false
|
|
71
77
|
|
|
72
78
|
[tool.ty.environment]
|
|
73
|
-
python-version = "3.
|
|
79
|
+
python-version = "3.11"
|
|
74
80
|
python-platform = "all"
|
|
75
81
|
|
|
76
82
|
[tool.ty.rules]
|
|
77
83
|
all = "error"
|
|
78
84
|
missing-override-decorator = "ignore"
|
|
79
85
|
|
|
80
|
-
[[tool.ty.overrides]]
|
|
81
|
-
include = ["check_empty/__init__.py"]
|
|
82
|
-
rules = {possibly-unresolved-reference = "ignore", redundant-condition = "ignore", unsound-assignment = "ignore"}
|
|
83
|
-
|
|
84
|
-
[[tool.ty.overrides]]
|
|
85
|
-
include = ["check_empty/reporter/exceptions.py"]
|
|
86
|
-
rules = {invalid-mutable-override = "ignore"}
|
|
87
|
-
|
|
88
86
|
[tool.uv]
|
|
89
|
-
|
|
87
|
+
preview = true
|
|
88
|
+
required-version = ">=0.13.7"
|
|
90
89
|
|
|
91
90
|
[tool.uv.build-backend]
|
|
92
91
|
module-name = "check_empty"
|
|
93
92
|
module-root = ""
|
|
94
93
|
|
|
95
94
|
[tool.uv.dependency-groups]
|
|
96
|
-
docs = {requires-python = ">=3.
|
|
95
|
+
docs = {requires-python = ">=3.13"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|