-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
184 lines (165 loc) · 3.68 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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
[tool.poetry]
name = "lecture"
version = "0.30.1"
description = "Artificial Intelligence | Lecture Notes"
authors = ["Young Joon Lee <entelecheia@hotmail.com>"]
license = "CC-BY-4.0"
homepage = "https://lecture.jeju.ai"
repository = "https://github.com/entelecheia/lecture"
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.9,<3.13"
ipykernel = "^6.29.4"
requests = "^2.31.0"
matplotlib = "<=3.8"
numpy = "^2.0.0"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
python-semantic-release = "^9.0.0"
isort = "^5.12.0"
black = "^24.0.0"
flake8 = "^6.0.0"
mypy = "^1.0.0"
flake8-pyproject = "^1.2.2"
pytest = "^7.2.1"
pytest-cov = "^4.0.0"
cryptography = "^42.0.4"
[tool.poe]
include = [".tasks.toml", ".tasks-extra.toml"]
[tool.black]
# 'extend-exclude' excludes files or directories in addition to the defaults
extend-exclude = '''
# A regex preceded with ^/ will apply only to files and directories
# in the root of the project.
(
_version.py
| .refs
| tests
| docs
| book
| _build
| node_modules
)
'''
[tool.isort]
profile = "black"
skip = [
'_version.py',
'node_modules',
'_build',
'docs',
'tests',
'venv',
'.copier-template',
'.refs',
]
[tool.flake8]
ignore = ['F401', 'E501', 'W503']
exclude = [
"node_modules",
"_build",
"docs",
"tests",
"venv",
".copier-template",
".refs",
]
per-file-ignores = ['__init__.py:F401', '_version.py:W292']
[tool.mypy]
namespace_packages = true
exclude = [
"node_modules",
"build",
"_build",
"dist",
"docs",
"tests",
"venv",
".copier-template",
".refs",
]
# 3rd party import
ignore_missing_imports = true
# dynamic typing
disallow_any_unimported = true
disallow_any_expr = false
disallow_any_decorated = false
disallow_any_explicit = true
disallow_any_generics = false
disallow_subclassing_any = true
# platform
python_version = "3.8"
# untyped
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
# None and Optional
no_implicit_optional = true
# Warnings
warn_return_any = false
warn_unreachable = true
# Misc
pretty = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-p no:cacheprovider" # deactivating pytest caching.
[tool.coverage.report]
exclude_lines = ['if __name__ == "__main__":']
[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "v$version"
[tool.semantic_release]
# General settings
tag_format = "v{version}"
commit_parser = "angular"
major_on_zero = true
allow_zero_version = true
tag_commit = true
no_git_verify = false
version_source = "tag"
commit_version_number = true
commit_message = "{version}\n\nAutomatically generated by python-semantic-release"
# Version variables
version_toml = ["pyproject.toml:tool.poetry.version"]
# Remote settings
[tool.semantic_release.remote]
name = "origin"
type = "github"
ignore_token_for_push = false
insecure = false
# Changelog settings
[tool.semantic_release.changelog]
insertion_flag = "<!--next-version-placeholder-->"
mode = "update"
# Commit parser options
[tool.semantic_release.commit_parser_options]
allowed_tags = [
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"style",
"refactor",
"test",
]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
default_bump_level = 0
# Branch settings
[tool.semantic_release.branches.main]
match = "(main|master|release)"
prerelease_token = "rc"
prerelease = false
# Commit author settings
[tool.semantic_release.commit_author]
env = "GIT_COMMIT_AUTHOR"
default = "semantic-release <semantic-release>"
# Publish settings
[tool.semantic_release.publish]
dist_glob_patterns = ["dist/*"]
upload_to_vcs_release = false