Handling Ruff Errors and Ignores

Open
#75 0 comments 0 reactions 0 assignees View on GitHub

@codedbyishika is already working on this.

Since Jul 31, 2026.

  • #74 by @codedbyishika — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Quiet
Tech stack
python
Domain
tooling

Research direction

Review the Ruff changes listed for init.py, exceptions.py, test_buddycheck.py, and test_roll_call.py, along with the import formatting changes across the project. Check whether the listed fixes are present and whether Ruff reports any remaining errors; done means the tracked errors are resolved without new lint failures.

Written by the indexing model from the issue text.

Description

This is to keep in track of all the changes made because of the Ruff Errors.
Here are the current changes to the Ruff Errors:

  • I001 [ All files (including test files)]
    Formatted Imports
  • [init.py]
    Formatted list
    __all__ = ["download_images", "validate_download", "check_alignment", "downsample_and_save_image"]
    __all__ = ["check_alignment", "download_images", "downsample_and_save_image", "validate_download"]
  • BLE001[exceptions.py]
    Created Custom Exceptions
  • B018 [init.py]
    Exposing instance methods as temporary placeholders
    # Expose instance methods
    _ = buddy_check_instance.validate_download
    _ = buddy_check_instance.check_alignment
  • SIM115 [test_buddycheck.py]
    Include delete clause and temp path using context manager (Thank you Elizabeth and Net!)
    with tempfile.NamedTemporaryFile(delete=False, mode='w', suffix=".csv") as f:
    with tempfile.NamedTemporaryFile(delete=False, mode='w', suffix=".csv") as f:
  • RUF059 [test_roll_call.py]
    Unused variable called using temporary placeholders
    expected_cols, _= self.rollcall.setup_expected_columns(args)
    expected_cols, _= self.rollcall.setup_expected_columns(args)
Dominant language
Python
Stars
6
Forks
1
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Imageomics/cautious-robot

All issues in Imageomics/cautious-robot

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.