-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reformatted and code changes for the mypy type checker.
- Loading branch information
Showing
8 changed files
with
113 additions
and
105 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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# This file contains project information. | ||
# It also contains settings for linters and code checkers isort, black and mypy. | ||
# Note that these settings are not respected with pre-commit run --all-files | ||
# In that case add configurations to the .pre-commit-config.yaml file. | ||
|
||
[project] | ||
name = "serve-load-testing" | ||
version = "1.0.0" | ||
description = "Load testing of the SciLifeLab Serve platform." | ||
requires-python = "=3.8" | ||
keywords = ["load testing", "locust", "python"] | ||
|
||
[tool.isort] | ||
profile = 'black' | ||
|
||
[tool.black] | ||
line-length = 120 | ||
target-version = ['py38'] | ||
include = '\.pyi?$' | ||
extend-exclude = ''' | ||
/( | ||
\.git | ||
| \.mypy_cache | ||
| \.venv | ||
| venv | ||
| migrations | ||
)/ | ||
''' | ||
|
||
[tool.mypy] | ||
strict = false | ||
python_version = "3.8" | ||
ignore_missing_imports = true | ||
warn_return_any = true | ||
exclude = ["venv", ".venv", "examples"] | ||
|
||
[[tool.mypy.overrides]] | ||
module = "*.migrations.*" | ||
ignore_errors = true | ||
|
||
[[tool.mypy.overrides]] | ||
module = [ | ||
"flatten_json.*", | ||
"guardian.*", | ||
"tagulous.*", | ||
"dash.*", | ||
"markdown.*", | ||
"pytz.*", | ||
"requests.*", | ||
"setuptools.*", | ||
"yaml.*", | ||
] | ||
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
Oops, something went wrong.