Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
KRunchPL committed Oct 28, 2024
0 parents commit f3a9d23
Show file tree
Hide file tree
Showing 27 changed files with 2,030 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .config/.coveragerc
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
16 changes: 16 additions & 0 deletions .config/.editorconfig
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
13 changes: 13 additions & 0 deletions .config/.flake8
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
48 changes: 48 additions & 0 deletions .config/mypy.ini
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
13 changes: 13 additions & 0 deletions .config/pytest.ini
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
Loading

0 comments on commit f3a9d23

Please sign in to comment.