Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
127 lines (124 loc) · 2.45 KB
/
Copy pathpyproject.toml
File metadata and controls
127 lines (124 loc) · 2.45 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
[project]
name = "auv-python"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
# VS Code's debugpy Cython extension handling in Python 3.13 is broken - mpm 9 June 2025
requires-python = "==3.12.*"
dependencies = [
"aiofiles>=24.1.0",
"aiohttp>=3.12.11",
"cf-xarray>=0.10.5",
"cmocean>=4.0.3",
"coards>=1.0.5",
"contextily>=1.7.0",
"dask>=2024.1.0",
"datashader>=0.18.1",
"defusedxml>=0.7.1",
"gitpython>=3.1.44",
"python-dotenv>=1.0.0",
"gsw>=3.6.20",
"hvplot>=0.11.3",
"ipympl>=0.9.7",
"jupyter>=1.1.1",
"jupyter-bokeh>=4.0.5",
"lzstring>=1.0.4",
"netcdf4>=1.7.2",
"numpy>=2.2.6",
"pandas>=2.2.0",
"pooch>=1.8.2",
"pyarrow>=20.0.0",
"pygmt==0.16",
"pyproj>=3.7.1",
"pysolar>=0.13",
"requests>=2.31.0",
"rolling>=0.5.0",
"seawater>=3.3.5",
"statsmodels>=0.14.4",
]
[dependency-groups]
dev = [
"pytest>=8.4.0",
"pre-commit>=3.7.0",
"ruff>=0.4.4",
]
[tool.ruff]
target-version = "py312"
line-length = 100
# Exclude a variety of commonly ignored directories and things in expd we don't want checked
extend-exclude = [
"notebooks/*.ipynb",
]
[tool.ruff.lint]
select = [
"F",
"E",
"W",
"C90",
"I",
"N",
"UP",
"YTT",
# "ANN", # flake8-annotations: we should support this in the future but 100+ errors atm
"ASYNC",
"S",
"BLE",
"FBT",
"B",
"A",
"COM",
"C4",
"DTZ",
"T10",
"DJ",
"EM",
"EXE",
"FA",
"ICN",
"G",
'INP',
'PIE',
"T20",
'PYI',
'PT',
"Q",
"RSE",
"RET",
"SLF",
"SLOT",
"SIM",
"TID",
"INT",
# "ARG", # Unused function argument
"PTH",
"ERA",
"PD",
"PGH",
"PL",
"TRY",
"FLY",
# "NPY",
# "AIR",
"PERF",
# "FURB",
# "LOG",
# "RUF",
]
ignore = [
"COM812", # Missing-trailing-comma
"ERA001", # Commented-out code
"N801", # Class name should use CapWords convention
"N802", # Function name should be lowercase
"N806", # Variable in function should be lowercase
"N818", # Exception name should be named with an Error suffix
"SLF001", # Private member accessed
]
[tool.ruff.lint.per-file-ignores]
"src/data/dorado_info.py" = ["E501"]
# Legacy module names that don't follow PEP 8 naming convention
"src/data/AUV.py" = ["N999"]
"src/data/BLFilter.py" = ["N999"]
"src/data/lopcMEP.py" = ["N999"]
"src/data/lopcToNetCDF.py" = ["N999"]
"src/data/process_Dorado389.py" = ["N999"]
"src/data/usblToNetCDF.py" = ["N999"]