Skip to content

pyproject: sync with mesa/mesa and ensure tests run against GitHub repo#370

Open
annapurna-gupta wants to merge 3 commits intomesa:mainfrom
annapurna-gupta:sync-pyproject-with-mesa
Open

pyproject: sync with mesa/mesa and ensure tests run against GitHub repo#370
annapurna-gupta wants to merge 3 commits intomesa:mainfrom
annapurna-gupta:sync-pyproject-with-mesa

Conversation

@annapurna-gupta
Copy link
Copy Markdown
Contributor

@annapurna-gupta annapurna-gupta commented Mar 9, 2026

Closes mesa/mesa#2782 (pyproject sync checklist item)

Changes:

  • Add allow-direct-references = true for hatchling
  • Sync ruff target-version to py312
  • Add codespell section
  • Add extend-exclude = ["build"] to ruff
  • Install mesa from GitHub main in all test dependency groups

@annapurna-gupta annapurna-gupta force-pushed the sync-pyproject-with-mesa branch from 41fa4ed to d3a2a29 Compare March 9, 2026 18:05
Copy link
Copy Markdown
Member

@EwoutH EwoutH left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. Could you explain all changes in the PR description?

I think most of this makes sense. @quaquel, do you see anything weird?

@annapurna-gupta
Copy link
Copy Markdown
Contributor Author

Thanks for the PR. Could you explain all changes in the PR description?

I think most of this makes sense. @quaquel, do you see anything weird?

Thanks for the review!

  1. Added allow-direct-references = true so that dependencies specified via Git URLs can be used.
  2. Sync Ruff target-version to py312 — synced from mesa/mesa main so that linting rules stay consistent.
  3. Add ignore-words-list for codespell — synced from mesa/mesa main to ensure consistent spell-check behavior.
  4. Add extend-exclude = ["build"] — tells Ruff to skip the auto-generated build/ folder so it only checks actual source code.
  5. Install Mesa from GitHub main in all test dependency groups — this ensures tests run against the latest Mesa development version rather than a potentially outdated PyPI release.

@annapurna-gupta annapurna-gupta requested a review from EwoutH March 16, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PyCon Sprints - "Hooray for Examples"

2 participants