mdurl
/
pyproject.toml
100 строк · 2.6 Кб
1[build-system]2requires = ["flit_core>=3.2.0,<4"]3build-backend = "flit_core.buildapi"4
5[project]6name = "mdurl"7version = "0.1.2" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT8description = "Markdown URL utilities"9authors = [10{ name = "Taneli Hukkinen", email = "hukkin@users.noreply.github.com" },11]
12license = { file = "LICENSE" }13requires-python = ">=3.8"14readme = "README.md"15classifiers = [16"License :: OSI Approved :: MIT License",17"Operating System :: MacOS",18"Operating System :: Microsoft :: Windows",19"Operating System :: POSIX :: Linux",20"Programming Language :: Python :: 3 :: Only",21"Programming Language :: Python :: 3.8",22"Programming Language :: Python :: 3.9",23"Programming Language :: Python :: 3.10",24"Programming Language :: Python :: 3.11",25"Programming Language :: Python :: 3.12",26"Programming Language :: Python :: Implementation :: CPython",27"Programming Language :: Python :: Implementation :: PyPy",28"Topic :: Software Development :: Libraries :: Python Modules",29"Typing :: Typed",30]
31keywords = ["markdown", "commonmark"]32
33[project.urls]34"Homepage" = "https://github.com/executablebooks/mdurl"35
36
37[tool.isort]38# Force imports to be sorted by module, independent of import type
39force_sort_within_sections = true40# Group first party and local folder imports together
41no_lines_before = ["LOCALFOLDER"]42
43# Configure isort to work without access to site-packages
44known_first_party = ["mdurl", "tests"]45
46# Settings for Black compatibility
47profile = "black"48
49
50[tool.pytest.ini_options]51addopts = "--strict-markers --strict-config"52xfail_strict = true53
54
55[tool.tox]56legacy_tox_ini = '''57[tox]
58# Only run pytest envs when no args given to tox
59envlist = py{38,39,310,311,312}
60isolated_build = True
61
62[testenv:py{38,39,310,311,312}]
63description = run tests
64deps = -r tests/requirements.txt
65commands =
66pytest {posargs}
67'''
68
69
70[tool.coverage.run]71source = ["mdurl"]72
73[tool.coverage.report]74# Regexes for lines to exclude from consideration
75exclude_lines = [76# Have to re-enable the standard pragma77"pragma: no cover",78# Code for static type checkers79"if TYPE_CHECKING:",80# Scripts81'if __name__ == .__main__.:',82]
83
84
85[tool.mypy]86show_error_codes = true87warn_unreachable = true88warn_unused_ignores = true89warn_redundant_casts = true90warn_unused_configs = true91# Disabling incremental mode is required for `warn_unused_configs = true` to work
92incremental = false93disallow_untyped_defs = true94check_untyped_defs = true95strict_equality = true96implicit_reexport = false97no_implicit_optional = true98overrides = [99{ module = "tests.*", disallow_untyped_defs = false },100]
101