Skip to content

Commit 8d906a8

Browse files
style: pre-commit fixes
1 parent c6dc8a1 commit 8d906a8

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ you can disable this behavior (e.g. to support older Git versions that don't
9494
have this capability).
9595

9696
You can also select `mode = "all"`, which will instead check every file on your
97-
system. Be prepared to ignore lots of things manually, like `*.pyc` files, if
97+
system. Be prepared to ignore lots of things manually, like `*.pyc` files, if
9898
you use this.
9999

100100
### See also

src/check_sdist/__main__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ def compare(
7777
if mode == "git":
7878
git = git_files(source_dir, recurse_submodules=recurse_submodules)
7979
elif mode == "all":
80-
git = frozenset(str(p.relative_to(source_dir)) for p in source_dir.rglob("*") if p.is_file())
80+
git = frozenset(
81+
str(p.relative_to(source_dir)) for p in source_dir.rglob("*") if p.is_file()
82+
)
8183
else:
8284
raise ValueError("Only 'all' and 'git' supported for 'mode'")
8385

src/check_sdist/resources/check-sdist.schema.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@
3232
"mode": {
3333
"description": "What to use as baseline",
3434
"default": "git",
35-
"enum": [
36-
"git",
37-
"all"
38-
]
35+
"enum": ["git", "all"]
3936
}
4037
}
4138
}

0 commit comments

Comments
 (0)