-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
DOC: document multi-phase work and release procedure; add AGENTS.md #941
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mmcky
wants to merge
2
commits into
main
Choose a base branch
from
docs/multiphase-procedures
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+62
−153
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # Agent instructions for QuantEcon.py | ||
|
|
||
| Guidance for AI coding agents working in this repository. Human contributors should start from | ||
| [CONTRIBUTING.md](CONTRIBUTING.md) and the rendered guide it links to; everything there applies to | ||
| agents too — this file only adds the essentials and repo-specific conventions. | ||
|
|
||
| ## Quickstart | ||
|
|
||
| - Environment: `conda env create -f environment.yml` (creates `qe`), activate it, then | ||
| `flit install --symlink`. Environment creation takes several minutes — let it finish. | ||
| - Tests: `pytest quantecon` (bare `pytest` also works — `pytest.ini` scopes collection to | ||
| `quantecon/`). The full suite takes minutes; run `pytest quantecon/<module>/tests/...` while | ||
| iterating. Much of the library is Numba-jitted, so the first call of anything compiled is slow — | ||
| don't mistake JIT compilation for a hang. Slow tests can be skipped with `-m "not slow"`. | ||
| - Lint (same selects as CI): `flake8 --select=F401,F405,E231 quantecon` | ||
| - The `ci/` directory holds CI-only assets (for example the WASM smoke suite in `ci/wasm/`). They | ||
| are not part of the shipped package and are run by explicit path in workflows — keep imports of | ||
| CI-only dependencies (such as `playwright`) out of anything bare `pytest` collects. | ||
|
|
||
| ## Working procedure | ||
|
|
||
| - Make small, self-contained pull requests against `main`; each must be green in CI and safe to | ||
| release on its own. Do not create long-lived feature branches — multi-phase work merges to `main` | ||
| incrementally. See "Multi-phase projects and releases" in | ||
| [docs/source/contributing.rst](docs/source/contributing.rst) for the full procedure and its | ||
| rationale. | ||
| - Keep `main` releasable: publishing to PyPI is automated on `v*` tags, so anything merged can ship | ||
| at any time. Do not change default behaviour of library functions unless that is the reviewed | ||
| purpose of the change. | ||
| - Larger campaigns are tracked as an umbrella issue plus sub-issues under a milestone; read the | ||
| umbrella issue before working on a sub-issue, and record findings in the issues — they are the | ||
| durable record. | ||
| - Release notes live on [GitHub releases](https://github.com/QuantEcon/QuantEcon.py/releases); | ||
| `CHANGELOG.md` only points there. Do not add per-PR changelog entries. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.