-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
52 lines (47 loc) · 1.36 KB
/
pyproject.toml
File metadata and controls
52 lines (47 loc) · 1.36 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
[project]
name = "benchmarks"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"intake-xarray",
"parcels @ file:///${PROJECT_ROOT}/Parcels",
"asv>=0.6.5",
"py-rattler==0.15.*",
]
[tool.setuptools.packages.find]
include = ["benchmarks*"]
[tool.ruff.lint]
select = [
"E", # Error
"F", # pyflakes
# "I", # isort #? Pre-commit in CI was wrestling with the local install
"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"