This repository has been archived by the owner on Aug 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
116 lines (101 loc) · 2.5 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]
[tool]
[tool.black]
line-length = 120
[tool.coverage]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
show_missing = true
skip_covered = true
skip_empty = true
[tool.coverage.run]
branch = true
concurrency = ["multiprocessing"]
parallel = true
source = ["src"]
[tool.flake8]
docstring_style = "google"
exclude = [".git", ".venv", "__pycache__", "build", "dist", "setup.py"]
ignore = "B506 D100 D104 S101"
max-complexity = 10
max_line_length = 120
per-file-ignores = "tests/*.py: S101 DAR101"
strictness = "full"
[tool.isort]
atomic = true
force_single_line = true
include_trailing_comma = true
line_length = 120
profile = "black"
[tool.mypy]
exclude = ".venv"
follow_imports = "normal"
ignore_missing_imports = true
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
strict = true
[tool.poetry]
authors = ["Tory Clasen <[email protected]>"]
description = "Dramatiq-Mongodb Broker and Results Backend for Dramatiq"
include = ["CHANGELOG.md"]
license = "MIT"
name = "dramatiq-mongodb"
readme = "README.md"
repository = "https://github.com/obscuritylabs/dramatiq-mongodb"
version = "0.8.3"
[tool.poetry.dependencies]
dramatiq = "^1.14.2"
pymongo = ">=4.1,<5"
python = ">=3.7,<4"
[tool.poetry.group.dev.dependencies]
autoflake = "^1.4"
black = "^22.3.0"
commitizen = "^2.23.0"
darglint = "^1.8.1"
dlint = "^0.12.0"
dramatiq = {extras = ["watch"], version = "^1.13.0"}
flake8-bugbear = "^22.3.23"
flake8-docstrings = "^1.6.0"
flake8-pep518 = "^0.1.0"
isort = "^5.10.1"
mypy = "^1.2.0"
pre-commit = "^2.17.0"
pytest = "^7.1.1"
pytest-clarity = "^1.0.1"
pytest-cov = "^3.0.0"
pytest-sugar = "^0.9.4"
pytest-xdist = "^3.1.0"
python-semantic-release = "^7.27.0"
safety = "^2.3.5"
vulture = "^2.3"
[tool.pytest]
[tool.pytest.ini_options]
addopts = "--no-header -p no:warnings -ra -q --cov=src/"
norecursedirs = [".*", "*.egg", "build", "dist"]
testpaths = ["tests/"]
[tool.semantic_release]
branch = "main"
build_command = "poetry build -n"
commit_subject = "bump: release {version}"
major_on_zero = false
pre_commit_command = "poetry run pre-commit run --all-files"
upload_to_PyPI = true
upload_to_release = false
version_variable = [
"src/dramatiq_mongodb/__init__.py:__version__",
"pyproject.toml:version",
]
[tool.vulture]
min_confidence = 80
paths = ["src", "tests"]
sort_by_size = true
verbose = true