File: pyproject.toml

package info (click to toggle)
python-sphinx-codeautolink 0.17.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 936 kB
  • sloc: python: 2,818; makefile: 4
file content (101 lines) | stat: -rw-r--r-- 3,024 bytes parent folder | download
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
[build-system]
requires = ["setuptools>=77.0", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "sphinx-codeautolink"
description = "Automatic links from code examples to reference documentation."
readme = "readme_pypi.rst"
license-files = ["LICENSE"]
dynamic = ["version"]

requires-python = ">=3.10"
dependencies = [
    "sphinx>=3.2.0",
    "beautifulsoup4>=4.8.1",
]
# Keep extras in sync with requirements manually
optional-dependencies = {ipython = ["ipython!=8.7.0"]}

keywords = ["sphinx", "extension", "code", "link"]
authors = [{name = "Felix Hildén", email = "felix.hilden@gmail.com"}]
maintainers = [{name = "Felix Hildén", email = "felix.hilden@gmail.com"}]
classifiers = [
    "Development Status :: 4 - Beta",
    "Framework :: Sphinx",
    "Framework :: Sphinx :: Extension",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3 :: Only",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Programming Language :: Python :: 3.13",
    "Topic :: Documentation",
    "Topic :: Documentation :: Sphinx",
    "Topic :: Software Development :: Documentation",
]

[project.urls]
homepage = "https://pypi.org/project/sphinx-codeautolink"
download = "https://pypi.org/project/sphinx-codeautolink"
source = "https://github.com/felix-hilden/sphinx-codeautolink"
issues = "https://github.com/felix-hilden/sphinx-codeautolink/issues"
documentation = "https://sphinx-codeautolink.rtfd.org"

[tool.setuptools.dynamic]
version = {attr = "sphinx_codeautolink.__version__"}

[tool.pytest.ini_options]
python_files = "*.py"
testpaths = ["tests"]
filterwarnings = [
    "ignore:.*IPython:UserWarning",
]

[tool.coverage.run]
source = ["src"]
branch = true
command_line = "-m pytest"

[tool.coverage.report]
precision = 1
show_missing = true
skip_covered = true

[tool.ruff.lint]
select = ["ALL"]
ignore = [
    "ANN", # annotations - too oppressive
    "TC", # type checking - too much hassle
]
extend-ignore = [
    "ARG001", # unused args needed in interfaces
    "ARG002", # unused args needed in interfaces
    "D107", # docstring missing is fine
    "D203", # recommended by ruff format
    "D212", # docstring format clash
    "D413", # empty docstring ending line
    "COM812", # recommended by ruff format
    "ISC001", # recommended by ruff format
    "PLR0913", # many arguments is fine
    "PLR0915", # many statements is fine
]
extend-unsafe-fixes = ["F401"]
isort.split-on-trailing-comma = false

[tool.ruff.lint.extend-per-file-ignores]
"src/*/__init__.py" = ["F401"]
"src/sphinx_codeautolink/parse.py" = ["N802"]
"docs/*" = ["ALL"]
"tests/*" = [
    "D", # docstring
    "ANN", # annotations
    "S101", # assertions - necessary in tests
    "T201", # print - helpful in tests
    "PLR2004", # magic number
]
# TODO: support future annotated hints properly
"tests/extension/src/test_project/__init__.py" = ["FA100"]

[tool.ruff.format]
skip-magic-trailing-comma = true