title: the best way to parse and validate YAML configuration file
body: <p>We have project which stores settings in YAML (settings file is generated by ansible scripts). Now we are using pyyaml to parse YAML format and marshmallow to validate settings. I'm pretty happy with storing setting in YAML, but I don't think marshmellow is the tool I need (schemas are hard to read, I do not need serialization for settings, want something like xsd). So what are the best practices of validating settings in project, maybe there is language independent way? (we are using python 2.7)</p>
  
  <p>YAML settings:</p>
  
  <pre><code>successive:
    worker:
      cds_process_number: 0 # positive integer or zero
      spider_interval: 10 # positive integer
      run_worker_sh: /home/lmakeev/CDS/releases/master/scripts/run_worker.sh # OS path
      allow:
        - "*" # regular expression
      deny:
        - "^[A-Z]{3}_.+$" # regular expression
  </code></pre>