-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
97 lines (87 loc) · 2.26 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
[build-system]
requires = ["setuptools>=42.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "fast_link_extractor"
version = "1.0.0"
description = "quickly extract links from html"
readme = "README.md"
requires-python = ">=3.7"
license ={text = "MIT"}
authors = [
{name = "Luke Gloege", email = "[email protected]"}
]
classifiers =[
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
]
dependencies = [
"aiohttp==3.8.1",
"beautifulsoup4==4.10.0",
"bs4==0.0.1",
"lxml==4.6.3",
"pytest>=6.0",
"pytest-cov>=2.0",
"mypy>=0.910",
"flake8>=3.9",
"tox>=3.24",
]
[tool.setuptool]
packages = ["fast_link_extractor"]
[tool.setuptools.package-data]
"fast_link_extractor" = ["py.typed"]
[tool.pytest.ini_options]
addopts = "--cov=fast-link-extractor"
testpaths = [
"tests",
]
[tool.mypy]
mypy_path = "src"
check_untyped_defs = true
disallow_any_generics = true
ignore_missing_imports = true
no_implicit_optional = true
show_error_codes = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
no_implicit_reexport = true
[tool.tox]
minversion = "3.8.0"
envlist = ["py37", "py38", "py39", "flake8", "mypy"]
isolated_build = true
skip_missing_interpreters = true
[tool.tox.gh-actions]
python = { "3.7" = ["py37"], "3.8" = ["py38"], "3.9" = ["py39", "mypy", "flake8"] }
[tool.tox.testenv]
setenv = { PYTHONPATH = "{toxinidir}" }
deps = [
"-r{toxinidir}/requirements_dev.txt",
"codecov"
]
commands = [
"pip install -e .",
"pytest --basetemp={envtmpdir}",
"codecov"
]
[tool.tox.testenv.flake8]
basepython = "python3.9"
deps = ["flake8"]
commands = ["flake8 src tests"]
max-line-length = 160
[tool.tox.testenv.mypy]
basepython = "python3.9"
deps = ["-r{toxinidir}/requirements_dev.txt"]
commands = ["mypy src"]