-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
160 lines (140 loc) Β· 4.11 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
[tool.poetry]
name = "poetry-docker-plugin"
version = "0.5.3"
description = "A poetry plugin for configure and build docker images."
authors = ["Evangelos Michelioudakis <[email protected]>"]
license = "MIT"
readme = "README.md"
keywords = ["poetry", "packaging", "docker"]
repository = "https://github.com/vagmcs/poetry-docker-plugin"
documentation = "https://github.com/vagmcs/poetry-docker-plugin"
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Version Control :: Git",
"Topic :: System :: Archiving :: Packaging",
"Topic :: System :: Installation/Setup",
"Topic :: System :: Software Distribution",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: MIT License"
]
packages = [
{ include = "poetry_docker_plugin" }
]
[tool.poetry.dependencies]
python = "^3.8"
poetry = "^1.2.0"
gitpython = "^3.1.31"
[tool.poetry.group.dev.dependencies]
black = "^23.3.0"
mypy = "^1.11.1"
pytest = "^8.3.2"
ruff = "^0.6.4"
isort = "^5.10.1"
commitizen = "^3.1.1"
mkdocs = "^1.4.2"
# enforce types for safety using mypy
[tool.mypy]
python_version = "3.8"
exclude = ['.venv', 'dist']
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
# warnings
warn_unused_configs = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_ignores = true
warn_no_return = true
# import discovery
ignore_missing_imports = true
# disallow dynamic typing
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
check_untyped_defs = true
# none and optional
no_implicit_optional = true
# strictness flags
strict_equality = true
implicit_reexport = true
# code style using black and isort
[tool.black]
line_length = 120
target_version = ["py38"]
color = true
[tool.isort]
profile = "black"
line_length = 120
multi_line_output = 3
use_parentheses = true
include_trailing_comma = true
color_output = true
sections = ["FUTURE", "TYPING", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
known_typing = ["typing", "types", "typing_extensions", "mypy", "mypy_extensions"]
import_heading_future="Futures"
import_heading_stdlib="Standard Library"
import_heading_typing="Types"
import_heading_thirdparty="Dependencies"
import_heading_firstparty="Project"
[tool.ruff]
line-length = 120
target-version = "py38"
# Exclude a variety of commonly ignored directories
exclude = [
".generated",
".hypothesis",
".eggs",
".git",
".mypy_cache",
".nox",
".ruff_cache",
".tox",
".venv",
"__pypackages__",
".pytest_cache",
"build",
"dist",
"venv",
"*.pyi"
]
[tool.poetry.plugins."poetry.application.plugin"]
docker = "poetry_docker_plugin.plugin:DockerPlugin"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.commitizen]
name = "cz_customize"
version = "0.2.0"
tag_format = "v$version"
[tool.commitizen.customize]
change_type_order = ["BREAKING CHANGE", "feat", "build", "fix", "perf", "refactor", "style"]
commit_parser = "^(?P<change_type>feature|feat|bug fix|bug|fix|perf|build|ci|docs|refactor):\\s(?P<message>.*)?"
changelog_pattern = "^(feature|feat|bugfix|bug|fix|perf|build|ci|docs|refactor|perf)?(!)?"
[tool.commitizen.customize.change_type_map]
"feat" = "Features"
"feature" = "Features"
"bug fix" = "Fixes"
"bugfix" = "Fixes"
"bug" = "Fixes"
"fix" = "Fixes"
"ci" = "CI"
"build" = "Build"
"docs" = "Documentation"
"refactor" = "Refactor"
"perf" = "Performance"
"style" = "Code style"