-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (119 loc) · 4.14 KB
/
Copy pathpyproject.toml
File metadata and controls
133 lines (119 loc) · 4.14 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
128
129
130
131
132
133
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "seaborn"
description = "Statistical data visualization"
authors = [{name = "Michael Waskom", email = "mwaskom@gmail.com"}]
readme = "README.md"
license = {file = "LICENSE.md"}
dynamic = ["version"]
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Multimedia :: Graphics",
"Operating System :: OS Independent",
"Framework :: Matplotlib",
]
requires-python = ">=3.10"
dependencies = [
"numpy>=2.0",
"pandas>=2.2",
"matplotlib>=3.9",
]
[project.optional-dependencies]
stats = [
"scipy>=1.14",
"statsmodels>=0.14.3",
]
[dependency-groups]
test = [
"pytest==9.1.1",
"pytest-cov==7.1.0",
"pytest-xdist==3.8.0",
]
lint = [
"ruff==0.15.20",
]
# Type checking runs on a single modern Python (see the typecheck CI job): the
# current pandas/scipy stubs require >=3.12, and running with the scientific
# stack installed lets ty resolve pandas/numpy/matplotlib/scipy for real.
typecheck = [
"ty==0.0.56",
# Markers keep the universal lock resolvable across requires-python (>=3.10);
# these stubs are only installed (and type checking is only run) on >=3.12.
"pandas-stubs==3.0.3.260530 ; python_version >= '3.12'",
"scipy-stubs==1.18.0.0 ; python_version >= '3.12'",
]
docs = [
"numpydoc==1.6.0",
"nbconvert==7.17.1",
"ipykernel==7.3.0",
"sphinx==5.3.0", # Important: do not adjust this pin
"sphinx-copybutton==0.5.2",
"sphinx-issues==5.0.1",
"sphinx-design==0.6.0",
"pyyaml==6.0.3",
"pydata_sphinx_theme==0.10.0rc2", # Important: do not adjust this pin
]
dev = [
{include-group = "test"},
{include-group = "lint"},
"pre-commit==4.6.0",
"flit==3.12.0",
]
[tool.uv]
default-groups = ["dev", "docs"]
[project.urls]
Source = "https://github.com/mwaskom/seaborn"
Docs = "http://seaborn.pydata.org"
[tool.flit.sdist]
exclude = ["doc/_static/*.svg"]
[tool.pytest.ini_options]
filterwarnings = [
"ignore:The --rsyncdir command line argument and rsyncdirs config variable are deprecated.:DeprecationWarning",
"ignore:\\s*Pyarrow will become a required dependency of pandas:DeprecationWarning",
"ignore:datetime.datetime.utcfromtimestamp\\(\\) is deprecated:DeprecationWarning",
]
[tool.ruff]
line-length = 88
extend-exclude = ["seaborn/cm.py", "seaborn/external"]
[tool.ruff.lint]
select = ["E", "W", "F"]
ignore = ["E741", "F522"]
[tool.ty.environment]
python = "./.venv"
python-version = "3.13"
[tool.ty.src]
include = ["seaborn/_core", "seaborn/_marks", "seaborn/_stats"]
[tool.ty.rules]
# A number of ty checks are ignored because the code was originally written using mypy
# with much weaker upstream typing (i.e. in numpy / pandas / matplotlib)
# Gradually address these and remove the rule ignores over time.
possibly-missing-submodule = "ignore" # `import matplotlib as mpl` -> `mpl.text.Text` idiom
invalid-method-override = "ignore" # intentional Mark._plot / Scale._get_* signatures
invalid-argument-type = "ignore" # matplotlib/pandas/numpy arg types stricter than usage
unresolved-attribute = "ignore" # attributes on `Axis | None` and numpy unions
not-subscriptable = "ignore" # subscripting numpy `ArrayLike` unions
not-iterable = "ignore" # iterating numpy `ArrayLike` unions
unsupported-operator = "ignore" # arithmetic on pandas/numpy/scipy unions
invalid-assignment = "ignore" # assigning to matplotlib-typed slots
no-matching-overload = "ignore" # matplotlib overloaded APIs
call-non-callable = "ignore" # object-typed matplotlib slots
call-top-callable = "ignore" # numpy callables with unknown signatures
invalid-return-type = "ignore" # return values widened by stub unions
[tool.coverage.run]
omit = [
"seaborn/widgets.py",
"seaborn/external/*",
"seaborn/colors/*",
"seaborn/cm.py",
"seaborn/conftest.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
]