Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
75 lines (67 loc) · 1.43 KB
/
Copy pathpyproject.toml
File metadata and controls
75 lines (67 loc) · 1.43 KB
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
[build-system]
requires = ["setuptools>=77.0"]
build-backend = "setuptools.build_meta"
[project]
name = "nameframe"
version = "0.1.0.dev1"
description = "Small PyTorch components for configurable data and training workflows."
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
authors = [{ name = "Aloudname" }]
dependencies = [
"torch>=2.0",
"numpy",
"PyYAML>=6.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pre-commit",
"build",
"ruff==0.17.0",
"mypy==2.4.0",
]
[tool.setuptools.packages.find]
include = ["nameframe*"]
[tool.setuptools.package-data]
nameframe = ["py.typed"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"--tb=short",
"--strict-markers",
]
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.mypy]
files = ["tests/typing/public_api.py"]
python_version = "3.10"
follow_imports = "silent"
ignore_missing_imports = true
check_untyped_defs = true
warn_unused_ignores = true
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"W", # pycodestyle warnings
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by formatter)
]
exclude = [
".git",
"__pycache__",
".pytest_cache",
]