add lint & test tools

This commit is contained in:
ducklet 2023-02-08 22:42:06 +01:00
parent 06c323ab91
commit 1b4fad929c
3 changed files with 577 additions and 48 deletions

View file

@ -6,11 +6,45 @@ authors = ["ducklet <ducklet@noreply.code.dumpr.org>"]
[tool.poetry.dependencies]
python = "^3.8"
SQLAlchemy = "^1.4.35"
SQLAlchemy = {extras = ["mypy"], version = "^1.4.45"}
wcwidth = "^0.2.5"
[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
interrogate = "*"
black = "*"
isort = "*"
autoflake = "*"
mypy = "*"
[tool.poetry.group.test.dependencies]
pytest = "^7.2.0"
pytest-cov = "^4.0.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.interrogate]
ignore-init-module = true
ignore-module = true
ignore-magic = true
fail-under = 80
exclude = ["tests"]
[tool.mypy]
check_untyped_defs = true
disallow_any_unimported = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
plugins = "sqlalchemy.ext.mypy.plugin"
show_error_codes = true
strict_equality = true
warn_return_any = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = [
"wcwidth",
]
ignore_missing_imports = true