-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
66 lines (57 loc) · 1.67 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
[tool.poetry]
name = "TPFA-ResSim"
version = "0.1.1"
description = """Toy petroleum reservoir simulator using TPFA."""
authors = ["patnr <[email protected]>"]
license = "MIT"
readme = "README.md"
packages = [{include = "TPFA_ResSim"}]
[tool.poetry.dependencies]
# Try to keep compatible with Colab's environment, w/o needed many re-installs
python = ">=3.9,<3.12"
matplotlib = "~=3.7"
scipy = "~=1.10"
tqdm = "~=4.65"
struct-tools = "^0.2.7"
mpl-tools = "^0.4.0"
[tool.poetry.group.dev.dependencies]
ipython = "*"
pre-commit = "^2.20.0"
pdbpp = "^0.10.3"
pytest = "^7.1.3"
flakeheaven = "*"
ipdb = "^0.13.9"
pdoc = "^12.2.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
#############
# Linting #
#############
[tool.autopep8]
max_line_length = 88
ignore = "W6"
[tool.flakeheaven.plugins]
pyflakes = ["+*",
"-F401", # imported but unused
]
pycodestyle = ["+*",
"-E24", "-W503", "-E123", "-E226", "-E704", "-E121", "-W504", "-E126", # Defaults
"-E221", # Allow operator alignment
"-E251", # Allow operator alignment for dicts
"-E266", # Allow ## block comments
# "-E201", "-E202", "-E203", "-E241", "-E231", # leave arrays as printed
"-E201", "-E202", "-E241", # leave arrays as printed (less)
"-E302", # "-E301", dont put spaces between functions
"-E303", # Allow 2 blank lines w/o func/class delimiters
"-E305", # 2 blank lines after func/class
"-E731", # don't assign lambda
]
[tool.flakeheaven.exceptions."tests/test_fig6.py"]
pycodestyle = ["-E225"]
#############
# Testing #
#############
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "tests --doctest-modules TPFA_ResSim"