-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
110 lines (92 loc) · 2.21 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
[build-system]
requires = ["poetry-core>=1.2.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry]
name = "wafflesbot"
version = "0.0.0"
description = "Tech recruiter auto reply bot using JMAP"
license = "GPL-3.0-or-later"
authors = ["Stephen Kent <smkent@smkent.net>"]
readme = "README.md"
repository = "https://github.com/smkent/waffles"
classifiers = [
"Development Status :: 3 - Alpha",
"Operating System :: OS Independent",
"Topic :: Communications :: Email :: Post-Office",
"Topic :: Office/Business :: Groupware",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
[tool.poetry.dependencies]
python = "^3.8"
replyowl = ">=0.1.0"
jmapc = ">=0.2.0"
[tool.poetry.dev-dependencies]
bandit = {extras = ["toml"], version = "*"}
black = "*"
cruft = "*"
flake8 = "*"
flake8-bugbear = "*"
flake8-pyproject = "*"
flake8-simplify = "*"
isort = "*"
mypy = "*"
pep8-naming = "*"
poethepoet = "*"
pre-commit = "*"
pytest = "*"
pytest-cov = "*"
pytest-github-actions-annotate-failures = "*"
pytest-sugar = "*"
freezegun = "*"
types-freezegun = "*"
[tool.poetry.scripts]
wafflesbot = "wafflesbot.main:main"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"
[tool.poe.tasks.lint]
cmd = "pre-commit run --all-files --show-diff-on-failure"
help = "Check all files"
[tool.poe.tasks.pytest]
cmd = "pytest"
help = "Run unit tests with pytest"
[tool.poe.tasks.test]
sequence = ["lint", "pytest"]
help = "Run all tests"
[tool.bandit]
skips = ["B101"] # assert_used
[tool.black]
line-length = 79
[tool.coverage.run]
source = ["wafflesbot"]
[tool.coverage.report]
fail_under = 0
show_missing = true
[tool.cruft]
skip = [".git"]
[tool.flake8]
exclude = "./.*"
[tool.isort]
atomic = true
profile = "black"
line_length = 79
[tool.mypy]
files = [ "tests", "wafflesbot" ]
mypy_path = "types"
disallow_untyped_defs = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
show_error_codes = true
warn_unused_ignores = true
[tool.pytest.ini_options]
addopts = """\
--cov \
--cov-append \
--cov-report term \
--cov-report xml:.pytest_coverage.xml \
--junitxml=.pytest_results.xml \
"""
# vim: ft=cfg