mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
python 3.9+: use removeprefix
This commit is contained in:
parent
23a2b7360e
commit
08478ec176
4 changed files with 10 additions and 8 deletions
|
|
@ -185,7 +185,7 @@ def test_db_repo_name(store):
|
|||
|
||||
def test_local_resources_reflects_reality():
|
||||
on_disk = {
|
||||
res[len('empty_template_'):]
|
||||
res.removeprefix('empty_template_')
|
||||
for res in os.listdir('pre_commit/resources')
|
||||
if res.startswith('empty_template_')
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue