forked from murnat98/python-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
37 lines (30 loc) · 829 Bytes
/
pyproject.toml
File metadata and controls
37 lines (30 loc) · 829 Bytes
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
[tool.poetry]
name = "python-boilerplate"
version = "0.1.0"
description = "Python boilerplate with autoformatting, linting"
authors = ["murnat98 <murnat98@yandex.ru>"]
[tool.poetry.dependencies]
python = "^3.9"
[tool.poetry.dev-dependencies]
isort = "^5.12.0"
flake8 = "^ 6.1.0 "
black = "^23.7.0"
pre-commit = "^3.3.3"
poethepoet = "^0.22.0"
commitizen = "^3.6.0"
[tool.black]
line-length = 120
skip_string_normalization = true
[tool.isort]
profile = "black"
[tool.poe.tasks]
git-hooks = "pre-commit install -t pre-commit -t commit-msg -f"
prevent-master = "bash scripts/prevent_master.sh"
lint = "flake8"
commit = "cz commit"
test = "python -m unittest discover tests/"
[tool.poe.tasks.format]
shell = "isort **/*.py && black ."
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"