Browse Source

Fix path of config
435fc8c2256c7aeaf416cc1ef3506c4173396efa

spreis 11 months ago
parent
commit
c7906f5026
2 changed files with 5 additions and 2 deletions
  1. 1 1
      build/conf/python.conf
  2. 4 1
      build/plugins/pybuild.py

+ 1 - 1
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.

+ 4 - 1
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)