-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
90 lines (73 loc) · 2.13 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
[tool.poetry]
name = "auto-pytabs"
version = "0.5.0"
description = "Automatically generate code examples for different Python versions in mkdocs or Sphinx based documentations"
authors = ["Janek Nouvertné <[email protected]>"]
readme = "README.md"
packages = [{ include = "auto_pytabs" }]
[tool.poetry.dependencies]
python = "^3.8"
ruff = ">=0.4"
sphinx = { version = ">=4", optional = true }
markdown = {version = ">=3.2.1", optional = true }
mkdocs = {version = ">=1.4.2,<2", optional = true}
[tool.poetry.group.dev.dependencies]
mypy = "^1.11.1"
types-markdown = "^3.6.0.20240316"
pytest = "^8.3.2"
pymdown-extensions = "^10.9"
sphinx-design = "^0.3.0"
pytest-regressions = "^2.5.0"
types-docutils = "^0.21.0.20240724"
mkdocs = "^1.6.0"
pyyaml = "^6.0.2"
pytest-mock = "^3.14.0"
pre-commit = "^3.2.1"
[tool.poetry.extras]
sphinx = ["sphinx"]
markdown = ["markdown"]
mkdocs = ["mkdocs"]
[tool.poetry.plugins."markdown.extensions"]
auto_pytabs = "auto_pytabs.markdown_ext:AutoPyTabsExtension"
[tool.poetry.plugins."mkdocs.plugins"]
auto_pytabs = "auto_pytabs.mkdocs_plugin:AutoPyTabsPlugin"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
strict = true
files = ["auto_pytabs"]
[tool.pytest.ini_options]
filterwarnings = [
"ignore::DeprecationWarning:sphinx_design.*:",
"ignore::DeprecationWarning:sphinx.util.images:4",
"ignore::DeprecationWarning:importlib.resources._legacy:80",
]
[tool.ruff]
src = ["auto_pytabs", "test"]
target-version = "py38"
exclude = ["test/sphinx_ext_test_data/example.py"]
[tool.ruff.lint]
select = [
"DTZ", # flake8-datetimez
"E", # pycodestyle errors
"ERA", # eradicate
"F", # pyflakes
"I", # isort
"ICN", # flake8-import-conventions
"PLE",
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"RET", # flake8-return
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"T10", # flake8-debugger
"T20", # flake8-print
"TCH", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle - warning
"YTT", # flake8-2020
]
[tool.ruff.lint.per-file-ignores]
"test*" = ["S101"]