mdurl

Форк
0
/
pyproject.toml 
100 строк · 2.6 Кб
1
[build-system]
2
requires = ["flit_core>=3.2.0,<4"]
3
build-backend = "flit_core.buildapi"
4

5
[project]
6
name = "mdurl"
7
version = "0.1.2"  # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT
8
description = "Markdown URL utilities"
9
authors = [
10
    { name = "Taneli Hukkinen", email = "hukkin@users.noreply.github.com" },
11
]
12
license = { file = "LICENSE" }
13
requires-python = ">=3.8"
14
readme = "README.md"
15
classifiers = [
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
]
31
keywords = ["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
39
force_sort_within_sections = true
40
# Group first party and local folder imports together
41
no_lines_before = ["LOCALFOLDER"]
42

43
# Configure isort to work without access to site-packages
44
known_first_party = ["mdurl", "tests"]
45

46
# Settings for Black compatibility
47
profile = "black"
48

49

50
[tool.pytest.ini_options]
51
addopts = "--strict-markers --strict-config"
52
xfail_strict = true
53

54

55
[tool.tox]
56
legacy_tox_ini = '''
57
[tox]
58
# Only run pytest envs when no args given to tox
59
envlist = py{38,39,310,311,312}
60
isolated_build = True
61

62
[testenv:py{38,39,310,311,312}]
63
description = run tests
64
deps = -r tests/requirements.txt
65
commands =
66
    pytest {posargs}
67
'''
68

69

70
[tool.coverage.run]
71
source = ["mdurl"]
72

73
[tool.coverage.report]
74
# Regexes for lines to exclude from consideration
75
exclude_lines = [
76
    # Have to re-enable the standard pragma
77
    "pragma: no cover",
78
    # Code for static type checkers
79
    "if TYPE_CHECKING:",
80
    # Scripts
81
    'if __name__ == .__main__.:',
82
]
83

84

85
[tool.mypy]
86
show_error_codes = true
87
warn_unreachable = true
88
warn_unused_ignores = true
89
warn_redundant_casts = true
90
warn_unused_configs = true
91
# Disabling incremental mode is required for `warn_unused_configs = true` to work
92
incremental = false
93
disallow_untyped_defs = true
94
check_untyped_defs = true
95
strict_equality = true
96
implicit_reexport = false
97
no_implicit_optional = true
98
overrides = [
99
    { module = "tests.*", disallow_untyped_defs = false },
100
]
101

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.