-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
67 lines (58 loc) · 1.28 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build]
includes = ["CAMASim/**"]
[project]
name = "camasim"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"numpy>=2.1.3",
"scipy>=1.14.1"
]
[project.optional-dependencies]
example = [
"scikit-learn>=1.5.2"
]
[tool.uv]
dev-dependencies = [
"pre-commit>=4.0.1",
"mypy>=1.11.2",
"pytest>=8.3.3",
"pytest-mock>=3.14.0",
"requests-mock>=1.12.1",
"ruff>=0.6.9",
]
package = true
[tool.ruff]
line-length = 88
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"W191", # indentation contains tabs
"B904",
"B023",
"E731", #TODO: remove this
"E712", #TODO: remove this
"E741" #TODO: remove this
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
[tool.ruff.lint.isort]
known-third-party = ["fastapi", "pydantic", "starlette"]
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true