-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
81 lines (54 loc) · 1.53 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
## Build system
[build-system]
requires = ['setuptools']
build-backend = 'setuptools.build_meta'
## Project
[project]
name = 'nvector-lite'
version = '0.2.0'
requires-python = '>=3.10'
dependencies = ['numpy']
[project.optional-dependencies]
test = [
'pytest',
'hypothesis',
'nvector',
'geographiclib',
'pyproj',
'mypy',
]
## Setuptools
[tool.setuptools]
py-modules = ['nvector_lite']
## Hatch
[tool.hatch.envs.test]
features = ['test']
[tool.hatch.envs.test.scripts]
test = 'pytest {args}'
[tool.hatch.envs.dev]
template = 'test'
extra-dependencies = ['ipython', 'pdbp']
[tool.hatch.envs.dev.scripts]
repl = 'ipython -i ipython_startup.py {args}'
## Pytest
[tool.pytest.ini_options]
minversion = '7.0'
# • Use the modern "importlib" import mode
# • Make test failure reports less enormous
# • Summarize with (a)ll except for passed: (w)arnings, (f)ailed, (E)rror, (s)kipped, (x)failed, (X)passed
# • Disable early-loading of the Hypothesis plugin; it will be added in conftest.
# NOTE: Don't include --dist=loadscope here because pytest-xdist isn't installed in CI
addopts = '--import-mode=importlib --tb=short -r a -p no:hypothesispytest'
testpaths = ['./test_nvector_lite.py']
python_files = ['test_*.py', 'test.py']
python_classes = ['Test*', 'test_*']
python_functions = ['test_*']
## Mypy
[tool.mypy]
python_version = '3.10'
strict = true
files = ['nvector_lite.py', 'test_nvector_lite.py']
plugins = ['numpy.typing.mypy_plugin']
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = ['nvector', 'nvector.*']