-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
187 lines (163 loc) · 5.23 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
185
186
187
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "csv2notion_neo"
version = "1.3.3"
description = "Upload & Merge CSV or JSON Data with Images to Notion Database"
authors = ["Arjun <[email protected]>", "vzhd1701 <[email protected]>"]
readme = "README.md"
include = ["CHANGELOG.md"]
license = "MIT"
homepage = "https://github.com/TheAcharya/csv2notion-neo"
repository = "https://github.com/TheAcharya/csv2notion-neo"
documentation = "https://github.com/TheAcharya/csv2notion-neo/blob/master/README.md"
keywords = ["csv", "json", "notion", "import", "merge"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Environment :: Console",
"Operating System :: MacOS",
"Operating System :: Microsoft",
"Operating System :: Unix",
"Topic :: Database",
"Topic :: Internet",
"Topic :: Terminals",
"Topic :: Utilities",
]
[tool.poetry.urls]
"Changelog" = "https://github.com/TheAcharya/csv2notion-neo/blob/master/CHANGELOG.md"
[tool.poetry.scripts]
csv2notion_neo = "csv2notion_neo.cli:main"
[tool.poetry.dependencies]
python = "^3.8"
python-dateutil = "^2.8.2"
tqdm = "^4.64.0"
emoji = "^2.0.0"
requests = "^2.32.0"
types-requests = "^2.27.27"
types-python-dateutil = "^2.8.16"
types-emoji = "^1.2.8"
icecream = "^2.1.3"
cached-property = "^1.5.2"
tzlocal = "^5.2"
bs4 = "^0.0.1"
dictdiffer = "^0.9.0"
python-slugify = "^8.0.1"
ratelimit = "^2.2.1"
commonmark = "^0.9.1"
[tool.poetry.group.dev.dependencies]
mdformat = "0.7.7"
pytest = "^7.1.2"
pytest-cov = "^3.0.0"
pytest-mock = "^3.7.0"
pyfakefs = "^4.5.6"
pytest-vcr = "^1.0.2"
black = "^24.3.0"
isort = "^5.10.1"
pre-commit = "^2.18.1"
wemake-python-styleguide = "^0.16.1"
flakehell = "^0.9.0"
flake8 = "3.9.0"
mypy = "^0.950"
testfixtures = "^7.0.3"
[tool.flakehell]
base = "https://raw.githubusercontent.com/wemake-services/wemake-python-styleguide/master/styles/flakehell.toml"
extended_default_ignore=[]
max_line_length = 88
[tool.flakehell.plugins]
# Disabled [personal preference]
# Docstings, don't have any
# WPS111 short names
# WPS201 too many imports
# WPS226 String constant overuse
# WPS237 Complex f-strings
# WPS305 forbids f-strings
# WPS326 implicit line concat
# WPS336 explicit string concatenation
# WPS437 protected attributes (needed for Notion sdk)
# Exceptions [false positives & formatting]
# C812 trailing comma <- handled by black
# E203 whitespace before : <- handled by black
# W503 Line break occurred before a binary operator
# WPS317 Indentation for parameters <- handled by black
# WPS323 `%` string formatting, log format
# WPS601 https://github.com/wemake-services/wemake-python-styleguide/issues/1431
pycodestyle = ["+*", "-E203", "-W503"]
flake8-commas = ["+*", "-C812"]
flake8-quotes = ["+*", "-Q000"]
flake8-rst-docstrings = ["-*"]
flake8-docstrings = ["-*"]
flake8-darglint = ["-*"]
wemake-python-styleguide = ["+*", "-WPS111", "-WPS201", "-WPS226", "-WPS237", "-WPS305", "-WPS317", "-WPS323", "-WPS326", "-WPS336", "-WPS437", "-WPS601"]
[tool.flakehell.exceptions."csv2notion/version.py"]
# I like it this way
wemake-python-styleguide = ["-WPS410"]
[tool.flakehell.exceptions."tests/*.py"]
# Personal preferences, maybe enable later
# WPS110 wrong names
# WPS114 underscored number name pattern var_123
# WPS202 too many module members
# WPS204 overused expressions
# WPS210 too many local variables
# WPS218 too many asserts
# WPS219 deep access a.b.c.d.e
# WPS336 string concatenation abc + cba
# Must be more explicit in tests
# WPS118 long function names
# WPS430 nested functions
# WPS432 magic numbers
# WPS441 accessing protected _vars
# WPS459 float comparison
# WPS507 useless `len()` compare
# WPS520 my_check == []
# Required for tests
# S101 assert statements
# S105 possible hardcoded passwords
wemake-python-styleguide = ["-WPS110", "-WPS114", "-WPS118", "-WPS202", "-WPS204", "-WPS210", "-WPS218", "-WPS219", "-WPS336", "-WPS430", "-WPS432", "-WPS441", "-WPS459", "-WPS507", "-WPS520"]
flake8-bandit = ["-S101", "-S105"]
[tool.black]
line-length = 88
[tool.isort]
profile = "black"
skip_gitignore = true
[tool.coverage]
[tool.coverage.report]
show_missing = true
exclude_lines = [
# Have to re-enable the standard pragma
'pragma: no cover',
# Don't complain about missing debug-only code:
'def __repr__',
'if self\.debug',
# Don't complain if tests don't hit defensive assertion code:
'raise AssertionError',
'raise NotImplementedError',
# Don't complain if non-runnable code isn't run:
'if 0:',
'if __name__ == .__main__.:'
]
omit = [
'*/tests/*',
]
[tool.mypy]
files = "csv2notion_neo"
disallow_untyped_defs = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
#disallow_any_explicit = true
disallow_any_generics = true
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true
check_untyped_defs = true
ignore_missing_imports = true
implicit_reexport = false
local_partial_types = true
strict_equality = true
no_implicit_optional = true