-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
150 lines (129 loc) · 2.61 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
[build-system]
requires = ['setuptools']
build-backend = 'setuptools.build_meta'
[project]
name = 'vq'
version = '0.0.1'
description = 'Image Understanding Makes for A Good Tokenizer for Image Generation'
readme = 'README.md'
requires-python = '>=3.11'
classifiers = [
'Programming Language :: Python :: 3',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
]
dynamic = [
'dependencies',
]
[project.license]
file = 'LICENSE'
[[project.authors]]
name = 'Luting Wang'
email = '[email protected]'
[project.urls]
Homepage = 'https://github.com/LutingWang/vector_quantization'
[project.optional-dependencies]
dev = [
'ipdb',
]
[tool.setuptools.packages.find]
include = [
'vq*',
]
[tool.setuptools.package-data]
vq = [
'py.typed',
'.todd_version',
]
[tool.autoflake]
in-place = true
[tool.yapf]
allow_split_before_dict_value = false
coalesce_brackets = true
dedent_closing_brackets = true
split_arguments_when_comma_terminated = true
split_complex_comprehension = true
split_before_arithmetic_operator = true
[tool.isort]
extra_standard_library = [
'typing_extensions',
]
profile = 'hug'
src_paths = [
'vq',
]
line_length = 79
multi_line_output = 3
[tool.pydocstyle]
convention = 'google'
add-ignore = 'D100,D101,D102,D103,D104,D105,D107'
[tool.mypy]
files = [
'vq',
]
plugins = 'numpy.typing.mypy_plugin'
[[tool.mypy.overrides]]
module = [
'mmcv.*',
'scipy.*',
'setuptools.*',
'timm.*',
'torchvision.*',
'torch_fidelity.*',
'transformers.*',
]
ignore_missing_imports = true
[tool.codespell]
write-changes = true
ignore-words-list = 'nd'
[tool.commitizen]
name = 'cz_conventional_commits'
version = "0.0.1"
tag_format = 'v$version'
version_files = [
'pyproject.toml:^version',
'vq/__init__.py:^__version__',
]
[tool.pylint.'messages control']
disable = [
'attribute-defined-outside-init',
'cyclic-import',
'design',
'eval-used',
'exec-used',
'fixme',
'missing-module-docstring',
'missing-class-docstring',
'missing-function-docstring',
'not-callable',
'protected-access',
'unspecified-encoding',
'unused-argument',
'use-dict-literal',
'use-list-literal',
'duplicate-code',
'using-constant-test',
]
enable = [
'useless-suppression',
]
[tool.pylint.basic]
good-names = [
'ModuleType',
]
[tool.pylint.typecheck]
signature-mutators = [
'all_gather_decorator',
]
generated-members = [
'cv2.*',
'torch.*',
'Store.PRETRAINED',
]
[tool.pylint.format]
expected-line-ending-format = 'LF'
max-line-length = 79
[tool.bandit]
skips = [
'B101',
]