-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
99 lines (89 loc) · 2.73 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
98
99
[build-system]
requires = [ "setuptools", "setuptools-scm" ]
build-backend = "setuptools.build_meta"
[project]
name = "xsnumpy"
dynamic = [ "version" ]
description = "Basic and bare-bones functionality of NumPy just using pure Python."
readme = "README.rst"
requires-python = ">=3.10"
license.file = "LICENSE"
authors = [
{ name = "Akshay Mestry", email = "[email protected]" }
]
keywords = [ "python", "numpy" ]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
urls.Code = "https://github.com/xames3/xsnumpy"
urls.Download = "https://pypi.org/project/xsnumpy/"
urls.Homepage = "https://github.com/xames3/xsnumpy/"
urls."Issue tracker" = "https://github.com/xames3/xsnumpy/issues"
[tool.setuptools]
packages = [ "xsnumpy" ]
[tool.setuptools.dynamic]
version = { attr = "xsnumpy.version" }
[tool.black]
line-length = 80
[tool.isort]
profile = "black"
line_length = 80
force_single_line = true
force_sort_within_sections = false
[tool.mypy]
files = [ "xsnumpy/*.py" ]
show_error_codes = true
show_error_context = true
pretty = true
strict = true
show_column_numbers = true
warn_unreachable = true
warn_unused_ignores = true
warn_unused_configs = true
check_untyped_defs = true
disallow_incomplete_defs = true
ignore_missing_imports = true
disable_error_code = [ "attr-defined", "index", "union-attr" ]
[[tool.mypy.overrides]]
module = [
"xsnumpy.*",
"xsnumpy._core.*",
"xsnumpy._typing.*",
]
disable_error_code = [ "assignment", "method-assign", "name-defined" ]
[tool.tox]
requires = [ "tox>=4" ]
envlist = [ "py312", "py311", "py310" ]
package = "editable"
[tool.tox.env_run_base]
description = "Linting code and running static type checking on {base_python}"
deps = [
"black",
"flake8",
"isort",
"mypy",
"mypy-extensions",
"numpy",
"pytest",
"typing_extensions",
]
commands = [
[ "black", "-q", {replace = "posargs", default = ["xsnumpy/"], extend = true}, "--line-length", "79" ],
[ "flake8", {replace = "posargs", default = ["xsnumpy/"], extend = true}, "--per-file-ignores", "__init__.py:F403,F405,E402", "--ignore", "E203,W503" ],
[ "isort", "--sl", {replace = "posargs", default = ["xsnumpy/"], extend = true} ],
[ "mypy", {replace = "posargs", default = ["xsnumpy/"], extend = true} ],
[ "pytest", {replace = "posargs", default = ["tests/"], extend = true}, "-vvv", "-s" ],
]
[tool.tox.gh.python]
"3.13" = [ "3.13", "type", "pkg_meta" ]
"3.12" = [ "3.12" ]
"3.11" = [ "3.11" ]
"3.10" = [ "3.10" ]