-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathpyproject.toml
138 lines (118 loc) · 3.42 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
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "enex2notion"
version = "0.3.1"
description = "Import Evernote ENEX files to Notion"
authors = ["vzhd1701 <[email protected]>"]
readme = "README.md"
include = ["CHANGELOG.md"]
license = "MIT"
repository = "https://github.com/vzhd1701/enex2notion"
keywords = ["evernote", "enex", "notion", "import"]
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 :: Terminals",
"Topic :: Utilities",
]
[tool.poetry.urls]
"Changelog" = "https://github.com/vzhd1701/enex2notion/blob/master/CHANGELOG.md"
[tool.poetry.scripts]
enex2notion = "enex2notion.cli:main"
[tool.poetry.dependencies]
python = "^3.8"
beautifulsoup4 = "^4.12.2"
python-dateutil = "^2.8.2"
requests = "^2.31.0"
w3lib = "^2.1.2"
tinycss2 = "^1.2.1"
pdfkit = "^1.0.0"
PyMuPDF = "^1.23.5"
notion-vzhd1701-fork = "0.0.37"
tqdm = "^4.66.1"
lxml = "^4.9.3"
[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"
pyfakefs = "^5.3.0"
pytest-vcr = "^1.0.2"
[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",
]
[tool.flakeheaven.plugins]
# Disabled [personal preference]
# WPS111 short names
# WPS305 forbids f-strings
# WPS326 implicit line concat
# Docstings, don't have any
# WPS226 String constant overuse
# 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
# Bandit
# S303 md5 is used for en-media hash
# S314, S405 ElementTree
pycodestyle = ["+*", "-E203", "-W503"]
flake8-bandit = ["+*", "-S303", "-S314", "-S405"]
flake8-commas = ["+*", "-C812"]
flake8-quotes = ["+*", "-Q000"]
flake8-rst-docstrings = ["-*"]
flake8-docstrings = ["-*"]
flake8-darglint = ["-*"]
wemake-python-styleguide = ["+*", "-WPS111", "-WPS226", "-WPS305", "-WPS317", "-WPS323", "-WPS326"]
[tool.flakeheaven.exceptions."enex2notion/version.py"]
# I like it this way
wemake-python-styleguide = ["-WPS410"]
[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/*'
]