Replies: 3 comments
-
|
This is the error message you get from pre-commit, our linter, telling you the file needed fixing twice:
When this says "fixing file FILENAME.JSON", it should automatically fix it for you. To commit the changes, you would then need to add the new changes on this file to git, probably by running something like this command: |
Beta Was this translation helpful? Give feedback.
-
|
thanks! need to run the command twice, and it works! wikimpacts-py3.11nl@F-IR-HYDRPC135:~/Wikimpacts$ pre-commit run --files Database/Wikipedia_original_text/wiki_test_whole_infobox_20240729_159single_events.json
fix end of files.........................................................Failed
- hook id: end-of-file-fixer
- exit code: 1
Fixing Database/Wikipedia_original_text/wiki_test_whole_infobox_20240729_159single_events.json
trim trailing whitespace.................................................Passed
pretty format json.......................................................Failed
- hook id: pretty-format-json
- exit code: 1
Fixing file Database/Wikipedia_original_text/wiki_test_whole_infobox_20240729_159single_events.json
black................................................(no files to check)Skipped
isort................................................(no files to check)Skipped
autoflake............................................(no files to check)Skipped
wikimpacts-py3.11nl@F-IR-HYDRPC135:~/Wikimpacts$ pre-commit run --files Database/Wikipedia_original_text/wiki_test_whole_infobox_20240729_159single_events.json
fix end of files.........................................................Passed
trim trailing whitespace.................................................Passed
pretty format json.......................................................Passed
black................................................(no files to check)Skipped
isort................................................(no files to check)Skipped
autoflake............................................(no files to check)Skipped |
Beta Was this translation helpful? Give feedback.
-
|
Perfect! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When running the pre-commit, the error below occured
Beta Was this translation helpful? Give feedback.
All reactions