-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
122 lines (106 loc) · 2.33 KB
/
pyproject.toml
File metadata and controls
122 lines (106 loc) · 2.33 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
[build-system]
requires = ["setuptools>=80", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "mplplots"
version = "0.1.0"
description = "Visual styling helpers for Matplotlib/Seaborn"
authors = [{ name = "Zhaoyang Li", email = "zhaoyangli@stanford.edu" }]
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">=3.12"
dependencies = ["matplotlib", "numpy", "pandas", "scipy", "seaborn"]
[project.optional-dependencies]
dev = [
"pre-commit",
"pytest",
"pytest-cov",
"pytest-env",
"pytest-timeout",
"pytest-xdist",
"ruff",
]
[tool.setuptools]
include-package-data = true
package-dir = { "" = "src" }
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
mplplots = ["styles/*.mplstyle"]
[tool.ruff]
target-version = "py312"
preview = true
src = ["src"]
line-length = 100
force-exclude = true
extend-exclude = [
".git",
".hg",
".mypy_cache",
".pytest_cache",
".ruff_cache",
".svn",
".tox",
".venv",
"_build",
"buck-out",
"build",
"dist",
]
[tool.ruff.lint]
select = [
"A",
"ARG",
"B",
"C4",
"C90",
"E",
"F",
"I",
"NPY",
"PD",
"PERF",
"PLE",
"RUF",
"SIM",
"TID",
"UP",
]
extend-select = ["D", "W", "PLW"]
ignore = ["B905", "E203", "E501", "E741", "UP037"]
explicit-preview-rules = true
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.lint.isort]
known-first-party = ["mplplots"]
[tool.ruff.lint.mccabe]
max-complexity = 12
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"*.ipynb" = ["F401", "RUF059"]
"tests/**/*.py" = ["D"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true
[tool.mypy]
python_version = "3.12"
pretty = true
no_implicit_optional = true
show_error_codes = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_ignores = false
namespace_packages = false
enable_incomplete_feature = ["Unpack"]
disable_error_code = ["import-not-found", "import-untyped", "no-any-return"]
[[tool.mypy.overrides]]
module = ["matplotlib.*", "numpy.*", "pandas.*", "scipy.*", "seaborn.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
addopts = "-v -s"
testpaths = ["tests"]
env = ["TQDM_DISABLE=1"]