-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
117 lines (102 loc) · 3.97 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
[build-system]
requires = ["hatchling", "hatch-fancy-pypi-readme", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "accessible-pygments"
description = "A collection of accessible pygments styles"
license = { text = "BSD-3-Clause" }
requires-python = ">=3.9"
authors = [
{ name = "Stephannie Jimenez Gacha", email = "steff456@hotmail.com" },
{ name = "Tania Allard", email = "trallard@bitsandchips.me" },
]
maintainers = [
{ name = "Gabriel Fouasnon", email = "gabriel@fouasnon.com" },
]
keywords = ["a11y", "accessibility", "pygments", "WCAG", "Sphinx"]
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Development Status :: 3 - Alpha",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = ["pygments >= 1.5"]
dynamic = ["version", "readme"]
[project.entry-points."pygments.styles"]
a11y-dark = "a11y_pygments.a11y_dark.style:Theme"
a11y-high-contrast-dark = "a11y_pygments.a11y_high_contrast_dark.style:Theme"
a11y-high-contrast-light = "a11y_pygments.a11y_high_contrast_light.style:Theme"
a11y-light = "a11y_pygments.a11y_light.style:Theme"
blinds-dark = "a11y_pygments.blinds_dark.style:Theme"
blinds-light = "a11y_pygments.blinds_light.style:Theme"
github-dark = "a11y_pygments.github_dark.style:Theme"
github-dark-colorblind = "a11y_pygments.github_dark_colorblind.style:Theme"
github-dark-high-contrast = "a11y_pygments.github_dark_high_contrast.style:Theme"
github-light = "a11y_pygments.github_light.style:Theme"
github-light-colorblind = "a11y_pygments.github_light_colorblind.style:Theme"
github-light-high-contrast = "a11y_pygments.github_light_high_contrast.style:Theme"
gotthard-dark = "a11y_pygments.gotthard_dark.style:Theme"
gotthard-light = "a11y_pygments.gotthard_light.style:Theme"
greative = "a11y_pygments.greative.style:Theme"
pitaya-smoothie = "a11y_pygments.pitaya_smoothie.style:Theme"
[project.urls]
Homepage = "https://github.com/Quansight-Labs/accessible-pygments"
"Bug Reports" = "https://github.com/Quansight-Labs/accessible-pygments/issues"
[tool.hatch.metadata.hooks.fancy-pypi-readme]
content-type = "text/markdown"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
path = "README.md"
[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
# Literal TOML strings (single quotes) need no escaping of backslashes.
pattern = '\[(.+?)\]\(((?!https?://)\S+?)\)'
replacement = '[\1](https://github.com/Quansight-Labs/accessible-pygments/tree/main/\g<2>)'
[tool.hatch.version]
source = "vcs"
raw-options = { local_scheme = "no-local-version" }
[project.optional-dependencies]
tests = ["hypothesis", "pytest"]
dev = [
"pre-commit",
"setuptools",
"playwright",
"pillow",
"twine>=5.0",
"pkginfo>=1.10", # needed to support metadata 2.3
]
[tool.hatch.build.targets]
sdist = { exclude = ["/.github", "/docs", "/test", "/scripts"] }
wheel = { packages = ["a11y_pygments"] }
[tool.hatch.envs.dev]
features = ["dev"]
post-install-commands = ["playwright install"]
[tool.hatch.envs.test]
features = ["tests"]
[tool.hatch.envs.dev.scripts]
lint = "pre-commit run --all-files"
render_html = "python test/render_html.py"
create_css = "python test/run_css.py --save-dir docs/_build"
update_theme_docs = "python scripts/update_theme_docs.py"
[tool.hatch.envs.test.scripts]
tests = "python -m pytest test/test_*.py"
[tool.isort]
profile = "black"
skip_gitignore = true
lines_between_types = 1
lines_after_imports = 2
[tool.ruff]
fix = true
exclude = ["test/scripts/*.py"]
ignore = [
"E501",
# line too long | Black takes care of this
]