-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
65 lines (56 loc) · 1.65 KB
/
pyproject.toml
File metadata and controls
65 lines (56 loc) · 1.65 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
[build-system]
requires = ["setuptools>=61", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "parcels_benchmarks"
version = "0.1.0"
description = "Helper utilities for Parcels benchmarks"
requires-python = ">=3.10"
authors = [{ name = "Parcels team" }]
dependencies = [
"xarray",
"pooch",
"typer>=0.9",
]
# This creates an installable CLI command: `benchmark-setup ...`
[project.scripts]
benchmark-setup = "parcels_benchmarks.benchmark_setup:main"
[tool.setuptools.packages.find]
where = ["."]
include = ["parcels_benchmarks"]
# Include the benchmarks manifest in the wheel/sdist
[tool.setuptools.package-data]
parcels_benchmarks = ["*.json"]
[tool.ruff.lint]
select = [
"E", # Error
"F", # pyflakes
"I", # isort
"B", # Bugbear
"UP", # pyupgrade
"LOG", # logging
"ICN", # import conventions
"G", # logging-format
"RUF", # ruff
"ISC001", # single-line-implicit-string-concatenation
"TID", # flake8-tidy-imports
"T100", # Checks for the presence of debugger calls and imports
]
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",
# Use `X | Y` in `isinstance` (see https://github.com/home-assistant/core/issues/123850)
"UP038",
"RUF046", # Value being cast to `int` is already an integer
"B008", # Do not perform function call in argument defaults
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"