Skip to content

Conversation

@tnull
Copy link
Contributor

@tnull tnull commented Jan 27, 2026

We add a basic CLAUDE.md file pointing it to some workspace specifics (in particular running cargo fmt on 1.75.0 MSRV, and using ./ci/ci-tests.sh to run tests).

@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Jan 27, 2026

👋 Thanks for assigning @joostjager as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@tnull
Copy link
Contributor Author

tnull commented Jan 27, 2026

@joostjager @TheBlueMatt Anything else that you deem worthy to add?

@tnull tnull force-pushed the 2026-01-add-claude-md branch from 018b48c to cd6ac32 Compare January 27, 2026 11:49
We add a basic `CLAUDE.md` file pointing it to some workspace specifics
(in particular running `cargo fmt` on 1.75.0 MSRV, and using
`./ci/ci-tests.sh` to run tests).

Signed-off-by: Elias Rohrer <dev@tnull.de>
@tnull tnull force-pushed the 2026-01-add-claude-md branch from cd6ac32 to ecf8c05 Compare January 27, 2026 11:51
Copy link
Collaborator

@TheBlueMatt TheBlueMatt left a comment

Choose a reason for hiding this comment

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

Nothing comes to mind, we can definitely iterate on it.

@codecov
Copy link

codecov bot commented Jan 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.09%. Comparing base (9e91b2e) to head (ecf8c05).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4352   +/-   ##
=======================================
  Coverage   86.08%   86.09%           
=======================================
  Files         156      156           
  Lines      102428   102428           
  Branches   102428   102428           
=======================================
+ Hits        88179    88181    +2     
+ Misses      11754    11753    -1     
+ Partials     2495     2494    -1     
Flag Coverage Δ
tests 86.09% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.


## Development Rules

- Always ensure tests pass before committing. To this end, you should run the test suite via `./ci/ci-tests.sh`.
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is always practical when working on draft branches?

Copy link
Contributor

@vincenzopalazzo vincenzopalazzo Jan 27, 2026

Choose a reason for hiding this comment

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

probably it is possible to specify it in a way that we can ask claude to run the CI checks? But do not assume to run it always?

On mine I have

### When to run CI checks
- When explicitly asked (e.g., "run CI", "check CI", "verify commits")
- Before creating a PR (if requested)
- After fixing CI-related issues

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think this is always practical when working on draft branches?

Hmm, but ensuring tests pass before committing is kinda important, no? And in my experience it will allow Claude to catch a lot of bugs? Any suggestion for a good replacement, maybe cargo test, which should be considerably faster, even if it doesn't catch everything?

- Always ensure tests pass before committing. To this end, you should run the test suite via `./ci/ci-tests.sh`.
- Run `cargo +1.75.0 fmt --all` after every code change
- Never add new dependencies unless explicitly requested
- Please always disclose the use of any AI tools in commit messages and PR descriptions
Copy link
Contributor

Choose a reason for hiding this comment

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

Specify how this should be disclosed, maybe a standard sentence to add for consistency?

Copy link
Collaborator

Choose a reason for hiding this comment

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

We should consistently require it disclose itself as HAL 9000 😂

- Run `cargo +1.75.0 fmt --all` after every code change
- Never add new dependencies unless explicitly requested
- Please always disclose the use of any AI tools in commit messages and PR descriptions
- When adding new `.rs` files, please ensure to always add the licensing header as found in all other files.
Copy link
Contributor

Choose a reason for hiding this comment

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

We could make it easy and link one file here, so that AI doesn't need to look at all other files?

## Development Rules

- Always ensure tests pass before committing. To this end, you should run the test suite via `./ci/ci-tests.sh`.
- Run `cargo +1.75.0 fmt --all` after every code change
Copy link
Contributor

Choose a reason for hiding this comment

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

I already had this myself, and it is nice that it does this.

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.

5 participants