apdev 0.2.1__tar.gz → 0.2.3__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 (26) hide show
  1. {apdev-0.2.1 → apdev-0.2.3}/PKG-INFO +26 -6
  2. {apdev-0.2.1 → apdev-0.2.3}/README.md +25 -5
  3. {apdev-0.2.1 → apdev-0.2.3}/pyproject.toml +1 -1
  4. {apdev-0.2.1 → apdev-0.2.3}/src/apdev/__init__.py +1 -1
  5. {apdev-0.2.1 → apdev-0.2.3}/src/apdev/check_chars.py +145 -1
  6. {apdev-0.2.1 → apdev-0.2.3}/src/apdev/release.sh +45 -9
  7. {apdev-0.2.1 → apdev-0.2.3}/src/apdev.egg-info/PKG-INFO +26 -6
  8. {apdev-0.2.1 → apdev-0.2.3}/tests/test_cli.py +80 -0
  9. {apdev-0.2.1 → apdev-0.2.3}/setup.cfg +0 -0
  10. {apdev-0.2.1 → apdev-0.2.3}/src/apdev/__main__.py +0 -0
  11. {apdev-0.2.1 → apdev-0.2.3}/src/apdev/charsets/base.json +0 -0
  12. {apdev-0.2.1 → apdev-0.2.3}/src/apdev/charsets/chinese.json +0 -0
  13. {apdev-0.2.1 → apdev-0.2.3}/src/apdev/charsets/japanese.json +0 -0
  14. {apdev-0.2.1 → apdev-0.2.3}/src/apdev/charsets/korean.json +0 -0
  15. {apdev-0.2.1 → apdev-0.2.3}/src/apdev/check_imports.py +0 -0
  16. {apdev-0.2.1 → apdev-0.2.3}/src/apdev/cli.py +0 -0
  17. {apdev-0.2.1 → apdev-0.2.3}/src/apdev/config.py +0 -0
  18. {apdev-0.2.1 → apdev-0.2.3}/src/apdev/py.typed +0 -0
  19. {apdev-0.2.1 → apdev-0.2.3}/src/apdev.egg-info/SOURCES.txt +0 -0
  20. {apdev-0.2.1 → apdev-0.2.3}/src/apdev.egg-info/dependency_links.txt +0 -0
  21. {apdev-0.2.1 → apdev-0.2.3}/src/apdev.egg-info/entry_points.txt +0 -0
  22. {apdev-0.2.1 → apdev-0.2.3}/src/apdev.egg-info/requires.txt +0 -0
  23. {apdev-0.2.1 → apdev-0.2.3}/src/apdev.egg-info/top_level.txt +0 -0
  24. {apdev-0.2.1 → apdev-0.2.3}/tests/test_check_chars.py +0 -0
  25. {apdev-0.2.1 → apdev-0.2.3}/tests/test_check_imports.py +0 -0
  26. {apdev-0.2.1 → apdev-0.2.3}/tests/test_config.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apdev
3
- Version: 0.2.1
3
+ Version: 0.2.3
4
4
  Summary: Shared development tools for Python projects - character validation, circular import detection, and more
5
5
  Author-email: aipartnerup <tercel.yi@gmail.com>
6
6
  License: Apache-2.0
@@ -51,12 +51,25 @@ pip install apdev[dev]
51
51
  Validate that files contain only allowed characters (ASCII, common emoji, and technical symbols like arrows and box-drawing characters).
52
52
 
53
53
  ```bash
54
+ # Check default project directories (src/, tests/, examples/) and config files
55
+ apdev check-chars
56
+
57
+ # Check a directory recursively
58
+ apdev check-chars src/
59
+
54
60
  # Check specific files
55
61
  apdev check-chars src/mypackage/*.py
56
62
 
57
- # Use with pre-commit (see below)
63
+ # Enable extra charset (e.g. Chinese characters)
64
+ apdev check-chars --charset chinese src/
58
65
  ```
59
66
 
67
+ Options:
68
+
69
+ - `--charset <name>` — Enable a built-in charset preset (repeatable, e.g. `chinese`)
70
+ - `--charset-file <path>` — Load a custom charset JSON file (repeatable)
71
+ - Environment variable `APDEV_EXTRA_CHARS` — Comma-separated list of charset names or file paths, used when no `--charset`/`--charset-file` is given
72
+
60
73
  ### check-imports
61
74
 
62
75
  Detect circular imports in a Python package.
@@ -65,7 +78,7 @@ Detect circular imports in a Python package.
65
78
  # Specify package explicitly
66
79
  apdev check-imports --package mypackage --src-dir src
67
80
 
68
- # Or configure in pyproject.toml (see below)
81
+ # Or configure in pyproject.toml (see Configuration below)
69
82
  apdev check-imports
70
83
  ```
71
84
 
@@ -99,12 +112,19 @@ PROJECT_NAME=mypackage GITHUB_REPO=owner/repo apdev release
99
112
 
100
113
  ## Configuration
101
114
 
102
- Add to your project's `pyproject.toml`:
115
+ Add to your project's `pyproject.toml` so commands can run without CLI arguments:
103
116
 
104
117
  ```toml
105
118
  [tool.apdev]
106
- base_package = "mypackage"
107
- src_dir = "src"
119
+ base_package = "mypackage" # Required by check-imports
120
+ src_dir = "src" # Source directory (default: "src")
121
+ ```
122
+
123
+ With this config, both commands work out of the box:
124
+
125
+ ```bash
126
+ apdev check-chars # Checks default project directories and config files
127
+ apdev check-imports # Reads base_package / src_dir from pyproject.toml
108
128
  ```
109
129
 
110
130
  ## Pre-commit Integration
@@ -21,12 +21,25 @@ pip install apdev[dev]
21
21
  Validate that files contain only allowed characters (ASCII, common emoji, and technical symbols like arrows and box-drawing characters).
22
22
 
23
23
  ```bash
24
+ # Check default project directories (src/, tests/, examples/) and config files
25
+ apdev check-chars
26
+
27
+ # Check a directory recursively
28
+ apdev check-chars src/
29
+
24
30
  # Check specific files
25
31
  apdev check-chars src/mypackage/*.py
26
32
 
27
- # Use with pre-commit (see below)
33
+ # Enable extra charset (e.g. Chinese characters)
34
+ apdev check-chars --charset chinese src/
28
35
  ```
29
36
 
37
+ Options:
38
+
39
+ - `--charset <name>` — Enable a built-in charset preset (repeatable, e.g. `chinese`)
40
+ - `--charset-file <path>` — Load a custom charset JSON file (repeatable)
41
+ - Environment variable `APDEV_EXTRA_CHARS` — Comma-separated list of charset names or file paths, used when no `--charset`/`--charset-file` is given
42
+
30
43
  ### check-imports
31
44
 
32
45
  Detect circular imports in a Python package.
@@ -35,7 +48,7 @@ Detect circular imports in a Python package.
35
48
  # Specify package explicitly
36
49
  apdev check-imports --package mypackage --src-dir src
37
50
 
38
- # Or configure in pyproject.toml (see below)
51
+ # Or configure in pyproject.toml (see Configuration below)
39
52
  apdev check-imports
40
53
  ```
41
54
 
@@ -69,12 +82,19 @@ PROJECT_NAME=mypackage GITHUB_REPO=owner/repo apdev release
69
82
 
70
83
  ## Configuration
71
84
 
72
- Add to your project's `pyproject.toml`:
85
+ Add to your project's `pyproject.toml` so commands can run without CLI arguments:
73
86
 
74
87
  ```toml
75
88
  [tool.apdev]
76
- base_package = "mypackage"
77
- src_dir = "src"
89
+ base_package = "mypackage" # Required by check-imports
90
+ src_dir = "src" # Source directory (default: "src")
91
+ ```
92
+
93
+ With this config, both commands work out of the box:
94
+
95
+ ```bash
96
+ apdev check-chars # Checks default project directories and config files
97
+ apdev check-imports # Reads base_package / src_dir from pyproject.toml
78
98
  ```
79
99
 
80
100
  ## Pre-commit Integration
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "apdev"
7
- version = "0.2.1"
7
+ version = "0.2.3"
8
8
  description = "Shared development tools for Python projects - character validation, circular import detection, and more"
9
9
  readme = "README.md"
10
10
  license = {text = "Apache-2.0"}
@@ -1,3 +1,3 @@
1
1
  """apdev - Shared development tools for Python projects."""
2
2
 
3
- __version__ = "0.2.1"
3
+ __version__ = "0.2.3"
@@ -278,6 +278,141 @@ def check_file(
278
278
  return problems
279
279
 
280
280
 
281
+ _DEFAULT_DIRS = ("src", "tests", "examples")
282
+ _DEFAULT_GLOBS = ("*.md", "*.yml", "*.yaml", "*.json", ".gitignore")
283
+
284
+
285
+ def _resolve_paths(paths: list[Path]) -> list[Path]:
286
+ """Expand directories to files and deduplicate.
287
+
288
+ If *paths* is empty, scan default directories (src, tests, examples)
289
+ and common config files in the current working directory.
290
+ Directories are expanded recursively (hidden files/dirs and binary
291
+ files are skipped).
292
+ """
293
+ if not paths:
294
+ return _default_project_files()
295
+
296
+ result: list[Path] = []
297
+ for p in paths:
298
+ if p.is_dir():
299
+ result.extend(_walk_dir(p))
300
+ else:
301
+ result.append(p)
302
+ return result
303
+
304
+
305
+ def _default_project_files() -> list[Path]:
306
+ """Collect files from default project directories and root config files."""
307
+ cwd = Path.cwd()
308
+ files: list[Path] = []
309
+
310
+ for dirname in _DEFAULT_DIRS:
311
+ d = cwd / dirname
312
+ if d.is_dir():
313
+ files.extend(_walk_dir(d))
314
+
315
+ for pattern in _DEFAULT_GLOBS:
316
+ files.extend(sorted(cwd.glob(pattern)))
317
+
318
+ return files
319
+
320
+
321
+ _SKIP_SUFFIXES = frozenset(
322
+ {
323
+ # Python bytecode
324
+ ".pyc",
325
+ ".pyo",
326
+ # Images
327
+ ".png",
328
+ ".jpg",
329
+ ".jpeg",
330
+ ".gif",
331
+ ".bmp",
332
+ ".ico",
333
+ ".svg",
334
+ ".webp",
335
+ # Fonts
336
+ ".ttf",
337
+ ".otf",
338
+ ".woff",
339
+ ".woff2",
340
+ ".eot",
341
+ # Archives
342
+ ".zip",
343
+ ".tar",
344
+ ".gz",
345
+ ".bz2",
346
+ ".xz",
347
+ ".7z",
348
+ # Compiled / binary
349
+ ".so",
350
+ ".dylib",
351
+ ".dll",
352
+ ".exe",
353
+ ".o",
354
+ ".a",
355
+ ".whl",
356
+ ".egg",
357
+ # Media
358
+ ".mp3",
359
+ ".mp4",
360
+ ".wav",
361
+ ".avi",
362
+ ".mov",
363
+ ".flac",
364
+ ".ogg",
365
+ # Documents
366
+ ".pdf",
367
+ ".doc",
368
+ ".docx",
369
+ ".xls",
370
+ ".xlsx",
371
+ ".ppt",
372
+ ".pptx",
373
+ # Data
374
+ ".db",
375
+ ".sqlite",
376
+ ".sqlite3",
377
+ ".pickle",
378
+ ".pkl",
379
+ }
380
+ )
381
+
382
+ _SKIP_DIRS = frozenset(
383
+ {
384
+ "__pycache__",
385
+ "node_modules",
386
+ ".git",
387
+ ".venv",
388
+ "venv",
389
+ ".tox",
390
+ ".mypy_cache",
391
+ ".pytest_cache",
392
+ ".ruff_cache",
393
+ "dist",
394
+ "build",
395
+ }
396
+ )
397
+
398
+
399
+ def _walk_dir(directory: Path) -> list[Path]:
400
+ """Recursively yield non-hidden, non-binary files under *directory*."""
401
+ files: list[Path] = []
402
+ for entry in sorted(directory.iterdir()):
403
+ if entry.name.startswith("."):
404
+ continue
405
+ if entry.is_dir():
406
+ if entry.name in _SKIP_DIRS or entry.name.endswith(".egg-info"):
407
+ continue
408
+ files.extend(_walk_dir(entry))
409
+ elif entry.is_file():
410
+ if entry.suffix.lower() in _SKIP_SUFFIXES:
411
+ continue
412
+ files.append(entry)
413
+ return files
414
+
415
+
281
416
  def check_paths(
282
417
  paths: list[Path],
283
418
  *,
@@ -285,12 +420,21 @@ def check_paths(
285
420
  dangerous: dict[int, str] | None = None,
286
421
  ) -> int:
287
422
  """Check multiple files. Returns 0 if all clean, 1 if any have problems."""
423
+ resolved = _resolve_paths(paths)
424
+ if not resolved:
425
+ print("No files to check.")
426
+ return 0
427
+
288
428
  has_error = False
289
- for path in paths:
429
+ checked = 0
430
+ for path in resolved:
290
431
  problems = check_file(path, extra_ranges=extra_ranges, dangerous=dangerous)
432
+ checked += 1
291
433
  if problems:
292
434
  has_error = True
293
435
  print(f"\n{path} contains illegal characters:")
294
436
  for p in problems:
295
437
  print(f" {p}")
438
+ if not has_error:
439
+ print(f"All {checked} files passed.")
296
440
  return 1 if has_error else 0
@@ -203,22 +203,58 @@ step1_version_verification() {
203
203
  echo -e "${BLUE}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
204
204
 
205
205
  PYPROJECT_VERSION=$(grep -E '^version = ' pyproject.toml | sed 's/version = "\(.*\)"/\1/')
206
- # Support both static (__version__ = "x.x.x") and dynamic (importlib.metadata) version patterns
207
- INIT_VERSION=$(python3 -c "from ${PACKAGE_NAME} import __version__; print(__version__)" 2>/dev/null)
208
- if [ -z "$INIT_VERSION" ]; then
209
- INIT_VERSION=$(grep -E '^__version__ = ' src/${PACKAGE_NAME}/__init__.py | sed 's/__version__ = "\(.*\)"/\1/')
206
+
207
+ # Locate __init__.py (src layout or flat layout)
208
+ INIT_FILE=""
209
+ if [ -f "src/${PACKAGE_NAME}/__init__.py" ]; then
210
+ INIT_FILE="src/${PACKAGE_NAME}/__init__.py"
211
+ SRC_ROOT="src"
212
+ elif [ -f "${PACKAGE_NAME}/__init__.py" ]; then
213
+ INIT_FILE="${PACKAGE_NAME}/__init__.py"
214
+ SRC_ROOT="."
215
+ fi
216
+
217
+ INIT_VERSION=""
218
+ INIT_DYNAMIC=false
219
+ if [ -n "$INIT_FILE" ]; then
220
+ # 1) Try dynamic import with local source on PYTHONPATH
221
+ INIT_VERSION=$(PYTHONPATH="${SRC_ROOT}:${PYTHONPATH:-}" python3 -c "from ${PACKAGE_NAME} import __version__; print(__version__)" 2>/dev/null)
222
+ # 2) Fallback: grep static __version__ = "x.x.x"
223
+ if [ -z "$INIT_VERSION" ]; then
224
+ INIT_VERSION=$(grep -E '^__version__ = ' "$INIT_FILE" 2>/dev/null | sed 's/__version__ = "\(.*\)"/\1/')
225
+ fi
226
+ # 3) If still empty, check if __init__.py uses dynamic versioning (importlib.metadata)
227
+ if [ -z "$INIT_VERSION" ]; then
228
+ if grep -qE 'importlib\.metadata|from importlib' "$INIT_FILE" 2>/dev/null; then
229
+ INIT_VERSION="$PYPROJECT_VERSION"
230
+ INIT_DYNAMIC=true
231
+ fi
232
+ fi
210
233
  fi
211
234
 
212
235
  echo -e " pyproject.toml: ${CYAN}${PYPROJECT_VERSION}${NC}"
213
- echo -e " __init__.py: ${CYAN}${INIT_VERSION}${NC}"
236
+ if [ -z "$INIT_FILE" ]; then
237
+ echo -e " __init__.py: ${YELLOW}(not found, skipped)${NC}"
238
+ elif [ "$INIT_DYNAMIC" = true ]; then
239
+ echo -e " __init__.py: ${CYAN}${INIT_VERSION}${NC} (dynamic, from pyproject.toml)"
240
+ elif [ -n "$INIT_VERSION" ]; then
241
+ echo -e " __init__.py: ${CYAN}${INIT_VERSION}${NC}"
242
+ else
243
+ echo -e " __init__.py: ${YELLOW}(no __version__ defined, skipped)${NC}"
244
+ fi
214
245
  echo -e " Script version: ${CYAN}${VERSION}${NC}"
215
-
216
- if [ "$PYPROJECT_VERSION" != "$VERSION" ] || [ "$INIT_VERSION" != "$VERSION" ]; then
217
- echo -e "${RED}❌ Version mismatch detected!${NC}"
246
+
247
+ if [ "$PYPROJECT_VERSION" != "$VERSION" ]; then
248
+ echo -e "${RED}❌ Version mismatch: pyproject.toml (${PYPROJECT_VERSION}) != script (${VERSION})${NC}"
249
+ return 1
250
+ fi
251
+
252
+ if [ -n "$INIT_VERSION" ] && [ "$INIT_VERSION" != "$VERSION" ]; then
253
+ echo -e "${RED}❌ Version mismatch: __init__.py (${INIT_VERSION}) != script (${VERSION})${NC}"
218
254
  echo -e "${YELLOW}💡 Hint: Try 'pip install -e .' to sync the installed package version${NC}"
219
255
  return 1
220
256
  fi
221
-
257
+
222
258
  echo -e "${GREEN}✅ All versions match${NC}"
223
259
  echo ""
224
260
  return 0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apdev
3
- Version: 0.2.1
3
+ Version: 0.2.3
4
4
  Summary: Shared development tools for Python projects - character validation, circular import detection, and more
5
5
  Author-email: aipartnerup <tercel.yi@gmail.com>
6
6
  License: Apache-2.0
@@ -51,12 +51,25 @@ pip install apdev[dev]
51
51
  Validate that files contain only allowed characters (ASCII, common emoji, and technical symbols like arrows and box-drawing characters).
52
52
 
53
53
  ```bash
54
+ # Check default project directories (src/, tests/, examples/) and config files
55
+ apdev check-chars
56
+
57
+ # Check a directory recursively
58
+ apdev check-chars src/
59
+
54
60
  # Check specific files
55
61
  apdev check-chars src/mypackage/*.py
56
62
 
57
- # Use with pre-commit (see below)
63
+ # Enable extra charset (e.g. Chinese characters)
64
+ apdev check-chars --charset chinese src/
58
65
  ```
59
66
 
67
+ Options:
68
+
69
+ - `--charset <name>` — Enable a built-in charset preset (repeatable, e.g. `chinese`)
70
+ - `--charset-file <path>` — Load a custom charset JSON file (repeatable)
71
+ - Environment variable `APDEV_EXTRA_CHARS` — Comma-separated list of charset names or file paths, used when no `--charset`/`--charset-file` is given
72
+
60
73
  ### check-imports
61
74
 
62
75
  Detect circular imports in a Python package.
@@ -65,7 +78,7 @@ Detect circular imports in a Python package.
65
78
  # Specify package explicitly
66
79
  apdev check-imports --package mypackage --src-dir src
67
80
 
68
- # Or configure in pyproject.toml (see below)
81
+ # Or configure in pyproject.toml (see Configuration below)
69
82
  apdev check-imports
70
83
  ```
71
84
 
@@ -99,12 +112,19 @@ PROJECT_NAME=mypackage GITHUB_REPO=owner/repo apdev release
99
112
 
100
113
  ## Configuration
101
114
 
102
- Add to your project's `pyproject.toml`:
115
+ Add to your project's `pyproject.toml` so commands can run without CLI arguments:
103
116
 
104
117
  ```toml
105
118
  [tool.apdev]
106
- base_package = "mypackage"
107
- src_dir = "src"
119
+ base_package = "mypackage" # Required by check-imports
120
+ src_dir = "src" # Source directory (default: "src")
121
+ ```
122
+
123
+ With this config, both commands work out of the box:
124
+
125
+ ```bash
126
+ apdev check-chars # Checks default project directories and config files
127
+ apdev check-imports # Reads base_package / src_dir from pyproject.toml
108
128
  ```
109
129
 
110
130
  ## Pre-commit Integration
@@ -122,6 +122,86 @@ def test_cli_check_chars_cli_overrides_env(tmp_path: Path) -> None:
122
122
  assert result.returncode == 1
123
123
 
124
124
 
125
+ def test_cli_check_chars_no_args_scans_defaults(tmp_path: Path) -> None:
126
+ """apdev check-chars with no files scans src/, tests/, and root config files."""
127
+ src = tmp_path / "src" / "pkg"
128
+ src.mkdir(parents=True)
129
+ (src / "a.py").write_text("x = 1\n")
130
+ tests_dir = tmp_path / "tests"
131
+ tests_dir.mkdir()
132
+ (tests_dir / "test_a.py").write_text("y = 2\n")
133
+ (tmp_path / "README.md").write_text("hello\n")
134
+
135
+ result = run_apdev("check-chars", cwd=tmp_path)
136
+ assert result.returncode == 0
137
+
138
+
139
+ def test_cli_check_chars_no_args_detects_bad(tmp_path: Path) -> None:
140
+ """apdev check-chars with no files catches illegal chars in default dirs."""
141
+ src = tmp_path / "src"
142
+ src.mkdir()
143
+ (src / "bad.py").write_text("x = '\u4e2d'\n")
144
+
145
+ result = run_apdev("check-chars", cwd=tmp_path)
146
+ assert result.returncode == 1
147
+ assert "illegal characters" in result.stdout.lower()
148
+
149
+
150
+ def test_cli_check_chars_no_args_empty_project(tmp_path: Path) -> None:
151
+ """apdev check-chars with no files and no default dirs returns 0."""
152
+ result = run_apdev("check-chars", cwd=tmp_path)
153
+ assert result.returncode == 0
154
+ assert "No files to check" in result.stdout
155
+
156
+
157
+ def test_cli_check_chars_directory(tmp_path: Path) -> None:
158
+ """apdev check-chars with a directory recursively checks files."""
159
+ sub = tmp_path / "pkg"
160
+ sub.mkdir()
161
+ (sub / "a.py").write_text("x = 1\n")
162
+ (sub / "b.py").write_text("x = '\u4e2d'\n") # illegal char
163
+
164
+ result = run_apdev("check-chars", str(sub))
165
+ assert result.returncode == 1
166
+ assert "illegal characters" in result.stdout.lower()
167
+
168
+
169
+ def test_cli_check_chars_directory_clean(tmp_path: Path) -> None:
170
+ """apdev check-chars with a clean directory returns 0."""
171
+ sub = tmp_path / "pkg"
172
+ sub.mkdir()
173
+ (sub / "a.py").write_text("x = 1\n")
174
+
175
+ result = run_apdev("check-chars", str(sub))
176
+ assert result.returncode == 0
177
+
178
+
179
+ def test_cli_check_chars_skips_binary_files(tmp_path: Path) -> None:
180
+ """apdev check-chars skips binary files like .pyc when scanning a directory."""
181
+ sub = tmp_path / "pkg"
182
+ sub.mkdir()
183
+ (sub / "ok.py").write_text("x = 1\n")
184
+ (sub / "bad.pyc").write_bytes(b"\xcb\x00\x00\x00")
185
+
186
+ result = run_apdev("check-chars", str(sub))
187
+ assert result.returncode == 0
188
+ assert "bad.pyc" not in result.stdout
189
+
190
+
191
+ def test_cli_check_chars_skips_hidden_dirs(tmp_path: Path) -> None:
192
+ """apdev check-chars skips hidden directories when scanning."""
193
+ sub = tmp_path / "pkg"
194
+ sub.mkdir()
195
+ (sub / "ok.py").write_text("x = 1\n")
196
+ hidden = sub / ".hidden"
197
+ hidden.mkdir()
198
+ (hidden / "bad.py").write_text("x = '\u4e2d'\n")
199
+
200
+ result = run_apdev("check-chars", str(sub))
201
+ assert result.returncode == 0
202
+ assert ".hidden" not in result.stdout
203
+
204
+
125
205
  def test_cli_check_chars_charset_file(tmp_path: Path) -> None:
126
206
  """--charset-file with custom JSON allows specified ranges."""
127
207
  custom = tmp_path / "custom.json"
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