Skip to content

Commit

Permalink
Modified the pre-commit logic to no longer exclude .md files from end…
Browse files Browse the repository at this point in the history
…-of-file-fixer hook, and to only exclude git-related hidden files from all hooks.
  • Loading branch information
Cyber-Var committed Jan 6, 2025
1 parent 934d5d8 commit 5b000a8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace # checks for files with trailing whitespaces, excluding .md and hidden files
exclude: '(\.md$|^\.|/\.+)'
- id: trailing-whitespace # checks for files with trailing whitespaces, excluding .md and Git-related hidden files
exclude: '\.md$|.*\.git.*'
- id: check-merge-conflict # checks for files that contain merge conflict strings (such as <<<<<<<, =======, and >>>>>>>)
- id: check-json # Ensures that JSON files are syntactically correct
- id: end-of-file-fixer # ensures that each file ends with one blank line, excluding .md and hidden files
exclude: '(\.md$|^\.|/\.+)'
- id: end-of-file-fixer # ensures that each file ends with one blank line, excluding Git-related hidden files
exclude: '.*\.git.*'
- repo: local
hooks:
- id: forbid-non-ascii-filenames # runs the script that prohibits non-ASCII characters in file names
Expand Down
2 changes: 1 addition & 1 deletion llm_bench/python/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Benchmarking Script for Large Language Models

> [!IMPORTANT]
> LLM bench code was moved to [tools](../../tools/llm_bench/) directory. Please navigate to the new directory for continue of tool usage.
> LLM bench code was moved to [tools](../../tools/llm_bench/) directory. Please navigate to the new directory for continue of tool usage.
2 changes: 1 addition & 1 deletion llm_bench/python/who_what_benchmark/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Simple Accuracy Benchmark for Generative AI models

> [!IMPORTANT]
> Who What Benchmark code was moved to [tools](../../../tools/who_what_benchmark/) directory. Please navigate to the new directory for continue of tool usage.
> Who What Benchmark code was moved to [tools](../../../tools/who_what_benchmark/) directory. Please navigate to the new directory for continue of tool usage.
2 changes: 1 addition & 1 deletion src/docs/DEBUG_LOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ the properties of the compiled model are printed as follows:
AFFINITY: CORE
EXECUTION_DEVICES:
CPU: Intel(R) Xeon(R) Platinum 8468
```
```
2 changes: 1 addition & 1 deletion tools/llm_bench/doc/NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ ConnectionError: Couldn't reach 'wikitext' on the Hub (SSLError)
```
root cause: The wikitext data set was not downloaded correctly, or the Hugging Face Hub network could not be connected normally. <br />
Solution: <br />
Refer to https://huggingface.co/docs/datasets/loading#arrow , copy wikitext data set to ~/.cache/huggingface/datasets/ folder, set the environment variable HF_DATASETS_OFFLINE to 1.
Refer to https://huggingface.co/docs/datasets/loading#arrow , copy wikitext data set to ~/.cache/huggingface/datasets/ folder, set the environment variable HF_DATASETS_OFFLINE to 1.
2 changes: 1 addition & 1 deletion tools/llm_bench/doc/PROMPT.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ Prompt file example:
## 5. Visual Language Models
Supported parameters that can be set are:
* `media` - imge file path
* `prompt`- input text prompt
* `prompt`- input text prompt

0 comments on commit 5b000a8

Please sign in to comment.