-
Notifications
You must be signed in to change notification settings - Fork 42
/
pyproject.toml
100 lines (92 loc) · 2.28 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
[tool.poetry]
name = "md2pdf"
version = "1.0.1"
description = "The Markdown to PDF conversion tool with styles"
authors = ["Julien Maupetit <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/jmaupetit/md2pdf"
repository = "https://github.com/jmaupetit/md2pdf"
keywords = ["markdown", "pdf", "html", "css", "cli"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Environment :: Console",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Office/Business",
"Topic :: Utilities",
]
packages = [
{ include = "md2pdf" },
]
include = [
"LICENSE",
"README.md",
]
exclude = [
"tests",
]
[tool.poetry.scripts]
md2pdf = "md2pdf.__main__:cli.cli"
[tool.poetry.dependencies]
python = "^3.8"
weasyprint = "^60.2"
click = "^8.1.7"
pygments = "^2.17.2"
python-frontmatter = "^1.1.0"
jinja2 = "^3.1.4"
markdown = "^3.5.2"
pymdown-extensions = "^10.7"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.4"
pytest-cov = "^4.1.0"
ruff = "^0.1.13"
[tool.pytest.ini_options]
addopts = "-vs --cov=md2pdf --cov-report term-missing"
python_files = [
"test_*.py",
"tests.py",
]
testpaths = [
"tests",
]
[tool.ruff]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"E", # pycodestyle error
"F", # Pyflakes
"I", # Isort
"ISC", # flake8-implicit-str-concat
"PLC", # Pylint Convention
"PLE", # Pylint Error
"PLR", # Pylint Refactor
"PLW", # Pylint Warning
"RUF100", # Ruff unused-noqa
"S", # flake8-bandit
"T20", # flake8-print
"W", # pycodestyle warning
]
ignore = [
"PLR0913", # Too many arguments in function definition
]
[tool.ruff.pydocstyle]
# Use Google-style docstrings.
convention = "google"
[tool.ruff.per-file-ignores]
"tests/*" = [
"S101",
"PLR2004", # Pylint magic-value-comparison
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"