Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7727f87

Browse files
authored
Merge pull request #1773 from pre-commit/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents dbd69af + d258650 commit 7727f87

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ repos:
3535
- id: reorder-python-imports
3636
args: [--py3-plus]
3737
- repo: https://github.com/asottile/add-trailing-comma
38-
rev: v2.0.2
38+
rev: v2.1.0
3939
hooks:
4040
- id: add-trailing-comma
4141
args: [--py36-plus]
@@ -44,7 +44,7 @@ repos:
4444
hooks:
4545
- id: setup-cfg-fmt
4646
- repo: https://github.com/pre-commit/mirrors-mypy
47-
rev: v0.790
47+
rev: v0.800
4848
hooks:
4949
- id: mypy
5050
exclude: ^testing/resources/

pre_commit/file_lock.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import contextlib
22
import errno
3-
import os
3+
import sys
44
from typing import Callable
55
from typing import Generator
66

77

8-
if os.name == 'nt': # pragma: no cover (windows)
8+
if sys.platform == 'win32': # pragma: no cover (windows)
99
import msvcrt
1010

1111
# https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/locking

0 commit comments

Comments
 (0)