04f92b72a9
* Move console logging to logger function to avoid circular dependency in utils module Signed-off-by: coleramos425 <colramos@amd.com> * Apply python formatting Signed-off-by: coleramos425 <colramos@amd.com> * Remove the default StreamHandler before adding the custom If you are not explicitly removing this default handler, it could be causing duplicate outputs. Signed-off-by: coleramos425 <colramos@amd.com> * Fix lingering bugs from merge conflict resolution Signed-off-by: coleramos425 <colramos@amd.com> * Comply to python formatting and update pre-commit hook helper Signed-off-by: coleramos425 <colramos@amd.com> * Removing redundant console_log call as the get_mi300_num_xcds() call, otherwise ALL Mi200 profiling runs will print this message Signed-off-by: coleramos425 <colramos@amd.com> --------- Signed-off-by: coleramos425 <colramos@amd.com>
20 rader
535 B
YAML
20 rader
535 B
YAML
default_stages: [pre-commit]
|
|
fail_fast: true
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: check-yaml
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
# Python import sorting
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 6.0.1
|
|
hooks:
|
|
- id: isort
|
|
# Python formatting (Using this mirror lets us use mypyc-compiled black, which is about 2x faster)
|
|
- repo: https://github.com/psf/black-pre-commit-mirror
|
|
rev: 25.1.0
|
|
hooks:
|
|
- id: black
|