forked from py-econometrics/pyfixest
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
144 lines (128 loc) · 3.44 KB
/
pyproject.toml
File metadata and controls
144 lines (128 loc) · 3.44 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
[project]
name = "pyfixest"
version = "0.40.1"
description = "Fast high dimensional fixed effect estimation following syntax of the fixest R package."
authors = [
{ name = "Alexander Fischer", email = "alexander-fischer1801@t-online.de" },
{ name = "Styfen Schär" },
]
readme = "README.md"
requires-python = ">=3.9"
license = { text = "MIT" }
dependencies = [
"scipy>=1.6,<1.16",
"formulaic>=1.1.0",
"pandas>=1.1.0",
"numba>=0.58.0",
"seaborn>=0.13.2",
"tabulate>=0.9.0",
"tqdm>=4.0.0",
"maketables>=0.1.0",
"numpy>=1.25.2",
"narwhals>=1.13.3",
"joblib>=1.4.2,<2",
]
[project.optional-dependencies]
jax = [
"jax>=0.4.15",
"jaxlib>=0.4.15",
]
plots = [
"lets-plot>=4.0.0",
]
[build-system]
requires = ["maturin>=1.8,<2.0"]
build-backend = "maturin"
[tool.maturin]
module-name = "pyfixest.core._core_impl"
features = ["pyo3/extension-module"]
python-source = "."
[tool.pytest.ini_options]
addopts = [
"-v",
"--strict-markers",
"--strict-config",
"--cov=pyfixest",
"--cov-report=term-missing",
"--color=yes",
]
markers = [
"against_r_core: mark test to be part of the test suite that depends on conda available R modules",
"against_r_extended: mark test to be part of the test suite that depends on other R modules",
"extended: mark test to be part of the extended test suite",
"plots: marks all tests for plotting functionality, tests only triggered when using tag in github issue",
"hac: marks all tests for HAC SEs"
]
filterwarnings = [
"ignore::FutureWarning:rpy2",
"ignore::DeprecationWarning:rpy2",
]
[tool.ruff]
line-length = 88
fix = true
# Assume Python 3.9
target-version = "py39"
[tool.ruff.lint]
# docs: https://docs.astral.sh/ruff/rules/
select = [
"B", # bugbear
"F", # Pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"I", # isort
"D", # flake8-docstrings
"UP", # pyupgrade
"SIM", # flake8-simplify
"RUF", # ruff,
"TRY", # tryceratops
]
ignore = [
# do not enable if formatting
# docs: https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"B028", # No explicit `stacklevel` keyword argument found
"B904", # Better exception handling
"W191", # tab indentation
"E111", # indentation
"E114", # indentation
"E117", # over indented
"D206", # indent with spaces
"D300", # triple single quotes
"E501", # line length regulated by formatter
"D105", # missing docstring in magic method
"D100", # missing docstring in public module
"D104", # missing docstring in public package
"SIM110", # Use all instead of `for` loop
"TRY003", # Avoid specifying long messages outside the exception class
"D205", # 1 blank line required between summary line and description
"W505", # Doc line too long
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["D100", "D103"]
"pyfixest/multcomp.py" = ["D103"]
"pyfixest/summarize.py" = ["D103"]
"pyfixest/visualize.py" = ["D103"]
"scripts/*.py" = ["D103"]
"benchmarks/gpu_big_benchmarks.py" = ["E402", "F821", "RUF059", "B018", "TRY300"]
[tool.ruff.lint.pycodestyle]
max-doc-length = 88
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 88
[tool.mypy]
[[tool.mypy.overrides]]
module = [
"pandas.*",
"numpy.*",
"scipy.*",
"numba.*",
"lets_plot.*",
"formulaic.*",
"wildboottest.*",
"tabulate.*",
"joblib.*",
"narwhals.*",
"tqdm.*",
]
ignore_missing_imports = true