-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
142 lines (130 loc) · 3.81 KB
/
pyproject.toml
File metadata and controls
142 lines (130 loc) · 3.81 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
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
140
141
142
[project]
name = "magali"
description = "Modeling and inversion of magnetic microscopy data"
dynamic = ["version"]
authors = [
{name="The Magali Developers", email="fatiandoaterra@protonmail.com"},
]
maintainers = [
{name = "Leonardo Uieda", email = "leo@uieda.com"},
]
readme = "README.md"
license = "BSD-3-Clause"
keywords = ["magnetism", "microscopy", "geophysics", "paleomagnetism"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Natural Language :: English",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.9"
dependencies = [
"numpy>=1.23",
"scipy>=1.9",
"numba>=0.58",
"scikit-image>=0.20",
"xarray>=2022.6.0,!=2025.06.0",
"harmonica>=0.7",
"verde>=1.8.1",
"choclo>=0.2.0",
]
[project.urls]
"Documentation" = "https://www.fatiando.org/magali"
"Changelog" = "https://www.fatiando.org/magali/latest/changes.html"
"Bug Tracker" = "https://github.com/fatiando/magali/issues"
"Source Code" = "https://github.com/fatiando/magali"
[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/magali/_version.py"
# Make sure isort and Black are compatible
[tool.isort]
profile = "black"
multi_line_output = 3
[tool.burocrata]
notice = '''
# Copyright (c) 2024 The Magali Developers.
# Distributed under the terms of the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
#
# This code is part of the Fatiando a Terra project (https://www.fatiando.org)
#'''
[tool.ruff]
line-length = 88
exclude = [
"doc/_build",
"src/magali/_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
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # disable unused-imports errors on __init__.py
"test/**" = [
"T20", # allow print statements in tests
"D", # ignore pydocstyle warnings in tests
]
"doc/conf.py" = ["D"] # ignore pydocstyle warnings in Sphinx config
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.coverage.run]
source = ["magali"]
omit = [
"**/_version.py",
"**/__init__.py",
]
branch = true
# Needed to combine coverage data from multiple OSs on CI
relative_files = true
[tool.coverage.paths]
source = [
"src/magali",
"*/magali",
"*\\magali",
]
[tool.coverage.report]
show_missing = true