-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
71 lines (60 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
[tool.poetry]
name = "configurave"
version = "0.1.2"
description = "A one-size-fits-all configuration scheme manager"
authors = ["Bast <bast@fastmail.com>", "aru <genericusername414@gmail.com>"]
readme = "README.md"
repository = "https://github.com/discord-modmail/configurave"
homepage = "https://github.com/discord-modmail/configurave"
[build-system]
requires = ["poetry-core~=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.dependencies]
python = "^3.7"
atoml = "^1.0.3"
python-dotenv = {version = "^0.19.0", optional = true}
[tool.poetry.extras]
dotenv = ["python-dotenv"]
[tool.poetry.dev-dependencies]
black = "^21.7b0"
coverage = { extras = ["toml"], version = "^5.5" }
flake8 = "~=3.8"
flake8-annotations = "~=2.3"
flake8-bandit = "^2.1.2"
flake8-bugbear = "~=20.1"
flake8-docstrings = "~=1.5"
flake8-isort = "^4.0.0"
flake8-string-format = "~=0.3"
flake8-tidy-imports = "~=4.1"
flake8-todo = "~=0.7"
isort = "^5.9.2"
pep8-naming = "~=0.11"
pre-commit = "~=2.1"
pytest = "^6.2.4"
pytest-asyncio = "^0.15.1"
pytest-cov = "^2.12.1"
pytest-dependency = "^0.5.1"
pytest-sugar = "^0.9.4"
pytest-xdist = { version = "^2.3.0", extras = ["psutil"] }
taskipy = "^1.6.0"
[tool.taskipy.tasks]
black = { cmd = "black --check .", help = "dry run of black" }
cov-server = { cmd = "coverage html", help = "Start an http.server for viewing coverage data."}
post_cov-server = "python -m http.server 8012 --bind 127.0.0.1 --directory htmlcov"
flake8 = { cmd = "python -m flake8", help = "Lints code with flake8" }
lint = { cmd = "pre-commit run --all-files", help = "Checks all files for CI errors" }
precommit = { cmd = "pre-commit install --install-hooks", help = "Installs the precommit hook" }
report = { cmd = "coverage report", help = "Show coverage report from previously run tests." }
test = { cmd = "pytest -n auto --dist loadfile --cov-report= --cov= ", help = "Runs tests and save results to a coverage report" }
test-nocov = { cmd = "pytest --no-cov", help = "Runs tests without creating a coverage report" }
[tool.coverage.run]
branch = true
source = ["configurave"]
[tool.pytest.ini_options]
addopts = "--cov -ra"
minversion = "6.0"
testpaths = ["tests"]
[tool.black]
line-length = 120
target-version = ['py37']
include = '\.pyi?$'