-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
124 lines (115 loc) · 3.61 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
[project]
name = "magali"
description = "Modeling and inversion of magnetic microscopy data"
dynamic = ["version"]
authors = [
{name="The Magali Developers", email="[email protected]"},
]
maintainers = [
{name = "Leonardo Uieda", email = "[email protected]"},
]
readme = "README.md"
license = {text = "BSD 3-Clause"}
keywords = ["magnetism", "microscopy", "geophysics", "paleomagnetism"]
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"scikit-image>=0.20",
"xarray>=2022.6.0",
"harmonica>=0.7",
"verde>=1.8.1",
"choclo>=0.2.0",
"ensaio>=0.7.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 = "magali/_version_generated.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",
"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
"_kernels.py" = ["ARG001"] # disable unused arguments in kernel files
"magali/tests/**" = [
"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"