-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
64 lines (59 loc) · 1.97 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
[tool.poetry]
name = "awesome-exception"
version = "1.1.0"
license = "Apache-2.0"
readme = "README.md"
description = "common http exception that support custom status code and message"
authors = ["Schwannden Kuo <schwannden@mobagel.com>"]
homepage = "https://github.com/MoBagel/awesome-exception"
classifiers = [
"Development Status :: 1 - Planning",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Internet",
"Topic :: Internet :: WWW/HTTP",
]
include = [
"README.md",
"LICENSE.txt",
]
[tool.poetry.dependencies]
python = "~=3.8"
pydantic = {extras = ["email"], version = "^1.8.2"}
[tool.poetry.dev-dependencies]
pytest = "^6.2"
pytest-cov = "^3.0.0"
black = "~=22.6.0"
flake8 = "^4.0.0"
isort = "^5.10.1"
mypy = "^0.910"
poethepoet = "^0.11.0"
autoflake = "^1.4"
coveralls = "^3.3.1"
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poe.env]
ROOT = 'awesome_exception'
[tool.poe.tasks]
mypy-install-type = 'mypy $ROOT --ignore-missing-imports --install-types --non-interactive'
mypy = 'mypy $ROOT --ignore-missing-imports'
autoflake-check = 'autoflake $ROOT -r'
autoflake = 'autoflake --in-place $ROOT -r'
isort-check = 'isort $ROOT --diff'
isort = 'isort $ROOT'
black-check = 'black $ROOT --diff'
black = 'black $ROOT'
format-check = ['autoflake-check', 'isort-check', 'black-check']
format = ['autoflake', 'isort', 'black']
lint = ['mypy-install-type', 'mypy', 'black-check']
test = 'pytest --cov=$ROOT --cov-report term-missing'