-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (78 loc) · 1.98 KB
/
pyproject.toml
File metadata and controls
87 lines (78 loc) · 1.98 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
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8", "pytest-runner"]
build-backend = "setuptools.build_meta"
[project]
name = "mozanalysis"
dynamic = ["version"]
authors = [{ name = "Mozilla Corporation", email = "fx-data-dev@mozilla.org" }]
description = "A library for Mozilla experiments analysis"
requires-python = ">=3.11"
dependencies = [
"attrs",
"formulaic",
"google-cloud-bigquery",
"google-cloud-bigquery-storage",
"marginaleffects==0.1.4",
"matplotlib",
"mozilla-metric-config-parser>=2024.4.1",
"numpy",
"pandas",
"pyarrow",
"scipy",
"SecretStorage",
"statsmodels",
]
readme = "README.md"
[project.urls]
Repository = "https://github.com/mozilla/mozanalysis"
Documentation = "https://mozilla.github.io/mozanalysis/"
[project.optional-dependencies]
docs = ["Sphinx", "sphinx-autobuild", "sphinx-rtd-theme"]
testing = [
"mock",
"mypy",
"pandas-stubs",
"pytest",
"pytest-cov",
"pytest-ruff",
"pytest-timeout",
"scipy-stubs",
"ruff",
]
dev = ["build", "mozanalysis[testing]", "pip-tools", "tox", "twine"]
[tool.setuptools_scm]
[tool.ruff]
line-length = 88
exclude = [".git", "__pycache__"]
target-version = "py311"
[tool.ruff.lint]
ignore = ["E741", "RUF005"]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle
"F", # Pyflakes
"I", # isort
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"TC", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle
]
[tool.pytest.ini_options]
norecursedirs = "tests/helpers"
[[tool.mypy.overrides]]
module = [
"formulaic.*",
"marginaleffects.*",
"metric_config_parser.*",
"statsmodels.*",
"mozanalysis.*",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["mozanalysis.sizing.*", "mozanalysis.frequentist_stats.sample_size.*"]
ignore_errors = true