check-empty 4.1.1__tar.gz → 4.1.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: check-empty
3
- Version: 4.1.1
3
+ Version: 4.1.2
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
@@ -26,7 +26,7 @@ Classifier: Topic :: Utilities
26
26
  Classifier: Typing :: Typed
27
27
  Requires-Dist: py7zr==1.1.4 ; extra == '7z'
28
28
  Requires-Dist: acefile==0.6.14 ; extra == 'ace'
29
- Requires-Dist: check-empty[7z,ace,ar,lzh,rar]==4.1.1 ; extra == 'all'
29
+ Requires-Dist: check-empty[7z,ace,ar,lzh,rar]==4.1.2 ; extra == 'all'
30
30
  Requires-Dist: arpy==2.4.0 ; extra == 'ar'
31
31
  Requires-Dist: lhafile==0.3.1 ; extra == 'lzh'
32
32
  Requires-Dist: rarfile==4.5 ; extra == 'rar'
@@ -41,7 +41,7 @@ Provides-Extra: lzh
41
41
  Provides-Extra: rar
42
42
  Description-Content-Type: text/markdown
43
43
 
44
- # [check-empty](https://pypi.org/project/check-empty/4.1.1)
44
+ # [check-empty](https://pypi.org/project/check-empty/4.1.2)
45
45
 
46
46
  [![#StandWithPalestine](https://raw.githubusercontent.com/TheBSD/StandWithPalestine/main/badges/StandWithPalestine.svg)](https://github.com/TheBSD/StandWithPalestine/blob/main/docs/README.md)
47
47
 
@@ -56,7 +56,7 @@ specified.
56
56
 
57
57
  ## Prerequisites
58
58
 
59
- Supports every Python 3.11 runtime. There are no other requirements unless you want to
59
+ Supports every Python 3.11+ runtime. There are no other requirements unless you want to
60
60
  check if files in certain types of (compressed) archives are empty.
61
61
 
62
62
  ## Quickstart
@@ -125,7 +125,7 @@ As a pre-commit hook:
125
125
  # .pre-commit-config.yaml
126
126
  repos:
127
127
  - repo: https://github.com/jonathandung/check-empty
128
- rev: v4.1.1 # repository version
128
+ rev: v4.1.2 # repository version
129
129
  hooks:
130
130
  - id: check-empty # the hook
131
131
  args: # example list of arguments
@@ -141,7 +141,7 @@ equivalent in `prek.toml` format:
141
141
  ```toml
142
142
  [[repos]]
143
143
  repo = "https://github.com/jonathandung/check-empty"
144
- rev = "v4.1.1"
144
+ rev = "v4.1.2"
145
145
 
146
146
  [[repos.hooks]]
147
147
  id = "check-empty"
@@ -165,7 +165,7 @@ or (TOML 1.1+):
165
165
  # using multiline inline tables
166
166
  [[repos]]
167
167
  repo = "https://github.com/jonathandung/check-empty"
168
- rev = "v4.1.1"
168
+ rev = "v4.1.2"
169
169
  hooks = [{
170
170
  id = "check-empty",
171
171
  args = ["-Q"],
@@ -185,7 +185,7 @@ As a GitHub Actions workflow step:
185
185
 
186
186
  ```yaml
187
187
  steps:
188
- - uses: jonathandung/check-empty@v4.1.1 # the latest version on the GitHub Actions
188
+ - uses: jonathandung/check-empty@v4.1.2 # the latest version on the GitHub Actions
189
189
  # marketplace; this step will fail and subsequent jobs will not run if any file is
190
190
  # not empty
191
191
  with:
@@ -244,7 +244,7 @@ to read the
244
244
  and the
245
245
  [contributing guide](https://github.com/jonathandung/.github/blob/main/CONTRIBUTING.md).
246
246
 
247
- To build the docs locally (needs Python 3.12+ because of Sphinx), install the package
247
+ To build the docs locally (needs Python 3.13+ because of Sphinx), install the package
248
248
  with the `docs`
249
249
  [group](https://packaging.python.org/en/latest/specifications/dependency-groups) using
250
250
  a package manager that supports it (e.g. pip 25.1+ or uv 0.4.27+), preferably into a
@@ -256,4 +256,4 @@ Tests are run with:
256
256
  python -m test_check_empty
257
257
  ```
258
258
 
259
- at the project root. `pytest` is not needed.
259
+ at the project root.
@@ -1,4 +1,4 @@
1
- # [check-empty](https://pypi.org/project/check-empty/4.1.1)
1
+ # [check-empty](https://pypi.org/project/check-empty/4.1.2)
2
2
 
3
3
  [![#StandWithPalestine](https://raw.githubusercontent.com/TheBSD/StandWithPalestine/main/badges/StandWithPalestine.svg)](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.11 runtime. There are no other requirements unless you want to
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.1.1 # repository version
85
+ rev: v4.1.2 # 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.1.1"
101
+ rev = "v4.1.2"
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.1.1"
125
+ rev = "v4.1.2"
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.1.1 # the latest version on the GitHub Actions
145
+ - uses: jonathandung/check-empty@v4.1.2 # 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:
@@ -201,7 +201,7 @@ to read the
201
201
  and the
202
202
  [contributing guide](https://github.com/jonathandung/.github/blob/main/CONTRIBUTING.md).
203
203
 
204
- To build the docs locally (needs Python 3.12+ because of Sphinx), install the package
204
+ To build the docs locally (needs Python 3.13+ because of Sphinx), install the package
205
205
  with the `docs`
206
206
  [group](https://packaging.python.org/en/latest/specifications/dependency-groups) using
207
207
  a package manager that supports it (e.g. pip 25.1+ or uv 0.4.27+), preferably into a
@@ -213,4 +213,4 @@ Tests are run with:
213
213
  python -m test_check_empty
214
214
  ```
215
215
 
216
- at the project root. `pytest` is not needed.
216
+ at the project root.
@@ -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.1.1'
13
+ __version__ = '4.1.2'
14
14
  """The version of the package."""
15
15
  default_reporter: reporter.Reporter = reporter.Reporter()
16
16
  """The default reporter used by :func:`check`."""
@@ -209,7 +209,7 @@ def check(
209
209
 
210
210
  if tr and v(tr.open, tr.TarError):
211
211
  aa(a)
212
- for r in d.getmembers():
212
+ for r in d.getmembers(): # ruff: ignore[undefined-local]
213
213
  a, s = q = r.name, r.size
214
214
  e()
215
215
  av.purge_tar(d) if clear else d.close()
@@ -62,7 +62,7 @@ def main(argv: Iterable[str] | None = None) -> int:
62
62
  try:
63
63
  n = _p.parse_args(argv)
64
64
  except SystemExit as e:
65
- return e.code # ty: ignore[invalid-return-type]
65
+ return e.code # ty: ignore[invalid-explicit-return]
66
66
  o = n.out
67
67
  if o is not None:
68
68
  # ruff: ignore[open-file-with-context-handler]
@@ -5,10 +5,10 @@ from __future__ import annotations
5
5
  import os
6
6
 
7
7
  __all__ = (
8
+ 'ARCHIVE_FORMATS',
8
9
  'DIRFD_UNSUPPORTED',
9
10
  'ENOENT',
10
11
  'S_IFDIR',
11
- 'TYPE_CHECKING',
12
12
  'TYPE_MASK',
13
13
  'RecurseInto',
14
14
  )
@@ -26,7 +26,7 @@ DIRFD_UNSUPPORTED: Final = (
26
26
  if os.name == 'nt'
27
27
  else NotImplementedError('directory descriptors are not supported')
28
28
  )
29
- """Error raised when a directory descriptor is passed to :func:`~check_empty.check`."""
29
+ """The error raised when :func:`~check_empty.check` gets a directory descriptor."""
30
30
 
31
31
 
32
32
  class RecurseInto(__import__('enum').IntFlag):
@@ -55,8 +55,9 @@ class RecurseInto(__import__('enum').IntFlag):
55
55
  ACE = 64
56
56
  """Recurse into .ace archives; requires `acefile <https://apidoc.roe.ch/acefile/latest>`__."""
57
57
  ALL = 127
58
- """Recurse into all archive types."""
58
+ """Recurse into all supported archive types."""
59
59
 
60
60
 
61
61
  ARCHIVE_FORMATS: Final = tuple(RecurseInto)
62
+ """A tuple of the flags corresponding to each supported archive type ordered by bit."""
62
63
  del os, TYPE_CHECKING
@@ -1,12 +1,12 @@
1
1
  [build-system]
2
- requires = ["uv_build>=0.13.7"]
2
+ requires = ["uv_build>=0.13.9"]
3
3
  build-backend = "uv_build"
4
4
 
5
5
  [dependency-groups]
6
6
  docs = [
7
7
  "furo==2025.12.19",
8
8
  "sphinx==9.2.0",
9
- "sphinx-argparse-cli==1.24.0",
9
+ "sphinx-argparse-cli==1.24.2",
10
10
  "sphinx-copybutton==0.5.2",
11
11
  "sphinx-notfound-page==1.1.0",
12
12
  ]
@@ -53,7 +53,7 @@ license-files = [
53
53
  name = "check-empty"
54
54
  readme = "README.md"
55
55
  requires-python = ">=3.11"
56
- version = "4.1.1"
56
+ version = "4.1.2"
57
57
 
58
58
  [[project.authors]]
59
59
  name = "Jonathan Dung"
@@ -66,7 +66,7 @@ email = "jonathandung@yahoo.com"
66
66
  [project.optional-dependencies]
67
67
  7z = ["py7zr==1.1.4"]
68
68
  ace = ["acefile==0.6.14"]
69
- all = ["check-empty[7z,ace,ar,lzh,rar]==4.1.1"]
69
+ all = ["check-empty[7z,ace,ar,lzh,rar]==4.1.2"]
70
70
  ar = ["arpy==2.4.0"]
71
71
  lzh = ["lhafile==0.3.1"]
72
72
  rar = ["rarfile==4.5"]
@@ -75,7 +75,7 @@ rar = ["rarfile==4.5"]
75
75
  check-empty = "check_empty.__main__:main"
76
76
 
77
77
  [tool.ruff]
78
- required-version = ">=0.17.4"
78
+ required-version = ">=0.17.6"
79
79
  target-version = "py311"
80
80
 
81
81
  [tool.ruff.analyze]
@@ -144,7 +144,7 @@ unsound-assignment = "ignore"
144
144
  include = ["check_empty/reporter/exceptions.py"]
145
145
 
146
146
  [tool.ty.overrides.rules]
147
- invalid-mutable-override = "ignore"
147
+ incompatible-mutable-override = "ignore"
148
148
 
149
149
  [tool.ty.analysis]
150
150
  respect-type-ignore-comments = false
@@ -159,7 +159,7 @@ missing-override-decorator = "ignore"
159
159
 
160
160
  [tool.uv]
161
161
  preview = true
162
- required-version = ">=0.13.7"
162
+ required-version = ">=0.13.9"
163
163
 
164
164
  [tool.uv.build-backend]
165
165
  module-name = "check_empty"
@@ -1,9 +1,9 @@
1
1
  [build-system]
2
- requires = ["uv_build>=0.13.7"]
2
+ requires = ["uv_build>=0.13.9"]
3
3
  build-backend = "uv_build"
4
4
 
5
5
  [dependency-groups]
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"]
6
+ docs = ["furo==2025.12.19", "sphinx==9.2.0", "sphinx-argparse-cli==1.24.2", "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"}]
@@ -16,12 +16,12 @@ maintainers = [{name = "Jonathan Dung", email = "jonathandung@yahoo.com"}]
16
16
  name = "check-empty"
17
17
  readme = "README.md"
18
18
  requires-python = ">=3.11"
19
- version = "4.1.1"
19
+ version = "4.1.2"
20
20
 
21
21
  [project.optional-dependencies]
22
22
  "7z" = ["py7zr==1.1.4"]
23
23
  ace = ["acefile==0.6.14"]
24
- all = ["check-empty[7z,ace,ar,lzh,rar]==4.1.1"]
24
+ all = ["check-empty[7z,ace,ar,lzh,rar]==4.1.2"]
25
25
  ar = ["arpy==2.4.0"]
26
26
  lzh = ["lhafile==0.3.1"]
27
27
  rar = ["rarfile==4.5"]
@@ -30,7 +30,7 @@ rar = ["rarfile==4.5"]
30
30
  check-empty = "check_empty.__main__:main"
31
31
 
32
32
  [tool.ruff]
33
- required-version = ">=0.17.4"
33
+ required-version = ">=0.17.6"
34
34
  target-version = "py311"
35
35
 
36
36
  [tool.ruff.analyze]
@@ -69,7 +69,7 @@ convention = "google"
69
69
  [tool.ty]
70
70
  overrides = [
71
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"}}
72
+ {include = ["check_empty/reporter/exceptions.py"], rules = {incompatible-mutable-override = "ignore"}}
73
73
  ]
74
74
 
75
75
  [tool.ty.analysis]
@@ -85,7 +85,7 @@ missing-override-decorator = "ignore"
85
85
 
86
86
  [tool.uv]
87
87
  preview = true
88
- required-version = ">=0.13.7"
88
+ required-version = ">=0.13.9"
89
89
 
90
90
  [tool.uv.build-backend]
91
91
  module-name = "check_empty"
File without changes
File without changes