-
Notifications
You must be signed in to change notification settings - Fork 14
/
pyproject.toml
129 lines (113 loc) · 2.86 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
120
121
122
123
124
125
126
127
128
129
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "pyIsEmail"
dynamic = ["version"]
description = "Simple, robust email validation"
readme = "README.rst"
license = "MIT"
authors = [
{ name = "Michael Herold", email = "opensource@michaeljherold.com" },
]
keywords = [
"email",
"validation",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: 3.10",
"Topic :: Communications :: Email",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"dnspython >= 2.0.0",
]
requires-python = ">=3.7"
[project.urls]
Homepage = "https://github.com/michaelherold/pyIsEmail"
Source = "https://github.com/michaelherold/pyIsEmail"
Tracker = "https://github.com/michaelherold/pyIsEmail/issues"
[tool.bandit]
recursive = true
exclude_dirs = ["tests"]
skips = ["B105"]
[tool.black]
include = '\.pyi?$'
skip-string-normalization = true
target-version = ["py37"]
[tool.coverage.report]
omit = ["*test*"]
[tool.coverage.run]
source = ["src/pyisemail"]
[tool.isort]
default_section = "THIRDPARTY"
force_grid_wrap = 0
include_trailing_comma = true
known_first_party = ["hatch", "hatchling"]
multi_line_output = 3
use_parentheses = true
[tool.hatch.version]
path = "src/pyisemail/__about__.py"
[tool.hatch.build.targets.sdist]
include = [
"/CHANGELOG.rst",
"/CONTRIBUTING.rst",
"/src/pyisemail",
]
[tool.hatch.build.targets.wheel]
packages = ["src/pyisemail"]
[tool.hatch.envs.default]
dependencies = [
"coverage[toml]>=6.2",
"pytest",
"pytest-cov",
"wheel-inspect",
]
[tool.hatch.envs.default.scripts]
cov = "python -m pytest --cov-report=html:coverage --cov-config=pyproject.toml --cov=src/pyisemail --cov=tests {args}"
test = "cov --no-cov {args}"
[tool.hatch.envs.ci]
dependencies = [
"coverage[toml]>=6.2",
"coveralls",
"pytest",
"pytest-cov",
]
[tool.hatch.envs.lint]
detached = true
dependencies = [
"bandit[toml]==1.7.4",
"black==22.10.0",
"isort==5.10.1",
]
[tool.hatch.envs.lint.scripts]
all = [
"fmt",
"security",
]
fmt = [
"black --quiet {args:.}",
"isort --quiet {args:.}",
"style",
]
lint = [
"security",
"style",
]
security = "bandit --configfile pyproject.toml --quiet --recursive {args:.}"
style = [
"black --quiet --check --diff {args:.}",
"isort --quiet --check-only --diff {args:.}"
]
[[tool.hatch.envs.test.matrix]]
python = ["37", "38", "39", "310"]