Skip to content

Latest commit

 

History

History
42 lines (36 loc) · 2.13 KB

File metadata and controls

42 lines (36 loc) · 2.13 KB

Repository Guidelines

Start Here (Progressive Disclosure)

  • Read CLAUDE.md first for the primary contributor workflow and architecture context.
  • Use focused deep dives only when needed:
    • dev/STYLE.md for coding patterns and API conventions.
    • dev/GIT.md for commit and branch practices.
    • dev/DOCS.md for documentation syntax and style.
    • dev/PERFORMANCE.md for profiling and optimization work.
  • Human gate is required: all AI-assisted code must be reviewed, approved, and tested by a human before merge or PR.

Project Structure

  • visidata/: main package (features/, loaders/, apps/, themes/).
  • tests/: functional replay tests (.vd/.vdj/.vdx) and tests/golden/ outputs.
  • visidata/tests/: Python unit tests.
  • docs/ and dev/: user and developer documentation.

Build, Test, and Development Commands

  • python3 -m pip install .: install local package.
  • python3 -m pip install ".[test]": install optional test dependencies.
  • vd --version: startup sanity check.
  • pytest -sv visidata/tests/: run unit tests.
  • dev/test.sh -j 4: run functional cmdlog tests and compare tests/golden/.
  • vd . --batch: quick load smoke test.

Coding and Command Conventions

  • Follow dev/STYLE.md for naming, quoting, decorators, and sheet/column patterns.
  • Use the canonical command pattern shown in CLAUDE.md:
    • BaseSheet.addCommand('', 'command-name', 'code', 'help text')
  • For class placement decisions and exceptions, defer to dev/STYLE.md.

Testing Guidelines

  • Update tests/*.vd* for workflow-visible behavior changes.
  • Update visidata/tests/ for isolated Python logic.
  • Before PR: run pytest -sv visidata/tests/ and dev/test.sh -j 4.

Commit & Pull Request Guidelines

  • Base PRs on develop (not stable).
  • Follow existing short, imperative subjects; optional scope prefixes like [test], [docs], [vdsql].
  • Keep commits focused and include tests/docs for behavior changes.
  • PRs should include problem, approach, risks, and linked issues; add screenshots/gifs and reproducible .vd scripts for UI changes.
  • Follow CAA and copyright assignment requirements in CONTRIBUTING.md.