Commit graph

5389 commits

Author SHA1 Message Date
Paul Gauthier (aider)
7d5e666ea7 Make the start tag an optional positional argument and use the latest vX.Y.0 tag if no start tag is provided. 2024-07-30 10:14:58 -03:00
Paul Gauthier (aider)
b9b04052c7 Modify the test to check if the linter was called with a filename string whose Path().name matches the expected filename. 2024-07-30 10:10:39 -03:00
Paul Gauthier
33d9f46e25 Add unit test to verify cmd_lint calls linter with correct filename 2024-07-30 10:10:37 -03:00
Paul Gauthier (aider)
167abdf851 Remove unused imports in linter.py 2024-07-29 20:29:14 -03:00
Paul Gauthier
5edce8ae1b Add linter output to the dump for debugging 2024-07-29 20:28:43 -03:00
Paul Gauthier (aider)
9c24d41d41 Remove unused cost_report variable in calculate_and_show_tokens_and_cost method 2024-07-29 17:32:03 -03:00
Paul Gauthier
384a5f2ea5 Update Coder class to use absolute file names instead of relative file names 2024-07-29 17:31:54 -03:00
Paul Gauthier (aider)
122eb8834a Normalize file paths to resolve symbolic links in macOS when comparing absolute file names between coders. 2024-07-29 17:26:14 -03:00
Paul Gauthier
7baa4a802e Add test to ensure abs_fnames contain unique and correct paths 2024-07-29 17:26:12 -03:00
Paul Gauthier (aider)
78e7b0b922 Use a more specific assertion method in the test case 2024-07-29 17:17:50 -03:00
Paul Gauthier (aider)
d4f5330f55 Fix typo in assertion for "I ran this command" 2024-07-29 17:17:31 -03:00
Paul Gauthier
11facfe4d5 Add test for cmd_run method to handle unbound local error 2024-07-29 17:17:29 -03:00
Paul Gauthier (aider)
c0a2b8b57c Ensure instructions variable is always defined in cmd_run method 2024-07-29 17:11:31 -03:00
Paul Gauthier (aider)
23a9ade113 Modify the test to ensure cmd_run returns without errors 2024-07-29 17:10:09 -03:00
Paul Gauthier (aider)
c8e5c27a2f Add a test to trigger the UnboundLocalError bug in the cmd_run method
Commit message: Add test to trigger UnboundLocalError in cmd_run method
2024-07-29 17:07:51 -03:00
Paul Gauthier
b69bf02115 Refactor Coder creation to use file name instead of string representation 2024-07-29 17:05:20 -03:00
Paul Gauthier (aider)
775dd9e6b8 Create a new file in a subdirectory of a git repository, then create a Coder instance from that file and another Coder instance from the first one, ensuring both have the same set of absolute file names. 2024-07-29 16:57:19 -03:00
Paul Gauthier
149db2e5fe Add test for creating a Coder from another Coder with a subdirectory 2024-07-29 16:57:16 -03:00
Paul Gauthier (aider)
0a61e83c2b Fix the test_cmd_lint_with_dirty_file test to handle the MagicMock object returned by the lint method. 2024-07-29 16:46:56 -03:00
Paul Gauthier (aider)
24c8363aa8 Fix unused import of unittest in tests/basic/test_commands.py 2024-07-29 16:45:59 -03:00
Paul Gauthier
f90cd6b69b Add unit tests for the cmd_lint command 2024-07-29 16:45:57 -03:00
Paul Gauthier (aider)
cf35c2db4e Fix the test_cmd_lint_with_dirty_file test to use mocking instead of captured output 2024-07-29 16:45:21 -03:00
Paul Gauthier
bb7465e05d Modify test_commands.py to mock linter.lint method and assert it was called with the dirty file 2024-07-29 16:45:18 -03:00
Paul Gauthier
05ee45c31f Prompt user to fix lint errors before committing changes 2024-07-29 16:42:20 -03:00
Paul Gauthier (aider)
f62e5bd883 Get all dirty files in the repo if no files are specified 2024-07-29 16:35:40 -03:00
Paul Gauthier
958b608467 Add fallback to get all dirty files in the repo if no files are provided for linting. 2024-07-29 16:35:38 -03:00
Paul Gauthier (aider)
894eff4393 Add a test that checks if the cmd_lint command correctly identifies a dirty file in a repository. 2024-07-29 16:30:08 -03:00
Paul Gauthier
1a3466e413 do not summarize when switching to code or ask mode 2024-07-29 13:43:27 -03:00
Paul Gauthier
9d84c3936c Added date and author #778 2024-07-29 13:14:37 -03:00
Paul Gauthier (aider)
a67da8a133 Update the modification date in the leaderboard index page based on the latest modification time of the related files 2024-07-29 13:13:56 -03:00
Paul Gauthier
2ec8099319 Update the leaderboards page with author and last updated date. 2024-07-29 13:13:55 -03:00
Paul Gauthier (aider)
7d04fc2183 Add Python code to print the last modified date of the leaderboards index.md file 2024-07-29 13:09:32 -03:00
Paul Gauthier
9791ab7bdc Update leaderboard documentation with last modified date and author 2024-07-29 13:09:31 -03:00
Paul Gauthier
f8f0330834 set version to 0.46.2-dev 2024-07-29 13:05:56 -03:00
Paul Gauthier
dfa7e5bd4b version bump to 0.46.1 2024-07-29 13:04:18 -03:00
Paul Gauthier
0fb5efc583 copy 2024-07-29 12:51:04 -03:00
Paul Gauthier
ae1932f43f copy 2024-07-29 12:50:12 -03:00
Paul Gauthier (aider)
da236f5f65 Update legend label to describe bubble size as total lines contributed by aider 2024-07-29 12:49:09 -03:00
Paul Gauthier
affb438cda Update the bubble chart label to include "by aider" 2024-07-29 12:49:07 -03:00
Paul Gauthier
b523582f62 copy 2024-07-29 12:44:40 -03:00
Paul Gauthier
94e76256cc copy 2024-07-29 12:22:23 -03:00
Paul Gauthier (aider)
f793939829 Remove the left legend box 2024-07-29 12:14:54 -03:00
Paul Gauthier (aider)
4c9337f865 Move the legend to the top and add a chart title to improve the visibility of the dataset label. 2024-07-29 12:12:07 -03:00
Paul Gauthier
c294bff910 Add more descriptive y-axis label for Aider contribution chart 2024-07-29 12:10:13 -03:00
Paul Gauthier (aider)
68ccbdfa3a Fix tooltip to display correct integer lines of code 2024-07-29 12:08:46 -03:00
Paul Gauthier (aider)
a38a362bd5 Fix the tooltip to correctly show the percentage and lines of code, and round the percentage to a whole number. 2024-07-29 12:07:28 -03:00
Paul Gauthier (aider)
931e158edf Add legend to explain bubble size represents lines of code 2024-07-29 12:06:04 -03:00
Paul Gauthier (aider)
3ed6271fa2 Scale the bubbles by 1.5x 2024-07-29 12:05:20 -03:00
Paul Gauthier (aider)
af92e71932 Modify chart to display percentage on y-axis and use lines of code for bubble radius 2024-07-29 12:04:45 -03:00
Paul Gauthier (aider)
148078ecac Modify chart to display both lines of code and percentage contributed by Aider 2024-07-29 12:03:42 -03:00