You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,3 +37,13 @@
37
37
-**Formulas**: Use patsy for formula parsing (via `dmatrices()`)
38
38
-**Custom exceptions**: Use project-specific exceptions from `causalpy.custom_exceptions`: `FormulaException`, `DataException`, `BadIndexException`
39
39
-**File organization**: Experiments in `causalpy/experiments/`, PyMC models in `causalpy/pymc_models.py`, scikit-learn models in `causalpy/skl_models.py`
40
+
41
+
## Type Checking
42
+
43
+
-**Tool**: MyPy
44
+
-**Configuration**: Integrated as a pre-commit hook.
45
+
-**Scope**: Checks Python files within the `causalpy/` directory.
46
+
-**Settings**:
47
+
-`ignore-missing-imports`: Enabled to allow for gradual adoption of type hints without requiring all third-party libraries to have stubs.
48
+
-`additional_dependencies`: Includes `numpy` and `pandas-stubs` to provide type information for these libraries.
49
+
-**Execution**: Run automatically via `pre-commit run --all-files` or on commit.
0 commit comments