aider: Shortened the docstring in aider/repo.py to comply with the 100 characters line length limit.

# Aider chat conversation:

USER: I ran this command:

 pre-commit run --files aider/repo.py

And got this output:

isort....................................................................Passed
black....................................................................Passed
flake8...................................................................Failed
- hook id: flake8
- exit code: 1

aider/repo.py:247:101: E501 line too long (111 > 100 characters)
        """
        Returns a list of all files which are dirty (not committed), either staged or in the working directory.
        """

                                                                                        ^

ASSISTANT: Please add the file `aider/repo.py` to the chat so I can make the necessary changes.

USER: I added these files to the chat: aider/repo.py

ASSISTANT: To fix the flake8 error, we need to shorten the docstring to comply with the line length limit of 100 characters.

Here is the *SEARCH/REPLACE* block:

aider/repo.py
```python
<<<<<<< SEARCH
        """
        Returns a list of all files which are dirty (not committed), either staged or in the working directory.
        """
=======
        """
        Returns a list of all files which are dirty (not committed), either staged or in the working
        directory.
        """
>>>>>>> REPLACE
```
This commit is contained in:
Paul Gauthier 2024-05-18 18:30:51 -07:00
parent abbe5416a1
commit 7b8e603249

View file

@ -244,7 +244,8 @@ class GitRepo:
def get_dirty_files(self):
"""
Returns a list of all files which are dirty (not committed), either staged or in the working directory.
Returns a list of all files which are dirty (not committed), either staged or in the working
directory.
"""
dirty_files = set()