Skip to content

Commit f918e84

Browse files
committed
add info to AGENTG.md
1 parent 14f0c6d commit f918e84

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

AGENTS.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,13 @@
3737
- **Formulas**: Use patsy for formula parsing (via `dmatrices()`)
3838
- **Custom exceptions**: Use project-specific exceptions from `causalpy.custom_exceptions`: `FormulaException`, `DataException`, `BadIndexException`
3939
- **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

Comments
 (0)