-
-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix tests and uprev test dependencies (#288)
* fix tests and uprev test dependencies * fixing build * isort colours * uprev test deps * drop python 3.6 support * remove broken test * trying to fix tests 💩 * uprev dirty-equals * revent codecov breaking builds * uprev dirty-equals * fix cli tests * comments and reinstate test_redis_sentinel_failure test * fix for 3.7, formatting
- Loading branch information
1 parent
e3979ce
commit 59ba542
Showing
19 changed files
with
165 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
coverage: | ||
precision: 2 | ||
range: [95, 100] | ||
status: | ||
patch: false | ||
project: false | ||
|
||
comment: | ||
layout: 'header, diff, flags, files, footer' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
__all__ = ['VERSION'] | ||
|
||
VERSION = 'dev' | ||
# version is set automatically in CI before release, | ||
# see https://gist.github.com/samuelcolvin/da2f521da5d2195fbfd65da3b8f58589 | ||
VERSION = '0.0.dev0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
[tool.pytest.ini_options] | ||
testpaths = 'tests' | ||
filterwarnings = ['error', 'ignore::DeprecationWarning:aioredis'] | ||
asyncio_mode = 'auto' | ||
timeout = 10 | ||
|
||
[tool.coverage.run] | ||
source = ['src'] | ||
branch = true | ||
|
||
[tool.coverage.report] | ||
precision = 2 | ||
exclude_lines = [ | ||
'pragma: no cover', | ||
'raise NotImplementedError', | ||
'raise NotImplemented', | ||
'if TYPE_CHECKING:', | ||
'@overload', | ||
] | ||
|
||
[tool.black] | ||
color = true | ||
line-length = 120 | ||
target-version = ['py39'] | ||
skip-string-normalization = true | ||
|
||
[tool.isort] | ||
line_length = 120 | ||
known_third_party = 'foxglove' | ||
multi_line_output = 3 | ||
include_trailing_comma = true | ||
force_grid_wrap = 0 | ||
combine_as_imports = true | ||
color_output = true | ||
|
||
[tool.mypy] | ||
follow_imports = 'silent' | ||
strict_optional = true | ||
warn_redundant_casts = true | ||
warn_unused_ignores = true | ||
disallow_any_generics = true | ||
check_untyped_defs = true | ||
no_implicit_reexport = true | ||
warn_unused_configs = true | ||
disallow_subclassing_any = true | ||
disallow_incomplete_defs = true | ||
disallow_untyped_decorators = true | ||
disallow_untyped_calls = true | ||
|
||
# for strict mypy: (this is the tricky one :-)) | ||
disallow_untyped_defs = true | ||
|
||
# remaining arguments from `mypy --strict` which cause errors | ||
#no_implicit_optional = true | ||
#warn_return_any = true | ||
|
||
[[tool.mypy.overrides]] | ||
module = ['aioredis', 'watchgod'] | ||
ignore_missing_imports = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
black==19.10b0 | ||
flake8==3.7.9 | ||
flake8-quotes==3 | ||
isort==5.8.0 | ||
mypy==0.812 | ||
pycodestyle==2.5.0 | ||
pyflakes==2.1.1 | ||
twine==3.1.1 | ||
black==21.12b0 | ||
flake8==4.0.1 | ||
flake8-quotes==3.3.1 | ||
isort[colors]==5.10.1 | ||
mypy==0.931 | ||
pycodestyle==2.8.0 | ||
pyflakes==2.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
coverage==5.1 | ||
msgpack==0.6.1 | ||
pytest==5.3.5 | ||
pytest-aiohttp==0.3.0 | ||
pytest-cov==2.8.1 | ||
pytest-mock==3 | ||
pytest-sugar==0.9.2 | ||
pytest-timeout==1.3.3 | ||
pytest-toolbox==0.4 | ||
twine==3.1.1 | ||
coverage==6.3 | ||
dirty-equals==0.1 | ||
msgpack==1.0.3 | ||
pytest==6.2.5 | ||
pytest-asyncio==0.17.2 | ||
pytest-cov==3.0.0 | ||
pytest-mock==3.7.0 | ||
pytest-sugar==0.9.4 | ||
pytest-timeout==2.1.0 | ||
twine==3.7.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.