-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
112 lines (97 loc) · 2.82 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[build-system]
requires = ['hatchling']
build-backend = 'hatchling.build'
[tool.hatch.version]
path = 'mkpyp/version.py'
[tool.hatch.build.targets.sdist]
# limit which files are included in the sdist (.tar.gz) asset
include = [
'/README.md',
'/Makefile',
'/mkpyp',
'/tests',
'/requirements',
]
[project]
name = 'mkpyp'
description = 'make python projects idiomatically'
authors = [{name = 'Liam van der Viven', email = 'liam@vanderviven.com'}]
license = {file = 'LICENSE'}
readme = 'README.md'
classifiers = [
'Development Status :: 3 - Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet',
]
requires-python = '>=3.9'
# DEP: Define dependencies here. Also see setup.py to support GitHub metadata indexing.
dependencies = ['pydantic==1.10.4', 'fire==0.5.0', 'inquirerpy==0.3.4']
# OPTDEP: Define opt-in dependencies here. Also grep over the code base to see other places that might need change.
# Example: With
# optional-dependencies = { slug = ['python-dotenv>=0.10.4'] }
# Users can install mkpyp[slug] to also install python-dotenv
optional-dependencies = { }
dynamic = ['version']
[project.scripts]
# https://hatch.pypa.io/latest/config/metadata/#cli
mkpyp = "mkpyp.main:run"
[project.urls]
Homepage = 'https://github.com/liamvdv/mkpyp'
Documentation = 'https://github.com/liamvdv/mkpyp'
Source = 'https://github.com/liamvdv/mkpyp'
Changelog = 'https://github.com/liamvdv/mkpyp'
[tool.pytest.ini_options]
testpaths = 'tests'
filterwarnings = [
'error',
]
[tool.ruff]
line-length = 120
extend-select = ['Q', 'RUF100', 'C90']
flake8-quotes = {inline-quotes = 'double', multiline-quotes = 'double'}
mccabe = { max-complexity = 14 }
[tool.ruff.per-file-ignores]
[tool.black]
color = true
line-length = 120
target-version = ['py39'] # default
# skip-string-normalization = true
[tool.isort]
line_length = 120
known_first_party = 'mkpyp'
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
combine_as_imports = true
[tool.mypy]
python_version = '3.9'
show_error_codes = true
follow_imports = 'silent'
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
warn_unused_configs = true
disallow_subclassing_any = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
disallow_untyped_calls = true
# for strict mypy
disallow_untyped_defs = true
[tool.coverage.run]
source = ['mkpyp']
branch = true
# no context set
[tool.coverage.report]
precision = 2
exclude_lines = [
'pragma: no cover',
'raise NotImplementedError',
'raise NotImplemented',
]