Commit 4e3c8694 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

feat(skeleton): add yamllint

parent 1a891fdfbc73
......@@ -47,7 +47,7 @@ class DevCtlTC(TestCase):
expected_project_content = ['setup.py', 'test', 'MANIFEST.in',
'cubicweb_foo',
'cubicweb-foo.spec', 'debian', 'README',
'tox.ini', '.gitlab-ci.yml']
'tox.ini', '.gitlab-ci.yml', '.yamllint']
expected_package_content = ['i18n', 'hooks.py', 'views.py',
'migration', 'entities.py', 'schema.py',
'__init__.py', 'data', '__pkginfo__.py']
......
......@@ -33,6 +33,17 @@ black:
stage: tests
script: tox -e black
yamllint:
rules:
- changes:
- "**/*.yaml"
- "**/*.yml"
stage: tests
before_script:
- pip install tox
script:
- tox -e yamllint
# If you have mypy set up
# mypy:
# stage: tests
......
ignore: |
.tox/
node_modules/
extends: default
rules:
document-start: disable
line-length: disable
......@@ -9,3 +9,4 @@ include *.ini
prune debian
exclude cubicweb-%(cubename)s.spec
exclude .gitlab-ci.yml
exclude .yamllint
......@@ -79,6 +79,12 @@ commands =
sh -c "cd dist && dcmd zip latest.zip *.changes"
http -f POST https://{env:JENKINS_USER}:{env:JENKINS_TOKEN}@jenkins.intra.logilab.fr/job/pkg-from-dsc/buildWithParameters DIST=buster source.zip@dist/latest.zip REPO=buster PUBLISH=true
[testenv:yamllint]
skip_install = true
deps = yamllint
commands =
yamllint .
[flake8]
basepython = python3
format = pylint
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment