-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
88 lines (82 loc) · 2.4 KB
/
pyproject.toml
File metadata and controls
88 lines (82 loc) · 2.4 KB
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
[project]
name = "inversion_ideas"
dynamic = ["version"]
description = "New design ideas for inversion framework."
readme = "README.md"
license = "MIT"
requires-python = ">=3.11"
dependencies = [
"numpy>=2.0.0",
"scipy",
"rich",
"simpeg==0.25.0",
"pymatsolver==0.4.0",
"discretize==0.12.0",
]
[build-system]
requires = ["setuptools>=61", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
version_scheme = "post-release"
local_scheme = "no-local-version"
write_to = "src/inversion_ideas/_version.py"
[tool.ruff]
line-length = 88
exclude = [
"src/inversion_ideas/_version.py",
]
[tool.ruff.lint]
extend-select = [
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"EM", # flake8-errmsg
"EXE", # flake8-executable
"FURB", # refurb
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"NPY", # numPy specific rules
"PD", # pandas-vet
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"PYI", # flake8-pyi
"RET", # flake8-return
"RUF", # ruff-specific
"SIM", # flake8-simplify
"T20", # flake8-print
"UP", # pyupgrade
"YTT", # flake8-2020
]
ignore = [
"ISC001", # Conflicts with formatter
"PLR09", # Too many <...>
"PLR2004", # Magic value used in comparison
"RET504", # Allow variable assignment only for return
"PT001", # Conventions for parenthesis on pytest.fixture
"D200", # Allow single line docstrings in their own line
# Temporary ignores:
"D102", # Allow no docstrings in public methods
"D105", # Allow no docstrings in magic methods
"D414", # Allow empty sections in docstrings
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401", # Disable unused-imports errors on __init__.py
]
"test/**" = [
"D", # Ignore pydocstyle warnings in tests
"T20", # Allow print statements in tests
]
"notebooks/**.ipynb" = [
"B018", # Allow unused expression (prints on notebooks)
"D", # Ignore pydocstyle warnings in notebooks
"PD901", # Allow to use df as variables for pandas DataFrames
"T20", # Allow print statements in notebooks
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"