-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
141 lines (124 loc) · 3.46 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
[tool.pylsp-mypy]
enabled = true
live_mode = true
strict = true
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "recipe2txt"
version = "0.5.3"
authors = [
{ name="Jan Philipp Berg", email="[email protected]" },
]
description = "Scrapes recipes and converts them to txt or markdown"
readme = "README.md"
requires-python = ">=3.10"
license = {text = "GNU General Public License v3 or later (GPLv3+)"}
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Framework :: aiohttp",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Topic :: Internet",
"Topic :: Text Processing :: Markup :: Markdown",
"Typing :: Typed"
]
keywords = ["recipes", "cooking", "scraping", "website"]
dependencies = [
"aiodns ~= 3.2",
"aiohttp ~= 3.9",
"backports.strenum ~= 1.2; python_version < '3.11'",
"importlib-metadata ~= 8.5",
"jinja2 ~= 3.1",
"lxml == 5.0.2",
"recipe-scrapers ~= 15.3",
"tomli ~= 2.0; python_version < '3.11'",
"typing_extensions ~= 4.6.2; python_version < '3.11'",
"validators ~= 0.28",
"xdg-base-dirs ~= 6.0"
]
[project.urls]
"Homepage" = "https://github.com/jp-berg/recipe2txt"
"Bug Tracker" = "https://github.com/jp-berg/recipe2txt/issues"
[project.scripts]
re2txt = "recipe2txt.re2txt:main"
recipe2txt = "recipe2txt.re2txt:main"
[tool.mypy]
python_version = '3.11'
strict = true
python_executable = ".venv/bin/python"
pretty = true
warn_unused_configs = true
warn_unused_ignores = true
enable_error_code = ['ignore-without-code']
files = ['recipe2txt/*.py',
'noxfile.py',
'test/testfiles/permanent/*.py',
'recipe2txt/utils/*.py',
'test/test4recipe2txt.py',
'test/testfiles/one_tab_link_prepper.py']
warn_unreachable = true
[[tool.mypy.overrides]]
module = 'validators'
ignore_missing_imports = true
[tool.pylint]
jobs = 0
reports = true
enable = ['useless-suppression']
source-roots = ['recipe2txt', 'test']
output-format = 'text'
recursive = true
max-line-length = 88
single-line-if-stmt = true
ext-import-graph = true
logging-modules = ["logging", "ContextLogger"]
disable = ["C0115", "C0116", "useless-import-alias", "unspecified-encoding", "import-error", "no-else-return"]
init-hook = """
from pylint.config.find_default_config_files import find_default_config_files
from pathlib import Path
import os
import sys
root = Path(os.path.dirname(next(find_default_config_files())))
sys.path.append(str(root))
lib_root = root / ".venv" / "lib"
with_py_vers = next(lib_root.glob("python*"))
libs = with_py_vers / "site-packages"
sys.path.append(str(libs))
"""
[tool.coverage.run]
branch = true
omit= ["*__init__.py", "*test4recipe2txt.py"]
command_line = "-m unittest"
[tool.coverage.report]
skip_covered = true
skip_empty = true
show_missing = true
sort = "Cover"
[tool.black]
workers = 2
preview = true
[tool.isort]
profile = "black"
[tool.autoflake]
recursive = true
in-place = true
imports = [
"recipe-scrapers",
"xdg-base-dirs",
"validators",
"importlib-metadata",
"backports.strenum",
"typing_extensions",
"tomli",
"aiohttp"
]
exclude = ["*conditional_imports.py"]
remove-all-unused-imports = true
remove-unused-variables = true