-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
93 lines (85 loc) · 2.63 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
[build-system]
requires = ["setuptools >= 61.0", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "plasticparcels"
description = "Package for simulating the transport and dispersion of plastics in the ocean."
readme = "README.md"
dynamic = ["version"]
authors = [{ name = "oceanparcels.org team" }]
requires-python = ">=3.8"
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Topic :: Education",
"Intended Audience :: Education",
]
dependencies = [
"parcels >= 3.0.2, < 4",
"shapely",
"geopandas",
"pytest",
]
[project.urls]
homepage = "https://oceanparcels.org/"
repository = "https://github.com/OceanParcels/plasticparcels/"
tracker = "https://github.com/OceanParcels/plasticparcels/issues"
[tool.setuptools]
packages = ["plasticparcels"]
[tool.setuptools_scm]
write_to = "plasticparcels/_version_setup.py"
local_scheme = "no-local-version"
[tool.ruff.lint]
select = [
"E", # Error
"F", # pyflakes
# "I", # isort
"B", # Bugbear
# "UP", # pyupgrade
"LOG", # logging
"ICN", # import conventions
"G", # logging-format
"RUF", # ruff
"D", # pydocstyle
"DOC", # pydoclint
]
exclude = [
"docs/*",
"plasticparcels/scripts/*",
]
# If updating to use a formatter, look at https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules for rules to add to ignore
ignore = [
# line too long (82 > 79 characters)
"E501",
# ‘from module import *’ used; unable to detect undefined names
"F403",
# Mutable class attributes should be annotated with `typing.ClassVar`
"RUF012",
# Consider `(slice(2), *block)` instead of concatenation
"RUF005",
# Prefer `next(iter(variable.items()))` over single element slice
"RUF015",
# do not use bare except, specify exception instead
"E722",
# First line should be in imperative mood (requires writing of summaries)
"D401",
# 1 blank line required between summary line and description (requires writing of summaries)
"D205",
# Loop control variable `i` not used within loop body
"B007",
# Remove unused `noqa` directive
"RUF100",
# Ignore public module docstring
"D100",
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"