agentleFS
MicrosoftKnown publishermicrosoft/Qcodes/.github/copilot-instructions.md

Qcodes

Copilot instructions461 starsChanged 59 days agoMITView on GitHub

QCoDeS is a python library that follows all the best practices of a python package. All configuration for the package and for the tools we use lives in pyproject.toml. Documentation, in the docs/ folder, is written using Restructured Text or Jupyter Notebook formats, and sphinx is used to render the documentation into HTML pages to be deployed at https://microsoft.github.io/Qcodes/. The documentation includes Contributor's guide, so please follow that closely. If the user manages the Python environment with uv, always run…

The file

We split this copilot-instructions.md into the rules it gives an agent

6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All configuration for the package and for the tools we use lives in pyproject.toml.

    line 3
  2. Very specific:

    If the user manages the Python environment with `uv, always run commands that need that environment (pytest, pyright, python etc.) via uv …

    line 11
  3. Very specific:

    Do not activate the virtual environment, call executables inside it directly, or point tools at an interpreter with options such as …

    line 18
  4. Very specific:

    Before committing anything, run pre-commit hooks and make sure they pass, and fix anything that is failing.

    line 21
  5. Very specific:

    Run it via `pyright (or uv run --extra test pyright / uv run --extra test pyright.cmd as described above).

    line 29
  6. Distinctive:

    Every Pull Request should have a newsfragment file briefly explaining the change.

    line 40

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

QCoDeS is a python library that follows all the best practices of a python package.

All configuration for the package and for the tools we use lives in pyproject.toml.

Documentation, in the docs/ folder, is written using Restructured Text or Jupyter Notebook formats, and sphinx is used to render the documentation into HTML pages to be deployed at https://microsoft.github.io/Qcodes/.

The documentation includes Contributor's guide, so please follow that closely.

If the user manages the Python environment with uv, always run commands that need that environment (pytest, pyright, python etc.) via uv run. Both pytest and pyright need the test dependencies, so always run them with --extra test, e.g. uv run --extra test pytest tests and uv run --extra test pyright. Without it uv run only ensures that the core dependencies are installed, so the test dependencies may be missing. On Windows, where pyright is typically installed as an npm shim, use uv run --extra test pyright.cmd. Do not activate the virtual environment, call executables inside it directly, or point tools at an interpreter with options such as --pythonpath; let uv run select the environment.

Before committing anything, run pre-commit hooks and make sure they pass, and fix anything that is failing. If prek is available on the PATH, use it via prek run --all-files; otherwise use pre-commit run --all. The hooks will ensure correct formatting of the code and linting as well. The hooks are automatically installed so there is no need to manually install them.

QCoDeS is a typed package, hence all new code should include clear and correct type annotations.

We use pyright to statically check the correctness of the code with type annotations. Run it via pyright (or uv run --extra test pyright / uv run --extra test pyright.cmd as described above). The code that should be typechecked is configured in pyproject.toml.

For running tests, we use pytest. They can be run with pytest tests (or uv run --extra test pytest tests as described above). See pytest markers for additional options of running tests.

We use Dependabot from GitHub to keep our dependencies up to date, we use requirements.txt as our constraints or "lock" file.

Every Pull Request should have a newsfragment file briefly explaining the change. The text should be using restructured text syntax. How to write a newsfragment and what types we have is explained the Contributor's guide in the documentation in docs/ folder.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.