apdev 0.2.0__tar.gz → 0.2.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.
Files changed (26) hide show
  1. {apdev-0.2.0 → apdev-0.2.2}/PKG-INFO +28 -7
  2. {apdev-0.2.0 → apdev-0.2.2}/README.md +26 -6
  3. {apdev-0.2.0 → apdev-0.2.2}/pyproject.toml +12 -1
  4. {apdev-0.2.0 → apdev-0.2.2}/src/apdev/__init__.py +1 -1
  5. {apdev-0.2.0 → apdev-0.2.2}/src/apdev/check_chars.py +145 -1
  6. {apdev-0.2.0 → apdev-0.2.2}/src/apdev/release.sh +6 -1
  7. {apdev-0.2.0 → apdev-0.2.2}/src/apdev.egg-info/PKG-INFO +28 -7
  8. {apdev-0.2.0 → apdev-0.2.2}/tests/test_cli.py +80 -0
  9. {apdev-0.2.0 → apdev-0.2.2}/setup.cfg +0 -0
  10. {apdev-0.2.0 → apdev-0.2.2}/src/apdev/__main__.py +0 -0
  11. {apdev-0.2.0 → apdev-0.2.2}/src/apdev/charsets/base.json +0 -0
  12. {apdev-0.2.0 → apdev-0.2.2}/src/apdev/charsets/chinese.json +0 -0
  13. {apdev-0.2.0 → apdev-0.2.2}/src/apdev/charsets/japanese.json +0 -0
  14. {apdev-0.2.0 → apdev-0.2.2}/src/apdev/charsets/korean.json +0 -0
  15. {apdev-0.2.0 → apdev-0.2.2}/src/apdev/check_imports.py +0 -0
  16. {apdev-0.2.0 → apdev-0.2.2}/src/apdev/cli.py +0 -0
  17. {apdev-0.2.0 → apdev-0.2.2}/src/apdev/config.py +0 -0
  18. {apdev-0.2.0 → apdev-0.2.2}/src/apdev/py.typed +0 -0
  19. {apdev-0.2.0 → apdev-0.2.2}/src/apdev.egg-info/SOURCES.txt +0 -0
  20. {apdev-0.2.0 → apdev-0.2.2}/src/apdev.egg-info/dependency_links.txt +0 -0
  21. {apdev-0.2.0 → apdev-0.2.2}/src/apdev.egg-info/entry_points.txt +0 -0
  22. {apdev-0.2.0 → apdev-0.2.2}/src/apdev.egg-info/requires.txt +0 -0
  23. {apdev-0.2.0 → apdev-0.2.2}/src/apdev.egg-info/top_level.txt +0 -0
  24. {apdev-0.2.0 → apdev-0.2.2}/tests/test_check_chars.py +0 -0
  25. {apdev-0.2.0 → apdev-0.2.2}/tests/test_check_imports.py +0 -0
  26. {apdev-0.2.0 → apdev-0.2.2}/tests/test_config.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apdev
3
- Version: 0.2.0
3
+ Version: 0.2.2
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
@@ -8,6 +8,7 @@ Project-URL: Homepage, https://aipartnerup.com
8
8
  Project-URL: Documentation, https://github.com/aipartnerup/apdev
9
9
  Project-URL: Repository, https://github.com/aipartnerup/apdev
10
10
  Project-URL: Issues, https://github.com/aipartnerup/apdev/issues
11
+ Keywords: development-tools,quality-assurance,linting,static-analysis,character-validation,circular-imports,release-automation,unicode-checker,trojan-source-detection
11
12
  Classifier: Development Status :: 4 - Beta
12
13
  Classifier: Intended Audience :: Developers
13
14
  Classifier: License :: OSI Approved :: Apache Software License
@@ -29,7 +30,7 @@ Requires-Dist: ruff>=0.1.0; extra == "dev"
29
30
 
30
31
  # apdev (Python)
31
32
 
32
- Shared development tools for Python projects.
33
+ General-purpose development tools for Python projects.
33
34
 
34
35
  ## Installation
35
36
 
@@ -50,12 +51,25 @@ pip install apdev[dev]
50
51
  Validate that files contain only allowed characters (ASCII, common emoji, and technical symbols like arrows and box-drawing characters).
51
52
 
52
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
+
53
60
  # Check specific files
54
61
  apdev check-chars src/mypackage/*.py
55
62
 
56
- # Use with pre-commit (see below)
63
+ # Enable extra charset (e.g. Chinese characters)
64
+ apdev check-chars --charset chinese src/
57
65
  ```
58
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
+
59
73
  ### check-imports
60
74
 
61
75
  Detect circular imports in a Python package.
@@ -64,7 +78,7 @@ Detect circular imports in a Python package.
64
78
  # Specify package explicitly
65
79
  apdev check-imports --package mypackage --src-dir src
66
80
 
67
- # Or configure in pyproject.toml (see below)
81
+ # Or configure in pyproject.toml (see Configuration below)
68
82
  apdev check-imports
69
83
  ```
70
84
 
@@ -98,12 +112,19 @@ PROJECT_NAME=mypackage GITHUB_REPO=owner/repo apdev release
98
112
 
99
113
  ## Configuration
100
114
 
101
- Add to your project's `pyproject.toml`:
115
+ Add to your project's `pyproject.toml` so commands can run without CLI arguments:
102
116
 
103
117
  ```toml
104
118
  [tool.apdev]
105
- base_package = "mypackage"
106
- 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
107
128
  ```
108
129
 
109
130
  ## Pre-commit Integration
@@ -1,6 +1,6 @@
1
1
  # apdev (Python)
2
2
 
3
- Shared development tools for Python projects.
3
+ General-purpose development tools for Python projects.
4
4
 
5
5
  ## Installation
6
6
 
@@ -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.0"
7
+ version = "0.2.2"
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"}
@@ -12,6 +12,17 @@ requires-python = ">=3.10"
12
12
  authors = [
13
13
  {name = "aipartnerup", email = "tercel.yi@gmail.com"}
14
14
  ]
15
+ keywords = [
16
+ "development-tools",
17
+ "quality-assurance",
18
+ "linting",
19
+ "static-analysis",
20
+ "character-validation",
21
+ "circular-imports",
22
+ "release-automation",
23
+ "unicode-checker",
24
+ "trojan-source-detection",
25
+ ]
15
26
  classifiers = [
16
27
  "Development Status :: 4 - Beta",
17
28
  "Intended Audience :: Developers",
@@ -1,3 +1,3 @@
1
1
  """apdev - Shared development tools for Python projects."""
2
2
 
3
- __version__ = "0.2.0"
3
+ __version__ = "0.2.2"
@@ -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,7 +203,11 @@ 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
- INIT_VERSION=$(grep -E '^__version__ = ' src/${PACKAGE_NAME}/__init__.py | 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/')
210
+ fi
207
211
 
208
212
  echo -e " pyproject.toml: ${CYAN}${PYPROJECT_VERSION}${NC}"
209
213
  echo -e " __init__.py: ${CYAN}${INIT_VERSION}${NC}"
@@ -211,6 +215,7 @@ step1_version_verification() {
211
215
 
212
216
  if [ "$PYPROJECT_VERSION" != "$VERSION" ] || [ "$INIT_VERSION" != "$VERSION" ]; then
213
217
  echo -e "${RED}❌ Version mismatch detected!${NC}"
218
+ echo -e "${YELLOW}💡 Hint: Try 'pip install -e .' to sync the installed package version${NC}"
214
219
  return 1
215
220
  fi
216
221
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apdev
3
- Version: 0.2.0
3
+ Version: 0.2.2
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
@@ -8,6 +8,7 @@ Project-URL: Homepage, https://aipartnerup.com
8
8
  Project-URL: Documentation, https://github.com/aipartnerup/apdev
9
9
  Project-URL: Repository, https://github.com/aipartnerup/apdev
10
10
  Project-URL: Issues, https://github.com/aipartnerup/apdev/issues
11
+ Keywords: development-tools,quality-assurance,linting,static-analysis,character-validation,circular-imports,release-automation,unicode-checker,trojan-source-detection
11
12
  Classifier: Development Status :: 4 - Beta
12
13
  Classifier: Intended Audience :: Developers
13
14
  Classifier: License :: OSI Approved :: Apache Software License
@@ -29,7 +30,7 @@ Requires-Dist: ruff>=0.1.0; extra == "dev"
29
30
 
30
31
  # apdev (Python)
31
32
 
32
- Shared development tools for Python projects.
33
+ General-purpose development tools for Python projects.
33
34
 
34
35
  ## Installation
35
36
 
@@ -50,12 +51,25 @@ pip install apdev[dev]
50
51
  Validate that files contain only allowed characters (ASCII, common emoji, and technical symbols like arrows and box-drawing characters).
51
52
 
52
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
+
53
60
  # Check specific files
54
61
  apdev check-chars src/mypackage/*.py
55
62
 
56
- # Use with pre-commit (see below)
63
+ # Enable extra charset (e.g. Chinese characters)
64
+ apdev check-chars --charset chinese src/
57
65
  ```
58
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
+
59
73
  ### check-imports
60
74
 
61
75
  Detect circular imports in a Python package.
@@ -64,7 +78,7 @@ Detect circular imports in a Python package.
64
78
  # Specify package explicitly
65
79
  apdev check-imports --package mypackage --src-dir src
66
80
 
67
- # Or configure in pyproject.toml (see below)
81
+ # Or configure in pyproject.toml (see Configuration below)
68
82
  apdev check-imports
69
83
  ```
70
84
 
@@ -98,12 +112,19 @@ PROJECT_NAME=mypackage GITHUB_REPO=owner/repo apdev release
98
112
 
99
113
  ## Configuration
100
114
 
101
- Add to your project's `pyproject.toml`:
115
+ Add to your project's `pyproject.toml` so commands can run without CLI arguments:
102
116
 
103
117
  ```toml
104
118
  [tool.apdev]
105
- base_package = "mypackage"
106
- 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
107
128
  ```
108
129
 
109
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