-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
110 lines (98 loc) · 2.69 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
[tool.poetry]
name = "notifiers_wecom_provider"
version = "0.0.0"
description = "Python API for Photoshop."
homepage = "https://github.com/loonghao/notifiers_wecom_provider"
repository = "https://github.com/loonghao/notifiers_wecom_provider"
documentation = "https://github.com/loonghao/notifiers_wecom_provider"
keywords = ["notifiers", "python"]
authors = ["longhao <[email protected]>"]
license = "MIT"
readme = "README.md"
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
packages = [
{ include = "notifiers_wecom_provider" },
]
[tool.poetry.build]
generate-setup-file = false
[tool.poetry.dependencies]
python = ">=3.7,<4.0"
notifiers = "^1.3.3"
[project.scripts]
wwecom = "notifiers_wecom_provider.core:WeCom"
[tool.poetry.group.dev.dependencies]
commitizen = "^2.17.8"
pre-commit = "^2.13.0"
codecov = "^2.1.11"
pylint = "^2.8.2"
isort = "^5.8.0"
pytest = "^7.0.0"
flake8 = "^4.0.0"
mypy = "^1.0"
coverage = "^7.0.0"
mkdocs = "^1.2.2"
black = "^23.0.0"
mkdocs-material = "^8.2.5"
pytest-cov = "^4.0.0"
mkdocs-gen-files = "^0.5.0"
[tool.commitizen]
name = "cz_conventional_commits"
version = "0.0.0"
tag_format = "v$version"
version_files = [
"pyproject.toml:version",
"notifiers_wecom_provider/__version__.py"
]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target_version = ['py37']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
)
'''
[tool.isort]
profile = "black"
atomic = true
include_trailing_comma = true
lines_after_imports = 2
lines_between_types = 1
use_parentheses = true
src_paths = ["notifiers_wecom_provider", "test"]
filter_files = true
known_first_party = "notifiers_wecom_provider"
# Enforce import section headers.
import_heading_future = "Import future modules"
import_heading_stdlib = "Import built-in modules"
import_heading_thirdparty = "Import third-party modules"
import_heading_firstparty = "Import local modules"
force_sort_within_sections = true
force_single_line = true
# All project unrelated unknown imports belong to third-party.
default_section = "THIRDPARTY"
skip_glob = "*/docs/conf.py"