Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dbd69af + d258650 commit 7727f87Copy full SHA for 7727f87
2 files changed
.pre-commit-config.yaml
@@ -35,7 +35,7 @@ repos:
35
- id: reorder-python-imports
36
args: [--py3-plus]
37
- repo: https://github.com/asottile/add-trailing-comma
38
- rev: v2.0.2
+ rev: v2.1.0
39
hooks:
40
- id: add-trailing-comma
41
args: [--py36-plus]
@@ -44,7 +44,7 @@ repos:
44
45
- id: setup-cfg-fmt
46
- repo: https://github.com/pre-commit/mirrors-mypy
47
- rev: v0.790
+ rev: v0.800
48
49
- id: mypy
50
exclude: ^testing/resources/
pre_commit/file_lock.py
@@ -1,11 +1,11 @@
1
import contextlib
2
import errno
3
-import os
+import sys
4
from typing import Callable
5
from typing import Generator
6
7
8
-if os.name == 'nt': # pragma: no cover (windows)
+if sys.platform == 'win32': # pragma: no cover (windows)
9
import msvcrt
10
11
# https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/locking
0 commit comments