2023-04-15 16:55:56 +02:00
|
|
|
[project]
|
|
|
|
|
requires-python = ">=3.8"
|
|
|
|
|
|
2022-08-14 20:41:58 +02:00
|
|
|
[tool.poetry]
|
|
|
|
|
name = "metadex"
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
description = ""
|
|
|
|
|
authors = ["ducklet <ducklet@noreply.code.dumpr.org>"]
|
|
|
|
|
|
|
|
|
|
[tool.poetry.dependencies]
|
|
|
|
|
python = "^3.8"
|
2023-02-10 20:46:58 +01:00
|
|
|
SQLAlchemy = {version = "^2.0"}
|
2022-12-22 00:46:29 +01:00
|
|
|
wcwidth = "^0.2.5"
|
2023-02-08 23:04:06 +01:00
|
|
|
typing-extensions = "*"
|
2022-08-14 20:41:58 +02:00
|
|
|
|
2023-02-08 22:42:06 +01:00
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
|
|
|
interrogate = "*"
|
|
|
|
|
black = "*"
|
|
|
|
|
isort = "*"
|
|
|
|
|
autoflake = "*"
|
|
|
|
|
mypy = "*"
|
2023-04-15 16:55:56 +02:00
|
|
|
ruff = "*"
|
2023-02-08 22:42:06 +01:00
|
|
|
|
|
|
|
|
[tool.poetry.group.test.dependencies]
|
|
|
|
|
pytest = "^7.2.0"
|
|
|
|
|
pytest-cov = "^4.0.0"
|
2022-08-14 20:41:58 +02:00
|
|
|
|
|
|
|
|
[build-system]
|
|
|
|
|
requires = ["poetry-core>=1.0.0"]
|
|
|
|
|
build-backend = "poetry.core.masonry.api"
|
2023-02-08 22:42:06 +01:00
|
|
|
|
|
|
|
|
[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
|
2023-02-08 23:01:45 +01:00
|
|
|
|
|
|
|
|
[tool.isort]
|
|
|
|
|
profile = "black"
|
|
|
|
|
|
|
|
|
|
[tool.autoflake]
|
|
|
|
|
remove-duplicate-keys = true
|
|
|
|
|
remove-unused-variables = true
|
|
|
|
|
remove-all-unused-imports = true
|
|
|
|
|
ignore-init-module-imports = true
|
|
|
|
|
ignore-pass-after-docstring = true
|
2023-04-15 16:55:56 +02:00
|
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
|
# See https://beta.ruff.rs/docs/rules/
|
|
|
|
|
ignore = [
|
|
|
|
|
"E501", # line length, handled by Black
|
|
|
|
|
]
|
|
|
|
|
select = [
|
|
|
|
|
"E", # pycodestyle errors
|
|
|
|
|
"W", # pycodestyle warnings
|
|
|
|
|
"I", # isort
|
|
|
|
|
"F", # Pyflakes
|
|
|
|
|
"B", # flake8-bugbear
|
|
|
|
|
"C4", # flake8-comprehensions checks.
|
|
|
|
|
]
|