seoeaa commented on PR #643:
URL: https://github.com/apache/incubator-answer/pull/643#issuecomment-1868540282

   checked the file   `import yamllint
   import yamllint.config
   import yamllint.linter
   
   def lint_yaml(file_path):
       with open(file_path, 'r', encoding='utf-8') as file:
           content = file.read()
       conf = yamllint.config.YamlLintConfig('extends: relaxed')
       issues = yamllint.linter.run(input=content, conf=conf, 
filepath=file_path)
       for issue in issues:
           print(issue)
   
   # Пример использования
   lint_yaml('ru_RU.yaml')`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to