Skip to content

Commit b1f8cff

Browse files
elifarleyclaude
andcommitted
Apply code formatting and cleanup from linting
- Add reports/ directory to .gitignore (test coverage output) - Format test files with black/ruff (line length adjustments) - Add missing newlines at end of files 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 2510be9 commit b1f8cff

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ coverage.xml
4848
*.py,cover
4949
.hypothesis/
5050
.pytest_cache/
51+
reports/
5152

5253
# Translations
5354
*.mo

tests/test_cli.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ def test_skip_word_count_column_combinations(self):
118118
assert "Size" in header
119119

120120
# Test 4: --skip-word-count + --skip-header + --skip-totals
121-
code, out = run_cli([str(tmppath), "--skip-word-count", "--skip-header", "--skip-totals"])
121+
code, out = run_cli(
122+
[str(tmppath), "--skip-word-count", "--skip-header", "--skip-totals"]
123+
)
122124
assert code == 0
123125
lines = out.splitlines()
124126
# Should have only data lines, no headers or totals
@@ -148,7 +150,9 @@ def test_skip_word_count_tree_mode_structure(self):
148150
(subsub / "deep.txt").write_text("deep content")
149151

150152
# Test tree mode with --skip-word-count
151-
code, out_tree = run_cli([str(tmppath), "--tree", "--skip-word-count", "--max-depth", "2"])
153+
code, out_tree = run_cli(
154+
[str(tmppath), "--tree", "--skip-word-count", "--max-depth", "2"]
155+
)
152156
assert code == 0
153157
lines = out_tree.splitlines()
154158

@@ -159,7 +163,9 @@ def test_skip_word_count_tree_mode_structure(self):
159163

160164
# Should have tree characters in data lines
161165
data_lines = lines[1:]
162-
has_tree_chars = any("├── " in line or "└── " in line or "│ " in line for line in data_lines)
166+
has_tree_chars = any(
167+
"├── " in line or "└── " in line or "│ " in line for line in data_lines
168+
)
163169
assert has_tree_chars
164170

165171
# No "- " pattern in data lines since Words column is hidden

tests/test_headers_totals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,4 +304,4 @@ def test_tree_mode_structure_with_headers(self):
304304
# Should contain tree characters
305305
assert "├──" in tree_content or "└──" in tree_content
306306
# Should contain directory names with slashes
307-
assert "/" in tree_content
307+
assert "/" in tree_content

0 commit comments

Comments
 (0)