File tree 7 files changed +36
-12
lines changed
7 files changed +36
-12
lines changed Original file line number Diff line number Diff line change 27
27
- ubuntu-22.04
28
28
- windows-2022
29
29
- macos-12
30
+ exclude :
31
+ - { os: windows-2022, py: "pypy3.9" }
30
32
31
33
steps :
32
34
- name : Setup python for tox
Original file line number Diff line number Diff line change 1
1
repos :
2
2
- repo : https://github.com/pre-commit/pre-commit-hooks
3
- rev : v4.3 .0
3
+ rev : v4.4 .0
4
4
hooks :
5
5
- id : check-ast
6
6
- id : check-builtin-literals
12
12
- id : end-of-file-fixer
13
13
- id : trailing-whitespace
14
14
- repo : https://github.com/asottile/pyupgrade
15
- rev : v3.2.2
15
+ rev : v3.3.0
16
16
hooks :
17
17
- id : pyupgrade
18
18
args : [ "--py36-plus" ]
44
44
- id : tox-ini-fmt
45
45
args : [ "-p", "fix_lint" ]
46
46
- repo : https://github.com/PyCQA/flake8
47
- rev : 5 .0.4
47
+ rev : 6 .0.0
48
48
hooks :
49
49
- id : flake8
50
50
additional_dependencies :
53
53
- flake8-pytest-style==1.6
54
54
- flake8-spellcheck==0.28
55
55
- flake8-unused-arguments==0.0.12
56
- - flake8-noqa==1.2.9
56
+ - flake8-noqa==1.3
57
57
- pep8-naming==0.13.2
Original file line number Diff line number Diff line change 1
1
Changelog
2
2
=========
3
3
4
+ v3.8.1 (2022-12-04)
5
+ -------------------
6
+ - Fix mypy does not accept ``filelock.FileLock `` as a valid type
7
+
8
+ v3.8.0 (2022-12-04)
9
+ -------------------
10
+ - Bump project dependencies
11
+ - Add timeout unit to docstrings
12
+ - Support 3.11
13
+
14
+ v3.7.1 (2022-05-31)
15
+ -------------------
16
+ - Make the readme documentation point to the index page
17
+
18
+ v3.7.0 (2022-05-13)
19
+ -------------------
20
+ - Add ability to return immediately when a lock cannot be obtained
21
+
4
22
v3.6.0 (2022-02-17)
5
23
-------------------
6
24
- Fix pylint warning "Abstract class :class: `WindowsFileLock <filelock.WindowsFileLock> ` with abstract methods instantiated"
Original file line number Diff line number Diff line change 1
1
[build-system ]
2
2
requires = [
3
- " setuptools>=65.5 " ,
3
+ " setuptools>=65.6.3 " ,
4
4
" setuptools_scm>=7.0.5" ,
5
5
]
6
6
build-backend = ' setuptools.build_meta'
Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ where = src
38
38
docs =
39
39
furo>=2022.9.29
40
40
sphinx>=5.3
41
- sphinx-autodoc-typehints>=1.19.4
41
+ sphinx-autodoc-typehints>=1.19.5
42
42
testing =
43
- covdefaults>=2.2
43
+ covdefaults>=2.2.2
44
44
coverage>=6.5
45
45
pytest>=7.2
46
46
pytest-cov>=4
Original file line number Diff line number Diff line change 9
9
10
10
import sys
11
11
import warnings
12
+ from typing import TYPE_CHECKING
12
13
13
14
from ._api import AcquireReturnProxy , BaseFileLock
14
15
from ._error import Timeout
33
34
34
35
#: Alias for the lock, which should be used for the current platform. On Windows, this is an alias for
35
36
# :class:`WindowsFileLock`, on Unix for :class:`UnixFileLock` and otherwise for :class:`SoftFileLock`.
36
- FileLock : type [BaseFileLock ] = _FileLock
37
+ if TYPE_CHECKING :
38
+ FileLock = SoftFileLock
39
+ else :
40
+ FileLock = _FileLock
37
41
38
42
39
43
__all__ = [
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ description = run type check on code base
50
50
setenv =
51
51
{tty:MYPY_FORCE_COLOR = 1}
52
52
deps =
53
- mypy ==0.982
53
+ mypy ==0.991
54
54
commands =
55
55
mypy --strict src/filelock
56
56
mypy --strict tests
@@ -63,9 +63,9 @@ setenv =
63
63
COVERAGE_FILE = {toxworkdir}/.coverage
64
64
skip_install = true
65
65
deps =
66
- covdefaults>=2.2
66
+ covdefaults>=2.2.2
67
67
coverage>=6.5
68
- diff-cover>=7.0.1
68
+ diff-cover>=7.2
69
69
extras =
70
70
parallel_show_output = true
71
71
commands =
@@ -95,7 +95,7 @@ description = check that the long description is valid (need for PyPI)
95
95
skip_install = true
96
96
deps =
97
97
build[virtualenv]>=0.9
98
- twine>=4.0.1
98
+ twine>=4.0.2
99
99
extras =
100
100
commands =
101
101
pyproject-build -o {envtmpdir} --wheel --sdist .
You can’t perform that action at this time.
0 commit comments