Skip to content

Instantly share code, notes, and snippets.

@robertknight
Created July 17, 2025 11:29
Show Gist options
  • Save robertknight/8518fa08ebbaa834ba4d10aeffea0ccb to your computer and use it in GitHub Desktop.
Save robertknight/8518fa08ebbaa834ba4d10aeffea0ccb to your computer and use it in GitHub Desktop.
Hypothesis general development notes

General development notes

This document contains general instructions for agents making changes in Hypothesis projects.

Frontend

Our frontend tech stack uses TypeScript, Preact and Tailwind CSS.

  • After editing code, run yarn format
  • To check for errors, run yarn typecheck and yarn lint
  • To run tests, use yarn test. To run a specific test, use yarn test --grep <pattern> where is a regex that matches the test files you want to run.

Backend

Our backend tech stack uses Python, Pyramid, tox and pytest.

  • After editing code, run make format to reformat code, make lint to lint and make test to run tests
  • Before commmitting changes, run make sure to verify that all QA checks pass. A project may require that a database or other services are running before running tests. In that case use make services to start the services.
  • To run tests with specific arguments, use tox -e <environment> -- <pytest args>. Using tox ensures that environment variables etc. are set as needed.

Commit messages and PR descriptions

  • In commit messages, explain succinctly the change and the rationale for it. Do not include a test plan.
  • In PR descriptions, explain the change and the rationale for it. Do not include a test plan.
  • In commit messages and PR descriptions, do not state that tests are passing. It is assumed that all commits and PRs have appropriate tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment