-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
153 lines (138 loc) · 4.14 KB
/
Copy pathpyproject.toml
File metadata and controls
153 lines (138 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[project]
name = "feedzai-altair-theme"
version = "2.1.0"
description = "Feedzai's theme for Altair charts."
readme = "README.md"
requires-python = ">=3.10"
license = "Apache-2.0"
license-files = ["LICENSE"]
authors = [{ name = "Feedzai", email = "oss-licenses@feedzai.com" }]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Utilities",
"Typing :: Typed",
]
keywords = ["altair", "theme", "data", "visualization"]
dependencies = ["altair>=5.5.0"]
# Group (Altair 5): https://github.com/vega/altair/blob/v5.5.0/altair/vegalite/v5/theme.py#L102
[project.entry-points.'altair.vegalite.v5.theme']
feedzai = "feedzai_altair_theme.theme:feedzai"
# Group (Altair 6): https://github.com/vega/altair/blob/v6.0.0/altair/vegalite/v6/theme.py#L102
[project.entry-points.'altair.vegalite.v6.theme']
feedzai = "feedzai_altair_theme.theme:feedzai"
[project.urls]
Changelog = "https://github.com/feedzai/feedzai-altair-theme/blob/master/CHANGELOG.md"
Issues = "https://github.com/feedzai/feedzai-altair-theme/issues"
Source = "https://github.com/feedzai/feedzai-altair-theme"
[dependency-groups]
dev = [
"jupyterlab==4.1.8",
"mypy==1.20.1",
"pytest==9.0.2",
"ruff==0.15.11",
"vega-datasets==0.9.0",
]
[build-system]
requires = ["uv_build==0.8.12"]
build-backend = "uv_build"
[tool.mypy]
files = "src/feedzai_altair_theme"
python_version = "3.10"
allow_redefinition_new = true
check_untyped_defs = true
disallow_any_generics = true
disallow_any_unimported = true
disallow_incomplete_defs = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
error_summary = true
exclude_gitignore = true
extra_checks = true
follow_imports = "normal"
local_partial_types = true
no_implicit_reexport = true
pretty = true
show_column_numbers = true
show_error_context = true
strict_bytes = true
strict_equality = true
strict_equality_for_none = true
warn_incomplete_stub = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_ignores = true
enable_error_code = [
"deprecated",
"exhaustive-match",
"explicit-override",
"ignore-without-code",
"mutable-override",
"possibly-undefined",
"redundant-expr",
"redundant-self",
"truthy-bool",
"truthy-iterable",
"unimported-reveal",
"unused-awaitable",
]
incremental = true
sqlite_cache = true
# "The warn_unused_configs flag may be useful to debug misspelled section names.":
# - https://github.com/python/mypy/blob/v1.20.1/docs/source/config_file.rst#config-file-format
# - https://github.com/python/mypy/blob/v1.20.1/docs/source/config_file.rst#miscellaneous
# incremental = false
# warn_unused_configs = true
[tool.ruff]
required-version = "0.15.11"
target-version = "py310"
output-format = "full"
preview = false
line-length = 120
[tool.ruff.lint]
select = ["ALL"]
fixable = ["ALL"]
ignore = [
# https://github.com/astral-sh/ruff/blob/0.15.11/docs/formatter.md#conflicting-lint-rules (w/ formatter)
# https://docs.astral.sh/ruff/settings/#lint_flake8-implicit-str-concat_allow-multiline
"W191",
"E111",
"E114",
"E117",
"D206",
"D300",
"Q000",
"Q001",
"Q002",
"Q003",
"Q004",
"COM812",
"COM819",
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.ruff.lint.per-file-ignores]
"demo.ipynb" = ["PLC0415"]
"tests/*" = ["INP001", "S101"]
[tool.pytest]
addopts = ["--import-mode=importlib"]
testpaths = ["tests"]