-
Notifications
You must be signed in to change notification settings - Fork 17
/
pyproject.toml
119 lines (101 loc) · 2.51 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
117
118
119
[build-system]
requires = ["poetry-core>=1.2.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"
[tool.poetry]
name = "safeway-coupons"
version = "0.0.0"
description = "Automatic coupon clipper for Safeway's online \"Safeway for U\" coupons"
license = "GPL-3.0-or-later"
authors = ["Stephen Kent <smkent@smkent.net>"]
readme = "README.md"
repository = "https://github.com/smkent/safeway-coupons"
classifiers = [
"Development Status :: 4 - Beta",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
[tool.poetry.dependencies]
python = "^3.8"
dataclasses-json = "*"
requests = "*"
selenium = "^4.10"
webdriver-manager = "^3.8.6"
undetected-chromedriver = "^3.5.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 = "*"
types-requests = "*"
pytest-mock = "*"
responses = "*"
[tool.poetry.scripts]
safeway-coupons = "safeway_coupons.app:main"
safeway-coupons-init-chromedriver = "safeway_coupons.chrome_driver:init"
[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
"B113", # request_without_timeout
"B311", # blacklist_random
"B404", # blacklist_subprocess
"B603", # subprocess_without_shell_equals_true
]
[tool.black]
line-length = 79
[tool.coverage.run]
source = ["safeway_coupons"]
[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", "safeway_coupons" ]
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