-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy pathpyproject.toml
More file actions
161 lines (148 loc) · 4.59 KB
/
pyproject.toml
File metadata and controls
161 lines (148 loc) · 4.59 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
[project]
name = "harmonica"
description = "Forward modeling, inversion, and processing gravity and magnetic data"
dynamic = ["version"]
authors = [
{name="The Harmonica Developers", email="fatiandoaterra@protonmail.com"},
]
maintainers = [
{name = "Santiago Soler", email = "santisoler@fastmail.com"},
{name = "Matthew Tankersley", email = "matt.d.tankersley@gmail.com"}
]
readme = "README.md"
license = "BSD-3-Clause"
license-files = ["LICENSE.txt", "AUTHORS.md"]
keywords = ["geoscience", "geophysics"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"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.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.10"
dependencies = [
"numpy >= 1.23",
"pandas >= 1.4",
"scipy >= 1.9",
"scikit-learn >= 1.1",
"numba >= 0.57",
"xarray >= 2022.03",
"verde >= 1.8.1",
"xrft >= 1.0",
"choclo >= 0.1",
"boule >= 0.6.0"
]
[project.urls]
"Documentation" = "https://www.fatiando.org/harmonica"
"Changelog" = "https://www.fatiando.org/harmonica/latest/changes.html"
"Bug Tracker" = "https://github.com/fatiando/harmonica/issues"
"Source Code" = "https://github.com/fatiando/harmonica"
[project.optional-dependencies]
visualizations = ["pyvista>=0.27", "vtk>=9"]
numba_progress = ["numba_progress"]
[build-system]
requires = ["setuptools>=61", "wheel", "setuptools_scm[toml]>=8.0.3"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
version_scheme = "post-release"
local_scheme = "node-and-date"
version_file = "src/harmonica/_version.py"
[tool.pytest.ini_options]
doctest_optionflags = "NUMBER"
markers = [
"use_numba: mark test functions that call Numba jitted functions"
]
[tool.burocrata]
notice = '''
# Copyright (c) 2018 The Harmonica 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",
"doc/gallery",
"src/harmonica/_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
"FIX", # flake8-fixme
"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
"C420", # Replacing dict comprehension with `dict.fromkeys` is ugly
]
[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
"test/**" = [
"T20", # allow print statements in tests
"D", # ignore pydocstyle warnings in tests
"RUF012", # ignore undecorated mutable class attributes
]
"doc/conf.py" = ["D"] # ignore pydocstyle warnings in Sphinx config
"doc/**" = [
"D", # ignore pydocstyle warnings in docs
"T20", # allow print statements in docs
"B018", # allow "useless expressions" in docs (display in notebooks)
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.coverage.run]
source = ["harmonica"]
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/harmonica",
"*/harmonica",
"*\\harmonica",
]
[tool.coverage.report]
show_missing = true