Skip to content

Conversation

@LalatenduMohanty
Copy link
Member

@LalatenduMohanty LalatenduMohanty commented Nov 15, 2025

Create CONTRIBUTING.md with detailed coding standards, design patterns,
testing guidelines, and commit conventions. Transform AGENTS.md from a
basic commit message guide into a comprehensive AI agent reference
following agentsmd.io and Anthropic Claude Code best practices.

Both files establish complementary documentation: CONTRIBUTING.md for
human contributors, AGENTS.md for AI coding assistants, creating a
single source of truth for project standards.

Fixes : #854

@LalatenduMohanty LalatenduMohanty requested a review from a team as a code owner November 15, 2025 17:46
@LalatenduMohanty LalatenduMohanty force-pushed the coding_best_practices_guide branch from 7fdc5b0 to 1bee758 Compare November 15, 2025 17:50
@LalatenduMohanty
Copy link
Member Author

@dhellmann @tiran It would be good if you both can review this.

Copy link
Contributor

@rd4398 rd4398 left a comment

Choose a reason for hiding this comment

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

This looks okay! I will leave it to Doug / Christian for approval

@LalatenduMohanty LalatenduMohanty force-pushed the coding_best_practices_guide branch 4 times, most recently from 1f51f62 to fb32752 Compare November 19, 2025 19:04
Copy link
Contributor

@EmilienM EmilienM left a comment

Choose a reason for hiding this comment

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

good word, a bit lengthy but we can adjust later if it's causing too much troubles to the tools.

@LalatenduMohanty
Copy link
Member Author

@dhellmann @tiran we should merge this PR. Else let me know what I should change. But an updated AGENTS.MD and CONTRIBUTING.md would helps AI agents to write better code.

@LalatenduMohanty LalatenduMohanty force-pushed the coding_best_practices_guide branch from fb32752 to 3af0baf Compare December 2, 2025 15:48
@LalatenduMohanty
Copy link
Member Author

The recent push has import guidelines

- **PEP 8: imports should be at the top**: All import statements must be placed at the top of the file, after module docstrings and before other code
- **No local imports**: Do not place import statements inside functions, methods, or conditional blocks

@LalatenduMohanty LalatenduMohanty force-pushed the coding_best_practices_guide branch 3 times, most recently from a01650d to 2ee31d0 Compare December 4, 2025 21:03
Create CONTRIBUTING.md with detailed coding standards, design patterns,
testing guidelines, and commit conventions. Transform AGENTS.md from a
basic commit message guide into a comprehensive AI agent reference
following agentsmd.io and Anthropic Claude Code best practices.

Both files establish complementary documentation: CONTRIBUTING.md for
human contributors, AGENTS.md for AI coding assistants, creating a
single source of truth for project standards.

Signed-off-by: Lalatendu Mohanty <lmohanty@redhat.com>
@LalatenduMohanty LalatenduMohanty force-pushed the coding_best_practices_guide branch from 2ee31d0 to 7ed659a Compare December 4, 2025 21:04
@LalatenduMohanty
Copy link
Member Author

@dhellmann I have addressed your comments and improved some texts. PTAL

Copy link
Member

@dhellmann dhellmann left a comment

Choose a reason for hiding this comment

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

I'll approve this as it is. I have a couple of suggestions for further refinement.

pipx install hatch # recommended
```

### Initial Setup
Copy link
Member

Choose a reason for hiding this comment

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

I feel like this section and the next could be left out. It's a workflow, but it's not the one I use, so it's weird to express it as though it's required.

Copy link
Member Author

Choose a reason for hiding this comment

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

@dhellmann I am fine with removing it. I will send another PR to remove it.

wait_time = min(2**attempt + random.uniform(0, 1), max_backoff)
```

### Logging
Copy link
Member

Choose a reason for hiding this comment

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

There are more detailed suggestions in https://fromager.readthedocs.io/en/latest/develop.html#logging

I wonder if we should move more of that page into this doc? And link to this doc from there? Or vice versa?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, we can do that.

@mergify mergify bot merged commit c2604a0 into python-wheel-build:main Dec 8, 2025
112 checks passed
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.

Create CONTRIBUTING.md

4 participants