-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
139 lines (124 loc) · 3.79 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
[tool.poetry]
name = "eit_dash"
version = "0.0.1"
description = "GUI to load and analyze image data from electrical impedance tomography (EIT)"
authors = ["Your Name <[email protected]>"]
license = "Apache 2.0"
readme = "README.md"
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
]
keywords = ["EIT - Electrical Impedance Tomography", "GUI"]
packages = [
{ include = "eit_dash"},
{ include = "cli"},
]
[tool.poetry.scripts]
eit-dash = "cli.cli:cli"
[tool.poetry.urls]
repository = "https://github.com/EIT-ALIVE/eit_dash"
"Bug Tracker" = "https://github.com/EIT-ALIVE/eit_dash/issues"
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
dash = { extras = ["testing"], version = "^2.11.1" }
dash-bootstrap-components = "^1.4.1"
eitprocessing = "^1.0.2"
numpy = "^1.25.2"
pandas = "^2.0.3"
ruff = "^0.4.9"
click = "^8.1.7"
[tool.poetry.group.test.dependencies]
pytest = "^7.4.0"
urllib3 = "<2.0.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
testpaths = ["unit_tests", "e2e_tests"]
[tool.coverage.run]
branch = true
source = ["eit_dash"]
command_line = "-m pytest"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py37,py38,py39,py310,py311
skip_missing_interpreters = true
[testenv]
commands = pytest
extras = dev
"""
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ["ALL"]
ignore = [
# Not conducive for dash coding
"ARG001", # Unused function argument
"ANN", # Type hinting
"PLR0913", # Too many arguments
"PLW0603", # Using globals
# Unwanted (potentially)
"FBT", # Using boolean arguments
"S105", # Possible hardcoded password
"S311", # insecure random generators
"PT011", # pytest-raises-too-broad
"TD", # TODOs
"FIX002", # Resolve TODOs
"B028", # No explicit `stacklevel` keyword argument found in warning
# "SIM108", # Use ternary operator (not sure if we want to ignore this)
# Unneeded docstrings
"D100", # Missing module docstring
"D104", # Missing public package docstring
"D105", # Missing docstring in magic method
"D107", # Missing docstring in `__init__`
# Rules irrelevant to the Google style
"D203", # 1 blank line required before class docstring
"D204",
"D212", # Multi-line docstring summary should start at the first line
"D213", # Multi-line docstring summary should start at the second line
"D215",
"D400",
"D401",
"D404", # First word of the docstring should not be This
"D406",
"D407",
"D408",
"D409",
"D413",
]
# Allow autofix for all enabled rules.
fixable = ["ALL"]
unfixable = ["F401"] # unused imports (should not disappear while editing)
extend-safe-fixes = [
"D415", # First line should end with a period, question mark, or exclamation point
"D300", # Use triple double quotes `"""`
"D200", # One-line docstring should fit on one line
"TCH", # Format type checking only imports
"ISC001", # Implicitly concatenated strings on a single line
"EM", # Exception message variables
"RUF013", # Implicit Optional
"B006", # Mutable default argument
]
isort.known-first-party = ["eit_dash"]
[tool.ruff.lint.per-file-ignores]
"*.ipynb" = ["ERA001"] # Commented out code
"tests/*" = [
"S101", # Use of `assert` detected
"ANN201", # Missing return type
"D103", # Missing function docstring
]
"docs/*" = ["ALL"]
[tool.bumpversion]
current_version = "0.0.1"
[[tool.bumpversion.files]]
filename = "pyproject.toml"
[[tool.bumpversion.files]]
filename = "CITATION.cff"
[[tool.bumpversion.files]]
filename = "eit_dash/__init__.py"