agentleFS
StripeKnown publisherstripe/stripe-python/.claude/CLAUDE.md

stripe-python

CLAUDE.md2.1k starsChanged 4 months agoMITView on GitHub

It's ok not to put comments on/in a function if their addition wouldn't meaningfully clarify anything.

Trending

Less talk lately.about the whole repository

Dec 2025: 1 mentionJan 2026: 1 mentionFeb 2026: 2 mentionsMar 2026: 3 mentionsApr 2026: 0 mentionsMay 2026: 3 mentionsJun 2026: 6 mentionsJul 2026: 4 mentionsAug 2026: 9 mentionsSep 2026: 3 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the stripe/stripe-python repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about stripe/stripe-python

The biggest 5 of 36 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 36

Talked about on GitHub (36 times).

On GitHub · 36

31 more on GitHub

The file

We split this CLAUDE.md into the rules it gives an agent

7 rules. About 0 are common, 1 is distinctive, and 6 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.

  • 6

    Very specific

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

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

    Run all tests: just test

    line 5
  2. Very specific:

    Run a specific test by name: just test-one test_name

    line 6
  3. Very specific:

    Run a specific test file: just test tests/path/to/test_file.py

    line 7
  4. Distinctive:

    If something in a generated file/range needs to be updated, add a summary of the change to your report but don't attempt to edit it …

    line 25
  5. Very specific:

    All code must run on all supported Python versions (full list in the test section of @.github/workflows/ci.yml)

    line 35
  6. Very specific:

    Prefer f-strings over .format in new code.

    line 37
  7. Very specific:

    When editing a method, update any .format calls to use f-strings.

    line 38

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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
CLAUDE.md

stripe-python

Testing

  • Run all tests: just test
  • Run a specific test by name: just test-one test_name
  • Run a specific test file: just test tests/path/to/test_file.py

Formatting & Linting

  • Format: just format (uses ruff)
  • Lint: just lint (uses flake8)
  • Typecheck: just typecheck (uses pyright)

Key Locations

  • HTTP client (request execution, retries, headers): stripe/_http_client.py
  • Main client class: stripe/_stripe_client.py
  • Client options/config: stripe/_client_options.py
  • API requestor (request building, auth): stripe/_api_requestor.py

Generated Code

  • Files containing File generated from our OpenAPI spec at the top are generated; do not edit. Similarly, any code block starting with The beginning of the section generated from our OpenAPI spec is generated and should not be edited directly.
    • If something in a generated file/range needs to be updated, add a summary of the change to your report but don't attempt to edit it directly.
  • Most files under stripe/ resource subdirectories (e.g. stripe/_customer.py, stripe/params/, stripe/resources/) are generated.
  • The HTTP client layer (_http_client.py, _stripe_client.py, _api_requestor.py, _client_options.py) is NOT generated.

Conventions

  • Uses requests library by default for sync HTTP, httpx for async
  • Type hints throughout
  • Virtual env managed in .venv/; just recipes handle setup automatically
  • Work is not complete until just test, just lint and just typecheck complete successfully.
  • All code must run on all supported Python versions (full list in the test section of @.github/workflows/ci.yml)
  • In test files, prefer pytest fixtures over module-level declarations
  • Prefer f-strings over .format in new code.
    • When editing a method, update any .format calls to use f-strings.

Comments

  • Comments MUST only be used to:
    1. Document a function
    2. Explain the WHY of a piece of code
    3. Explain a particularly complicated piece of code
  • Comments NEVER should be used to:
    1. Say what used to be there. That's no longer relevant!
    2. Explain the WHAT of a piece of code (unless it's very non-obvious)

It's ok not to put comments on/in a function if their addition wouldn't meaningfully clarify anything.

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.