Skip to content

Commit ef7416f

Browse files
committed
ai(rules[AGENTS]): Clarify namespace imports for stdlib only
1 parent 981e6f4 commit ef7416f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ tests/test_cli.py
109109
## Coding Standards
110110

111111
- Include `from __future__ import annotations` at the top of Python modules.
112-
- Use namespace imports: `import typing as t`, `import logging`, etc.; avoid `from typing import ...`.
112+
- Use namespace imports for stdlib: `import typing as t`, `import logging`, etc.; third-party packages may use `from X import Y`.
113113
- Follow NumPy-style docstrings (see existing docstrings in `run` and pytest config requiring `pydocstyle` via ruff).
114114
- Ruff is the source of truth for lint rules; see `pyproject.toml` for enabled checks (E, F, I, UP, A, B, C4, COM, EM, Q, PTH, SIM, TRY, PERF, RUF, D, FA100).
115115
- Type checking is strict (`mypy --strict`); favor precise types and avoid `Any` unless necessary.

0 commit comments

Comments
 (0)