-
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.
- Loading branch information
0 parents
commit f3a9d23
Showing
27 changed files
with
2,030 additions
and
0 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,5 @@ | ||
[report] | ||
exclude_lines = | ||
pragma: no cover | ||
if TYPE_CHECKING: | ||
return NotImplemented |
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,16 @@ | ||
root = true | ||
|
||
[*] | ||
spelling_language = "en-US" | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.{json,yaml,yml}] | ||
indent_size = 2 | ||
|
||
[*.{md}] | ||
indent_size = 4 |
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,13 @@ | ||
[flake8] | ||
count = True | ||
extend-exclude = .*/ | ||
|
||
### Rules choice | ||
# DAR: We use flake8 just to run darglint, ruff takes care about the rest | ||
select=DAR | ||
# DAR401: The docstring is missing an exception raised | ||
ignore=DAR401 | ||
|
||
### Darglint options | ||
docstring_style = sphinx | ||
strictness = full |
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,48 @@ | ||
# Configuration created for mypy==1.13.0 | ||
|
||
[mypy] | ||
files = . | ||
# Default values | ||
force_uppercase_builtins = False | ||
force_union_syntax = False | ||
disallow_any_unimported = False | ||
disallow_any_expr = False | ||
disallow_any_decorated = False | ||
disallow_any_explicit = False | ||
implicit_optional = False | ||
strict_optional = True | ||
warn_no_return = True | ||
ignore_errors = False | ||
allow_untyped_globals = False | ||
allow_redefinition = False | ||
local_partial_types = False | ||
# Strict overwrites | ||
strict = True | ||
warn_unused_configs = True | ||
disallow_any_generics = True | ||
disallow_subclassing_any = True | ||
disallow_untyped_calls = True | ||
disallow_untyped_defs = True | ||
disallow_incomplete_defs = True | ||
check_untyped_defs = True | ||
disallow_untyped_decorators = True | ||
warn_redundant_casts = True | ||
warn_unused_ignores = True | ||
warn_return_any = True | ||
implicit_reexport = False | ||
strict_equality = True | ||
extra_checks = True | ||
# Additional overwrites | ||
warn_unreachable = True | ||
strict_concatenate = True | ||
warn_incomplete_stub = True | ||
|
||
# This section should only define values that are different than in global section | ||
[mypy-tests.*] | ||
disallow_untyped_defs = False | ||
disallow_incomplete_defs = False | ||
|
||
# Conftests should be checked in the same manner as production code, so they revert `tests.*` overwrites | ||
[mypy-tests.*.conftest] | ||
disallow_untyped_defs = True | ||
disallow_incomplete_defs = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[pytest] | ||
testpaths = | ||
tests | ||
|
||
addopts = | ||
--cov my_project | ||
--cov-report html:coverage-report | ||
--cov-report term:skip-covered | ||
--cov-fail-under=99 | ||
--no-cov-on-fail | ||
-Werror | ||
-Wignore::ImportWarning | ||
--strict-markers |
Oops, something went wrong.