Files

Ignorování revizí v .git-blame-ignorerevs. Klikněte zde pro obejití a zobrazení normálního pohledu blame.

116 řádky
2.6 KiB
TOML
Surový Trvalý odkaz Normální zobrazení Historie

2025-01-02 13:29:47 -08:00
[project]
name = "rocprof_compute"
requires-python = ">=3.9"
2025-01-02 13:29:47 -08:00
[project.optional-dependencies]
developer = [
2025-08-08 15:32:30 -04:00
"ruff>=0.12.7",
2025-01-02 13:29:47 -08:00
"pre-commit",
]
2025-08-08 15:32:30 -04:00
[tool.ruff]
line-length = 88
# Ruff's default excludes cover: .bzr, .direnv, .eggs, .git, .git-rewrite, .hg, .ipynb_checkpoints,
# .mypy_cache, .nox, .pants.d, .pyenv, .pytest_cache, .pytype, .ruff_cache, .svn,
# .tox, .venv, .vscode, __pypackages__, _build, buck-out, build, dist, node_modules,
# site-packages, venv
extend-exclude = [
".github",
".misc",
"external",
"build-rocprof_compute",
"src/rocprof_compute_analyze/analysis_db.py",
"src/rocprof_compute_tui/widgets/splitter.py"
2025-08-08 15:32:30 -04:00
]
[tool.ruff.lint]
# Enable Pyflakes (F), pycodestyle (E, W for PEP8), aisort (I),
# type annotation (ANN), and f-string (UP) rules.
2025-09-12 16:24:44 -04:00
select = ["E", "W", "F", "I", "ANN", "UP", "PTH"]
ignore = ["E713", "E711", "UP045", "PTH123", "PTH207"]
2025-08-08 15:32:30 -04:00
fixable = ["ALL"]
unfixable = []
2025-09-12 16:24:44 -04:00
[tool.ruff.lint.per-file-ignores]
# Ignore ANN and UP rules for all files except those in src/
"!src/**" = ["ANN", "UP", "PTH"]
[tool.ruff.lint.flake8-annotations]
allow-star-arg-any = true #allow Any for *args
ignore-fully-untyped = false #require type annotations
suppress-dummy-args = true #don't require annotation for "_" arguments
suppress-none-returning = false #require explicit None return types
2025-08-08 15:32:30 -04:00
[tool.ruff.format]
preview = true
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
docstring-code-format = true
docstring-code-line-length = "dynamic"
2025-01-02 13:29:47 -08:00
2022-11-04 14:49:36 -05:00
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
]
2022-11-04 14:49:36 -05:00
pythonpath = [
".",
"src",
"src/rocprof_compute_soc",
"src/utils",
"src/rocprof_compute_analyze/utils",
"tests"
]
2023-12-18 09:40:53 -06:00
markers = [
"section",
"kernel_execution",
"misc",
"mem",
"sort",
"join",
"verbosity",
"dispatch",
"list_metrics",
"filter_block",
"filter_kernel",
"dispatch",
"normal_unit",
"max_stat",
"time_unit",
"decimal",
"col",
"kernel_verbose",
"serial",
"L1_cache",
"num_xcds_spec_class",
"num_xcds_cli_output",
"sets_func",
2025-08-23 10:13:22 -04:00
"sets_perf",
"pc_sampling",
2025-09-23 13:17:08 -04:00
"live_attach_detach",
"roofline_1",
"roofline_2",
2025-09-22 18:07:13 +05:30
"path",
"sci_notion",
"iteration_multiplexing_1",
"iteration_multiplexing_2",
"iteration_multiplexing_stochastic",
"noise_clamp",
"torch_ops",
2023-12-18 09:40:53 -06:00
]