-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
71 lines (61 loc) · 1.44 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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "qcore"
version = "1.2"
description = "QuakeCoRE Library"
authors = [
{name = "QuakeCoRE" },
]
readme = "README.md"
requires-python = ">=3.9"
dynamic = ["dependencies"]
[tool.setuptools.package-dir]
qcore = "qcore"
[tool.setuptools.package-data]
"qcore" = ["configs/*.json", "data/*", "data/*/*", "data/*/*/*", "registry/registry.txt"]
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
[tool.ruff.lint]
extend-select = [
# isort imports
"I",
# Use r'\s+' rather than '\s+'
"W605",
# All the naming errors, like using camel case for function names.
"N",
# Missing docstrings in classes, methods, and functions
"D101",
"D102",
"D103",
"D105",
"D107",
# Use f-string instead of a format call
"UP032",
# Standard library import is deprecated
"UP035",
# Missing function argument type-annotation
"ANN001",
# Using except without specifying an exception type to catch
"BLE001"
]
ignore = ["D104"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.isort]
known-first-party = [
"source_modelling",
"workflow",
"pygmt_helper",
"qcore",
"empirical",
"nshmdb",
"IM_calculation",
"mera"
]
[tool.ruff.lint.per-file-ignores]
# Ignore no docstring in __init__.py
"__init__.py" = ["D104"]
# Ignore docstring errors in tests folder
"tests/**.py" = ["D"]