-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
71 lines (60 loc) · 1.59 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
[tool.poetry]
name = "striker"
version = "0.0.0"
description = "Minimal and Modular PyTorch Framework"
authors = ["0phoff <[email protected]>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/0phoff/striker"
[tool.poetry.dependencies]
python = "^3.9,<3.13"
# Required dependencies
typeguard = "^2.13"
torch = ">=1.12, <3.0.0"
# Optional dependencies
rich = { version = "^12.5", optional = true }
rich-argparse = { version = "^0.2.1", optional = true }
[tool.poetry.extras]
rich = ["rich", "rich-argparse"]
[tool.poetry.group.dev.dependencies]
numpy = "^1.26"
pytest = "^5.2"
mypy = "^1.6.1"
ruff = "^0.3.4"
[tool.mypy]
python_version = "3.9"
follow_imports = 'silent'
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
disallow_untyped_defs = true
ignore_missing_imports = true
show_error_codes = true
[tool.ruff]
target-version = "py39"
line-length = 150
extend-exclude = [".sandbox"]
[tool.ruff.lint]
select = ["C", "E", "F", "W", "B", "G", "I", "SIM", "B9", "C4", "RET5"]
unfixable = ["B"]
[tool.ruff.format]
quote-style = "single"
[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "pep440"
format-jinja = """
{%- if distance == 0 -%}
{{ base }}
{%- elif env['TESTPYPI'] == '1' -%}
{{ base }}.post{{ distance }}
{%- else -%}
{{ base }}+{{ distance }}.{{ commit }}
{%- endif -%}
"""
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"