diff options
author | spreis <spreis@yandex-team.com> | 2024-04-11 19:39:48 +0300 |
---|---|---|
committer | spreis <spreis@yandex-team.com> | 2024-04-11 19:52:12 +0300 |
commit | c7906f50268a8a123f9c00e5e22779e695d76a22 (patch) | |
tree | 0b986ffde75533c9fe57da21526833dec90df555 | |
parent | 6e92acd38db2b95841e460129787b86b2fd445d8 (diff) | |
download | ydb-c7906f50268a8a123f9c00e5e22779e695d76a22.tar.gz |
Fix path of config
435fc8c2256c7aeaf416cc1ef3506c4173396efa
-rw-r--r-- | build/conf/python.conf | 2 | ||||
-rw-r--r-- | build/plugins/pybuild.py | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/build/conf/python.conf b/build/conf/python.conf index a4a0b510c2..f1b25a2e36 100644 --- a/build/conf/python.conf +++ b/build/conf/python.conf @@ -246,7 +246,7 @@ macro STYLE_PYTHON(pyproject...) { # tag:python-specific tag:test STYLE_RUFF_VALUE=no -RUFF_CONFIG_PATHS_FILE=build/config/tests/ruff/ruff_config_paths.json +RUFF_CONFIG_PATHS_FILE=${ARCADIA_ROOT}/build/config/tests/ruff/ruff_config_paths.json ### @usage: STYLE_RUFF() ### ### Check python3 sources for style issues using ruff. diff --git a/build/plugins/pybuild.py b/build/plugins/pybuild.py index 65470a8c75..1853d3524b 100644 --- a/build/plugins/pybuild.py +++ b/build/plugins/pybuild.py @@ -217,7 +217,10 @@ def add_python_lint_checks(unit, py_ver, files): params = ["ruff", "tools/ruff_linter/bin/ruff_linter"] params += ["FILES"] + resolved_files params += ["GLOBAL_RESOURCES", resource] - configs = [unit.get('RUFF_CONFIG_PATHS_FILE'), 'build/config/tests/ruff/ruff.toml'] + get_ruff_configs(unit) + configs = [ + rootrel_arc_src(unit.get('RUFF_CONFIG_PATHS_FILE'), unit), + 'build/config/tests/ruff/ruff.toml', + ] + get_ruff_configs(unit) params += ['CONFIGS'] + configs unit.on_add_linter_check(params) |