-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
62 lines (52 loc) · 1.94 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
[tool.poetry]
name = "python-stopwatch2"
version = "1.1.2"
description = "A simple library to measure code performance."
authors = [
"Rafael <contact.devrma@gmail.com>",
"Jonghwan Hyeon <hyeon0145@gmail.com>"
]
maintainers = ["Rafael <contact.devrma@gmail.com>"]
license = "MIT"
readme = "README.md"
homepage = "https://stopwatch2.vercel.app/"
repository = "https://github.com/devRMA/python-stopwatch2"
documentation = "https://stopwatch2.vercel.app/guide/getting-started.html"
keywords = ["stopwatch", "timer", "time", "profile"]
packages = [{ include = "stopwatch" }]
[tool.poetry.dependencies]
python = "^3.7"
colorama = "^0.4.4"
[tool.poetry.dev-dependencies]
coveralls = "^3.3.1"
flake8 = "^4.0.1"
isort = "^5.10.1"
mypy = "^0.931"
pytest = "^7.0.1"
pytest-cov = "^3.0.0"
pytest-sugar = "^0.9.4"
taskipy = "^1.10.1"
toml = "^0.10.2"
types-colorama = "^0.4.8"
yapf = "^0.32.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
profile = "black"
py_version = "37"
[tool.mypy]
namespace_packages = "True"
[tool.yapf]
based_on_style = "facebook"
indent_width = 4
[tool.taskipy.tasks]
test = { cmd = "task pytest && task coverage", help = "runs all tests and generate the coverage report" }
lint = { cmd = "task mypy && task flake8", help = "Run mypy and flake8 on the project" }
format = { cmd = "task yapf && task isort", help = "Run yapf and isort on the project" }
pytest = { cmd = "python -m coverage run -m pytest", help = "run pytest and generate coverage report" }
coverage = { cmd = "python -m coverage html", help = "generate html with the coverage report" }
mypy = { cmd = "python -m mypy --pretty stopwatch", help = "Run mypy on the project" }
flake8 = { cmd = "python -m flake8 --benchmark stopwatch", help = "Run flake8 on the project" }
yapf = { cmd = "python -m yapf -r -i -vv stopwatch", help = "Run yapf on the project" }
isort = { cmd = "python -m isort stopwatch", help = "Run isort on the project" }