-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
107 lines (100 loc) · 2.12 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[project]
version = "1.0.0"
name = "f1_visualization"
description = "Transformed data and visualization tools for all Formula 1 races since 2018"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"fastf1 >= 3.5.3",
"pandas >= 2.0.0",
"matplotlib >= 3.7.0",
"numpy >= 2.0.0",
"seaborn >= 0.13.0",
"tomli >= 2.0.0",
"tomli-w >= 1.0.0",
"pre-commit >= 3.6.0",
"click >= 8.0.0",
"dash >= 2.9.0",
"dash-bootstrap-components >= 1.6.0",
]
[project.optional-dependencies]
performance = ["orjson >= 3.9.0"]
[build-system]
requires = ["setuptools >= 61.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["f1_visualization"]
[tool.ruff]
include = ["f1_visualization/*.py", "./*.py"]
line-length = 96
indent-width = 4
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.ruff.lint]
select = [
# Pyflakes
"F",
# pycodestyle warnings
"W",
# pycodestyle errors
"E",
# isort
"I",
# pep8-naming
"N",
# pydocstyle
"D1",
"D2",
"D3",
"D400",
"D401",
"D402",
"D403",
"D404",
# flake8-blind-except
"BLE",
# flake8-bugbear
"B",
# flake8-builtins
"A",
# flake8-comprehensions
"C4",
# flake8-datetimez
"DTZ",
# flake8-implicit-str-concat
"ISC",
# flake8-import-conventions
"ICN",
# flake8-logging
"LOG",
# flake8-logging-format
"G",
# flake8-print
"T20",
# flake8-quotes
"Q",
# flake8-raise
"RSE",
# flake8-return
"RET",
# flake8-simplify
"SIM",
# flake8-unused-arguments
"ARG",
# flake8-use-pathlib
"PTH",
# eradicate
"ERA",
# pandas-vet
"PD",
# Numpy
"NPY",
]
ignore = [
"D203", # conflict with preferred D211 (No blank lines allowed before class docstring)
"D212", # conflict with preferred D213 (Multi-line docstring summary should start at the second line)
"PD901", # df is a perfectly fine variable name
"PTH123", # all open calls already uses Pathlib for file handling
]