-
Notifications
You must be signed in to change notification settings - Fork 93
/
Copy pathpyproject.toml
102 lines (91 loc) · 2.76 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
[tool.poetry]
name = "dayu_widgets"
version = "0.13.15"
description = "Components for PySide/PyQt."
homepage = "https://github.com/phenom-films/dayu_widgets"
repository = "https://github.com/phenom-films/dayu_widgets"
documentation = "https://phenom-films.github.io/dayu_widgets/#/"
keywords = ["PySide", "PyQt", "UI", "PySide2", "PyQt5"]
authors = ["muyanru <muyanru345@163.com>", "timmyliang <820472580@qq.com>"]
license = "MIT"
readme = "README.md"
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
packages = [
{ include = "dayu_widgets" },
]
[tool.poetry.build]
generate-setup-file = false
[tool.poetry.dependencies]
python = ">=2.7,<2.8 || >=3.6.0"
six = "^1.16.0"
singledispatch = {version = "^3.7.0", python = "2.7"}
"Qt.py" = "^1.3.6"
dayu-path = "^0.5.2"
[tool.poetry.dev-dependencies]
pytest = {version = "^7.0.0", python = ">=3.6.0,<3.11"}
PySide2 = {version = "^5.15.2", python = ">=3.6.0,<3.11"}
pytest-qt = {version = "^4.0.2", python = ">=3.6.0,<3.11"}
black = {version = "^21.12b0", python = ">=3.6.2,<3.11"}
isort = {version = "^5.10.1", python = ">=3.6.1,<3.111"}
commitizen = {version = "^2.20.0", python = ">=3.6.1,<3.11"}
[tool.commitizen]
name = "cz_conventional_commits"
version = "0.13.15"
tag_format = "v$version"
version_files = [
"pyproject.toml:version",
"dayu_widgets/__version__.py"
]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target_version = ['py36']
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
filter_files = true
known_first_party = ["dayu_widgets"]
# 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"