-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
134 lines (115 loc) · 3.03 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
[tool.poetry]
name = "arcade-collection"
version = "0.16.0"
description = "Collection of tasks for working with ARCADE."
authors = [
"Jessica S. Yu <[email protected]>"
]
license = "BSD-3-Clause"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.9"
prefect = "^2.14.3"
numpy = "^1.24.2"
pandas = "^1.5.3"
scikit-image = "^0.21.0"
simulariumio = "^1.7.0"
matplotlib = "^3.7.2"
[tool.poetry.group.dev.dependencies]
black = "^24.3.0"
isort = "^5.12.0"
mypy = "^1.10.0"
pylint = "^2.16.2"
pytest = "^7.3.0"
pytest-cov = "^4.0.0"
pytest-subtests = "^0.11.0"
sphinx = "^7.0.1"
furo = "^2023.5.20"
myst-parser = "^2.0.0"
sphinx-copybutton = "^0.5.2"
tox = "^4.5.1"
ruff = "^0.6.3"
[tool.isort]
profile = "black"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pylint.messages_control]
disable = [
"missing-module-docstring",
]
good-names = ["i", "j", "k", "x", "y", "z", "u", "v", "w", "ds", "dt", "dx", "dy", "dz", "ax"]
[tool.pylint.design]
max-args = 10 # maximum number of arguments for function / method
[tool.pylint.similarities]
min-similarity-lines = 10 # minimum lines number of a similarity
[tool.mypy]
mypy_path = "src"
explicit_package_bases = true
namespace_packages = true
[[tool.mypy.overrides]]
module = [
"matplotlib.*",
"pandas.*",
"ruamel.*",
"simulariumio.*",
"skimage.*",
]
ignore_missing_imports = true
[tool.ruff]
line-length = 100
target-version = "py39"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"COM812", # missing-trailing-comma
"D100", # undocumented-public-module
"D105", # undocumented-magic-method
"D107", # undocumented-public-init
"D202", # no-blank-line-after-function
"D203", # one-blank-line-before-class
"D212", # multi-line-summary-first-line
"D413", # blank-line-after-last-section
"D416", # section-name-ends-in-colon
]
[tool.ruff.lint.pylint]
max-args = 10
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = [
"D", # pydocstyle
"PT009", # pytest-unittest-assertion
"PT027", # pytest-unittest-raises-assertion
"INP001", # implicit-namespace-package
"ANN201", # missing-return-type-undocumented-public-function
"S311", # suspicious-non-cryptographic-random-usage
"ANN001", # missing-type-function-argument
"ANN003", # missing-type-kwargs
"ANN202", # missing-type-args
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
]
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = True
envlist = py{39,310,311}, format, lint, typecheck
skipsdist=True
[testenv]
allowlist_externals = poetry
commands =
poetry run pytest --cov-report html --cov=src/ tests/
[testenv:format]
commands =
poetry run black -l 100 src/ tests/
poetry run isort -l 100 src/ tests/
[testenv:lint]
commands =
poetry run pylint --ignore-patterns=test.*?py src/ tests/ --fail-under=9.0
poetry run ruff check src/ tests/
[testenv:typecheck]
commands =
poetry run mypy --disallow-untyped-calls --disallow-untyped-defs --disallow-incomplete-defs src
"""