-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
60 lines (47 loc) · 1.5 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
[build-system]
requires = ["flit_core>=3.2.0,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "mdformat-black"
version = "0.1.1" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT
authors = [
{ name = "Taneli Hukkinen", email = "[email protected]"},
]
description = "Mdformat plugin to Blacken Python code blocks"
readme = "README.md"
license = { file = "LICENSE" }
classifiers = [
"Topic :: Documentation",
"Topic :: Text Processing :: Markup",
]
keywords = ["mdformat", "markdown", "commonmark", "formatter"]
requires-python = ">=3.9"
dependencies = [
'mdformat >=0.3.0',
'black',
]
[project.urls]
"Homepage" = "https://github.com/hukkin/mdformat-black"
[project.entry-points."mdformat.codeformatter"]
"python" = "mdformat_black:format_python"
[tool.isort]
# Force imports to be sorted by module, independent of import type
force_sort_within_sections = true
# Group first party and local folder imports together
no_lines_before = ["LOCALFOLDER"]
# Configure isort to work without access to site-packages
known_first_party = ["mdformat_black", "tests"]
# Settings for Black compatibility
profile = "black"
[tool.pytest.ini_options]
addopts = "--strict-markers --strict-config"
xfail_strict = true
[tool.tox]
requires = ["tox>=4.21.1"]
env_list = ["3.9", "3.10", "3.11", "3.12", "3.13"]
[tool.tox.env_run_base]
description = "Run tests under {base_python}"
deps = ["-r tests/requirements.txt"]
commands = [
["pytest", { replace = "posargs", extend = true }],
]