Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (122 loc) · 3.64 KB
/
Copy pathpyproject.toml
File metadata and controls
133 lines (122 loc) · 3.64 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
[project]
name = "bordado"
description = "Create, manipulate, and split geographic coordinates"
dynamic = ["version"]
authors = [
{name="The Bordado Developers", email="fatiandoaterra@protonmail.com"},
]
maintainers = [
{name = "Leonardo Uieda", email = "leo@uieda.com"}
]
readme = "README.md"
license = "BSD-3-Clause"
keywords = ["geoscience", "geophysics"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering",
"Topic :: Software Development :: Libraries",
]
requires-python = ">=3.9"
dependencies = [
"numpy>=1.23",
"scipy>=1.8",
]
[project.urls]
"Documentation" = "https://www.fatiando.org/bordado"
"Changelog" = "https://www.fatiando.org/bordado/latest/changes.html"
"Bug Tracker" = "https://github.com/fatiando/bordado/issues"
"Source Code" = "https://github.com/fatiando/bordado"
[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 = "no-local-version"
write_to = "src/bordado/_version.py"
[tool.burocrata]
notice = '''
# Copyright (c) 2025 The Bordado 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/bordado/_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 = ["bordado"]
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/bordado",
"*/bordado",
"*\\bordado",
]
[tool.coverage.report]
show_missing = true