generated from tugrulates/template-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
98 lines (87 loc) · 1.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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "notes-cli"
version = "0.0.1"
description = 'Manage markdown notes'
readme = "README.md"
requires-python = ">=3.9"
license = "MIT"
keywords = ["writing"]
authors = [{ name = "Tugrul Ates", email = "me@tugrulates.com" }]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"Programming Language :: Python",
"Environment :: Console",
"Topic :: Text Processing :: Markup :: Markdown",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"Jinja2==3.1.2",
"markdown-it-py[plugins]==2.2.0",
"pydantic==1.10.7",
"PyYAML==6.0",
"rich==13.3.5",
"typer[all]==0.9.0",
]
[project.optional-dependencies]
dev = [
"bandit[toml]==1.7.4",
"black==22.12.0",
"flake8-bugbear==22.12.6",
"flake8-builtins==2.1.0",
"flake8-comprehensions==3.12.0",
"flake8-docstrings==1.6.0",
"flake8-encodings[classes]==0.5.0.post1",
"flake8-return==1.2.0",
"flake8-simplify==0.19.3",
"flake8==6.0.0",
"isort==5.12.0",
"mypy==0.991",
"pep8-naming==0.13.3",
"pytest==7.2.0",
"types-PyYAML==6.0.12.9",
]
test = [
"pytest-cov==4.0.0",
"pytest==7.2.0",
]
[project.scripts]
notes = "notes.cli:app"
[project.urls]
Homepage = "https://github.com/tugrulates/notes-cli"
[tool.hatch.build]
artifacts = [
"notes/templates/**",
]
[tool.hatch.envs.dev]
features = ["dev"]
[tool.hatch.envs.test]
features = ["test"]
[tool.hatch.envs.default.scripts]
lint = [
"flake8 .",
"mypy . --check-untyped-defs",
"bandit -qr -c pyproject.toml .",
"black . --check --diff",
"isort . --check-only --diff",
]
fmt = [
"isort .",
"black .",
"check",
]
test = [
"pytest -v",
]
cov = [
"pytest -v --cov notes --cov-report xml --cov-fail-under=80",
]
[tool.bandit]
exclude_dirs = ["tests"]
[tool.mypy]
strict = true
[tool.isort]
profile = "black"