Skip to content

Conversation

@falloficarus22
Copy link

@falloficarus22 falloficarus22 commented Dec 12, 2025

##Summary

This PR updates CONTRIBUTING.md to align the documentation with the project's actual development environment. The project previously switched to ruff for linting and formatting, but the contribution guide still referenced black.

Changes

  • Updated the "Testing and Code Standards" section to recommend ruff instead of black.
  • Replaced the black style badge with the ruff badge.
  • Updated markdown link definitions to point to the ruff repository.

Result

  • Updated CONTRIBUTING.md references.
  • Verified links and badges are correct.
Related Issue Closes #291

Summary by CodeRabbit

  • Documentation
    • Updated contribution guidelines to reflect the updated code formatting toolchain used by the project.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Dec 12, 2025

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

Documentation updates replace Black formatter references with Ruff throughout CONTRIBUTING.md, including badges, setup instructions, and configuration guidance to reflect the project's current tooling.

Changes

Cohort / File(s) Summary
Documentation updates
CONTRIBUTING.md
Replaced all references to Black formatter with Ruff, updated code style badge, adjusted pre-commit workflow instructions to reflect Ruff usage, and updated reference links to point to Ruff repository.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

  • Straightforward text replacement with no logic changes
  • Single file affected with consistent pattern of substitutions
  • Badge and reference link updates are minimal and verifiable

Poem

🐰 Black formatter bids farewell,

Ruff takes the stage—a cleaner spell!

Code styles dance in format's glow,

Contributing docs now let contributors know! ✨

Pre-merge checks and finishing touches

✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: replacing Black references with Ruff in the contribution guide documentation.
Linked Issues check ✅ Passed The PR successfully addresses all coding requirements from issue #291: replaced Black with Ruff in text, badge, and reference links in CONTRIBUTING.md.
Out of Scope Changes check ✅ Passed All changes are scoped to updating CONTRIBUTING.md documentation to reflect Ruff usage, with no extraneous modifications outside the linked issue requirements.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai
Copy link

coderabbitai bot commented Dec 12, 2025

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
CONTRIBUTING.md (1)

71-82: Update ruff . to use explicit subcommands for clarity

ruff . is deprecated in current Ruff versions. The repository's pre-commit configuration (.pre-commit-config.yaml) already runs both linting and formatting separately via the ruff and ruff-format hooks. For manual verification, update the documentation to match this approach:

-ruff .
+ruff check .
+ruff format .

Alternatively, if the intent is only to verify without auto-formatting, use ruff check . alone. This aligns with the actual pre-commit setup and prevents contributor confusion about what the command does.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5c0f9a0 and 95c69d6.

📒 Files selected for processing (1)
  • CONTRIBUTING.md (4 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.18.1)
CONTRIBUTING.md

47-47: Images should have alternate text (alt text)

(MD045, no-alt-text)


47-47: Images should have alternate text (alt text)

(MD045, no-alt-text)


87-87: Link and image reference definitions should be needed
Duplicate link or image reference definition: "ruff"

(MD053, link-image-reference-definitions)

- If implementing a new feature, include some documentation in docs folder.
- Make sure that your submission passes the [GH Actions build]. See "Testing and Standards below" to be able to run these locally.
- Make sure that your code is formatted according to the [black] standard (you can do it via [pre-commit]).
- Make sure that your code is formatted according to the [ruff] standard (you can do it via [pre-commit]).
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Deduplicate link reference definitions ([ruff], and likely [pre-commit])

Right now [ruff] is defined twice (Line 42 and Line 87), and [pre-commit] appears to be defined twice (Line 41 and Line 86). This triggers markdownlint (MD053) and makes future edits error-prone.

Suggested fix: keep a single definition (commonly at the bottom of the file) and remove earlier duplicates:

-[pre-commit]: https://github.com/pre-commit/pre-commit
-[ruff]: https://github.com/astral-sh/ruff
...
 [PEP8]: https://www.python.org/dev/peps/pep-0008
 [Google Style Guide]: https://google.github.io/styleguide/pyguide.html
 [pre-commit]: https://github.com/pre-commit/pre-commit
 [ruff]: https://github.com/astral-sh/ruff

Also applies to: 42-42, 86-87

🤖 Prompt for AI Agents
In CONTRIBUTING.md around line 33 (duplicates also at lines 41-42 and 86-87),
there are duplicate reference definitions for [ruff] and [pre-commit]; remove
the earlier duplicate definitions and keep a single canonical definition
(preferably the bottom-of-file reference section), update any references if
necessary so they still resolve, and run markdownlint to confirm MD053 is
resolved.

CONTRIBUTING.md Outdated
--------------------------

[![](https://codecov.io/gh/projectmesa/mesa-geo/branch/main/graph/badge.svg)](https://codecov.io/gh/projectmesa/mesa-geo) [![](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![](https://codecov.io/gh/projectmesa/mesa-geo/branch/main/graph/badge.svg)](https://codecov.io/gh/projectmesa/mesa-geo) [![](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Add alt text to badges to satisfy accessibility + markdownlint (MD045)

-[![](https://codecov.io/gh/projectmesa/mesa-geo/branch/main/graph/badge.svg)](https://codecov.io/gh/projectmesa/mesa-geo) [![](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)
+[![codecov badge](https://codecov.io/gh/projectmesa/mesa-geo/branch/main/graph/badge.svg)](https://codecov.io/gh/projectmesa/mesa-geo)
+[![code style: ruff](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
[![](https://codecov.io/gh/projectmesa/mesa-geo/branch/main/graph/badge.svg)](https://codecov.io/gh/projectmesa/mesa-geo) [![](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)
[![codecov badge](https://codecov.io/gh/projectmesa/mesa-geo/branch/main/graph/badge.svg)](https://codecov.io/gh/projectmesa/mesa-geo)
[![code style: ruff](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)
🧰 Tools
🪛 markdownlint-cli2 (0.18.1)

47-47: Images should have alternate text (alt text)

(MD045, no-alt-text)


47-47: Images should have alternate text (alt text)

(MD045, no-alt-text)

🤖 Prompt for AI Agents
CONTRIBUTING.md around line 47: the two inline badge images lack alt text which
triggers accessibility and markdownlint MD045; update the markdown image syntax
to include descriptive alt text for each badge (e.g., "Codecov badge" and "Ruff
code style badge") inside the square brackets before the parentheses, preserving
the existing links and titles so the badges render the same while satisfying
accessibility rules.

@wang-boyu wang-boyu self-assigned this Dec 14, 2025
@falloficarus22 falloficarus22 deleted the update-contributing.md branch December 24, 2025 03:54
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.

Update CONTRIBUTING.md to reflect usage of Ruff for formatting

2 participants