-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
89 lines (74 loc) · 1.84 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
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "code_data"
authors = [
{name = "Saul Shanabrook", email = "[email protected]"}
]
readme = "README.md"
dependencies = ["typing-extensions"]
dynamic = ["version", "description"]
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Software Development :: Libraries :: Python Modules"
]
[project.urls]
Documentation = "https://python-code-data.readthedocs.io/en/latest/"
Source = "https://github.com/metadsl/python-code-data"
[project.optional-dependencies]
rich = [
"rich"
]
# TODO: in the future don't include dev deps and generate from pre-commit
# into requirements.txt
dev = [
"pre-commit",
"black",
"mypy",
"flake8",
"isort",
]
test = [
"pytest>=3.6.0",
"hypothesmith",
"fastjsonschema",
"pytest-xdist[psutil]",
"orjson"
]
docs = [
"jupyter-book"
]
[project.scripts]
python-code-data = "code_data._cli:main"
[tool.black]
extend-exclude = '(docs/conf\.py)|(code_data/_test_minimized/.*)'
[tool.isort]
profile = "black"
skip_gitignore = true
extend_skip_glob = ["*/_test_minimized/*"]
[tool.pytest.ini_options]
addopts = ["--doctest-modules", "--durations=10", "-n=auto"]
norecursedirs = "_test_minimized"
python_files = ["*test*.py"]
[tool.mypy]
ignore_missing_imports = true
warn_redundant_casts = true
check_untyped_defs = true
strict_equality = true
warn_unused_configs = true
exclude = [
'^docs/conf\.py$',
'^scripts/.*'
]
enable_recursive_aliases = true
[tool.conda-lock]
channels = [
'conda-forge', 'defaults'
]