-
-
Notifications
You must be signed in to change notification settings - Fork 70
docs: replace black with ruff in contribution guide #292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
4f721bd
d36a64d
95c69d6
2b5ad3e
3270fe5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -30,7 +30,7 @@ No contribution is too small. Although, contributions can be too big, so let's d | |||||||
| - Git commit your changes with a meaningful message: `git commit -m "Fix issue X"` | ||||||||
| - 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]). | ||||||||
| - Push your changes to your fork on Github: `git push origin NAME_OF_BRANCH`. | ||||||||
| - [Create a pull request]. | ||||||||
| - Describe the change w/ ticket number(s) that the code fixes. | ||||||||
|
|
@@ -39,12 +39,12 @@ No contribution is too small. Although, contributions can be too big, so let's d | |||||||
| [GH Actions build]: https://github.com/mesa/mesa-geo/actions/workflows/build_lint.yml | ||||||||
| [Create a pull request]: https://help.github.com/articles/creating-a-pull-request/ | ||||||||
| [pre-commit]: https://github.com/pre-commit/pre-commit | ||||||||
| [black]: https://github.com/psf/black | ||||||||
| [ruff]: https://github.com/astral-sh/ruff | ||||||||
|
|
||||||||
| Testing and Code Standards | ||||||||
| -------------------------- | ||||||||
|
|
||||||||
| [](https://codecov.io/gh/projectmesa/mesa-geo) [](https://github.com/psf/black) | ||||||||
| [](https://codecov.io/gh/projectmesa/mesa-geo) [](https://github.com/astral-sh/ruff) | ||||||||
|
||||||||
| [](https://codecov.io/gh/projectmesa/mesa-geo) [](https://github.com/astral-sh/ruff) | |
| [](https://codecov.io/gh/projectmesa/mesa-geo) | |
| [](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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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:
Also applies to: 42-42, 86-87
🤖 Prompt for AI Agents