forked from NerdsWithAttitudes/WarpFactory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
82 lines (73 loc) · 1.89 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
[tool.poetry]
name = "warpfactory"
version = "0.1.0"
description = "Python port of WarpFactory - A MATLAB-based warp drive metric solver"
authors = ["JohnsterID"]
license = "MIT"
readme = "README.md"
packages = [
{ include = "warpfactory", from = "." },
]
include = ["warpfactory/py.typed"]
[tool.poetry.dependencies]
python = "^3.9"
numpy = "^1.26.4"
scipy = "^1.12.0"
torch = "^2.2.1"
matplotlib = "^3.8.3"
PyQt6 = "^6.6.1"
PyQt6-Qt6 = "^6.6.1"
[tool.poetry.group.dev.dependencies]
pytest = "^8.0.2"
pytest-cov = "^4.1.0"
black = "^24.2.0"
isort = "^5.13.2"
flake8 = "^7.0.0"
mypy = "^1.8.0"
pylint = "^3.0.3"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
testpaths = ["warpfactory/tests"]
python_files = ["test_*.py"]
addopts = "-v --cov=warpfactory"
markers = [
"gui: marks tests that require Qt GUI libraries",
"gpu: marks tests that require GPU support"
]
[tool.black]
line-length = 88
target-version = ['py39']
[tool.isort]
profile = "black"
multi_line_output = 3
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
ignore_missing_imports = false
[[tool.mypy.overrides]]
module = [
"numpy.*",
"scipy.*",
"matplotlib.*",
"torch.*"
]
ignore_missing_imports = true
[tool.poetry.scripts]
lint = "poetry run pylint warpfactory"
typecheck = "poetry run mypy warpfactory"
format = "poetry run black . && poetry run isort ."
check = "poetry run black --check . && poetry run isort --check-only . && poetry run flake8 . && poetry run mypy warpfactory && poetry run pylint warpfactory"
test = "poetry run pytest --cov=warpfactory"