-
-
Notifications
You must be signed in to change notification settings - Fork 78
/
pyproject.toml
186 lines (154 loc) · 4.96 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
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "evernote-backup"
version = "1.9.3"
description = "Backup & export all Evernote notes and notebooks."
authors = ["vzhd1701 <[email protected]>"]
readme = "README.md"
include = ["CHANGELOG.md"]
license = "MIT"
repository = "https://github.com/vzhd1701/evernote-backup"
keywords = ["evernote", "yinxiang", "backup", "export", "enex"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: End Users/Desktop",
"Natural Language :: English",
"Environment :: Console",
"Operating System :: MacOS",
"Operating System :: Microsoft",
"Operating System :: Unix",
"Topic :: Internet",
"Topic :: System :: Archiving :: Backup",
"Topic :: Terminals",
"Topic :: Utilities",
]
[tool.poetry.urls]
"Changelog" = "https://github.com/vzhd1701/evernote-backup/blob/master/CHANGELOG.md"
[tool.poetry.scripts]
evernote-backup = "evernote_backup.cli:main"
[tool.poetry.dependencies]
python = "^3.8"
evernote3 = "^1.25.14"
xmltodict = "^0.13.0"
click = "^8.1.7"
click-option-group = "^0.5.6"
requests-oauthlib = "^1.3.1"
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
pytest = "^7.4.2"
pytest-cov = "^4.1.0"
pytest-mock = "^3.11.1"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.5.0"
black = "^23.10.0"
isort = "^5.12.0"
mdformat = "0.7.17"
flakeheaven = "^3.3.0"
wemake-python-styleguide = "^0.17.0"
flake8 = "^4.0.1"
mypy = "^1.6.1"
[tool.flakeheaven]
base = "https://raw.githubusercontent.com/wemake-services/wemake-python-styleguide/master/styles/flakeheaven.toml"
extended_default_ignore=[]
max_line_length = 88
exclude = [
"tests/*.py",
"evernote_backup/evernote_client_classes.py",
]
[tool.flakeheaven.plugins]
# Maybe disable
# WPS211 too many arguments
# WPS214 too many methods
# WPS602 forbids @staticmethod
# E800 Found commented out code
# WPS306 forces to use class ClassName(object) <- purely for consistency
# Disabled [personal preference]
# WPS111 short names
# WPS305 forbids f-strings
# WPS326 implicit line concat
# Docstings, don't have any
# WPS226 String constant overuse
# S301, S403 Pickle deserialize, it's my own data
# Exceptions [false positives & formatting]
# WPS323 Found `%` string formatting
# C812 trailing comma <- handled by black
# E203 whitespace before : <- handled by black
# W503 Line break occurred before a binary operator
# E800 TEMPORARILY DISABLE COMMENTED CODE
#flake8-eradicate = ["+*", "-E800"]
pycodestyle = ["+*", "-E203", "-W503"]
flake8-bandit = ["+*", "-S301", "-S403"]
flake8-commas = ["+*", "-C812"]
flake8-quotes = ["+*", "-Q000"]
flake8-rst-docstrings = ["-*"]
flake8-docstrings = ["-*"]
flake8-darglint = ["-*"]
wemake-python-styleguide = ["+*", "-WPS111", "-WPS323", "-WPS326", "-WPS305", "-WPS226"]
[tool.flakeheaven.exceptions."evernote_backup/evernote_client_util.py"]
# Complex decorator
mccabe = ["+*", "-C901"]
wemake-python-styleguide = ["-WPS231", "-WPS232", "-WPS220"]
[tool.flakeheaven.exceptions."evernote_backup/cli.py"]
# Too many arguments, argv options and decorators
wemake-python-styleguide = ["-WPS211", "-WPS216"]
[tool.flakeheaven.exceptions."evernote_backup/cli_app.py"]
# Too many arguments, argv options
wemake-python-styleguide = ["-WPS211"]
[tool.flakeheaven.exceptions."evernote_backup/cli_app_auth.py"]
# Too many arguments, argv options
wemake-python-styleguide = ["-WPS211"]
[tool.flakeheaven.exceptions."evernote_backup/evernote_client.py"]
# Too many arguments, argv options
wemake-python-styleguide = ["-WPS211"]
[tool.flakeheaven.exceptions."evernote_backup/version.py"]
# I like it this way
wemake-python-styleguide = ["-WPS410"]
[tool.flakeheaven.exceptions."evernote_backup/note_formatter_util.py"]
# Time algorithm
wemake-python-styleguide = ["-WPS432", "-WPS509", "-WPS221"]
[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 = "evernote_backup"
disallow_untyped_defs = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
disallow_untyped_decorators = 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
[[tool.mypy.overrides]]
module = "evernote_backup.evernote_client_classes"
disallow_untyped_defs = false
disallow_untyped_calls = false