Repository navigation
Format source code to PEP8 using Ruff - #36
jamessiddeley-amd merged 24 commits into
Conversation
…into jsiddele/pre-commit-hooks UPDATE FORK FROM LATEST DEVELOP
Signed-off-by: jamessiddeley-amd <James.Siddeley@amd.com>
…evelop/jamessiddeley-amd_rocprofiler-compute/jsiddele_pre-commit-hooks
| ) | ||
| ''' | ||
| [tool.ruff] | ||
| target-version="py38" |
There was a problem hiding this comment.
I'd say we should remove the target-version
|
I recall we had conversion something like adding guidance in readme: |
feizheng10
left a comment
There was a problem hiding this comment.
LGTM with minor comments.
Please run the whole test suites locally to make sure all tests passed.
Just ran on latest dev: |
* Adding tool pc sampling support Fixing merge issue tool support on SDKupdates link amd-comgr Sanitizer failure fix fix format Addressing review comments misc fix Adding dispatch id to the CSV output AddingCHANGELOG [ROCProfV3][PC Sampling] Initial ROCProfV3 PC sampling tests for JSON and CSV formats (#17) ROCProfV3 initial tests for JSON and CSV output. Simple kernels that simplify the verification of samples to instruction decoding has been introduced. removing option to enable pc sampling explicitly Adding documentation no pc-sampling option in tests anymore Addressing review comments Updating docs an option for choosing whether all units must be sampled try ignoring PC sampling tests (#36) * run pc-sampling tests on MI2xx runners * use v_fmac_f32 instead of s_nop 0 in tests * fixing docs [ROCm/rocprofiler-sdk commit: 50b185b]
…ler-compute/jsiddele_pre-commit-hooks
* added ruff docs * style: Run ruff and black before yapf pass * yapf -r -i (23 fixes) * fixed conf.py and ran ruff format . * fixed conf.py 2 * formatted argparser.py * formatted src/rocprof_compute_analyze * formatted src/rocprof_compute_profile * formatted soc_base.py * formatted rocprof_compute_tui * formatted gui_components * formatted src/utils * formatted tests/ * format extra files * cleanup * fix test_utils.py * fixed typos * Update pyproject.toml * Update README.md * Update test_utils.py [rocm-systems] ROCm/rocm-systems#36 (commit 58d2a01)
|
fix: Correct syntax error in multi-line f-string Addresses a syntax error in Ruff correctly identified a line as being too long but was unable to The issue was an isolated manual error and not a Relates to #315
|
#36) SWDEV-546293 - Adds nvidia mappings to hipMemPrefetchAsync_vs and hipMemAdvise_v2
[ROCm/hip commit: 520bbad]
Add cooperative groups for sync collective
…m-sync Fix `rocshmem_ctx_wg_team_sync` API
Add cooperative groups for sync collective [ROCm/rocshmem commit: 8015a45]
…m-sync Fix `rocshmem_ctx_wg_team_sync` API [ROCm/rocshmem commit: d97e5ba]
As things get more complicated, the install instructions will become too complicated to fit in README.md. This also seems to be where TheRock components seems to put their install instructions.
As things get more complicated, the install instructions will become too complicated to fit in README.md. This also seems to be where TheRock components seems to put their install instructions. [ROCm/hipFile commit: 5c97904]

Changed rocprof pre-commit hooks to use ruff instead of isort and black. Additional manual changes to current rocprof python files to match PEP8 format.
fix: Correct syntax error in multi-line f-string
Addresses a syntax error in src/rocprof_compute_tui/views/main_view.py
that was introduced during a manual code formatting pass.
Ruff correctly identified a line as being too long but was unable to
apply an automatic fix. The subsequent manual edit incorrectly
added a newline character inside an f-string, causing the error.
The issue was an isolated manual error and not a
systemic problem with the new ruff/black formatting setup.
Relates to #315
🔁 Imported from ROCm/rocprofiler-compute#713
🧑💻 Originally authored by @jamessiddeley-amd