-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
97 lines (86 loc) · 2.06 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
[tool.poetry]
name = "mars-water-magma"
version = "0.1.0"
description = ""
authors = ["Gaétan Rigaut <gaetanrigaut.s@gmail.com>"]
readme = "README.md"
packages = [{ include = "mars_water_magma", from = "src" }]
[tool.poetry.dependencies]
python = "^3.11, <3.13"
scipy = "^1.11.3"
matplotlib = "=3.8.2"
[tool.poetry.group.dev.dependencies]
black = {extras = ["jupyter"], version = "*"}
ruff = "*"
mypy = "*"
pre-commit = "*"
pre-commit-hooks = "*"
pytest = "*"
coverage = { extras = ["toml"], version = "*" }
pytest-cov = "*"
pytest-mock = "*"
ipykernel = "*"
nbstripout = "*"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
target-version = ['py311']
line-length = 79
[tool.ruff]
exclude = ["*.ipynb"]
line-length = 79
target-version = "py311"
select = ["ALL"]
ignore = [
# missing-trailing-comma (COM812)
"COM812",
#no-blank-line-before-class
"D211",
#multi-line-summary-second-line
"D213",
# flake8-boolean-trap
"FBT",
# bandit
"S",
# flake8-logging
"G",
# flake8-print
"T",
# McCabe complexity
"C901",
# do not assign a lambda expression, use a def
"E731",
# implicit-namespace-package
"INP001",
# single-line-implicit-string-concatenation
"ISC001",
# Too many arguments to function call
"PLR0913",
# Missing type annotation for `self` in method
"ANN101",
# suppressible-exception
"SIM105",
]
unfixable = [
# Remove unused-imports
"F401",
# Variable assigned but never used
"F841",
# Use {key} in {dict} instead of {key} in {dict}.keys()
"SIM118",
# move to type-checking block
"TCH003",
# found comented-out code
"ERA001",
]
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib", "--cov"]
testpaths = ["tests"]
[tool.coverage.paths]
source = ["mars_water_magma", "*/site-packages"]
[tool.coverage.run]
branch = true
source = ["mars_water_magma"]
[tool.coverage.report]
show_missing = true