Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
logilab-common
Commits
64dda1986e98
Commit
e1ec5a7f
authored
Feb 17, 2021
by
Laurent Peuch
Browse files
chore(yamllint): add and integrate yamllint
parent
b6cdeed12fce
Pipeline
#36729
failed with stages
in 1 minute and 3 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
64dda198
image
:
python
stages
:
-
lint
-
tests
-
after-tests
...
...
@@ -108,5 +109,16 @@ trigger-readthedocs:
-
branch/default
stage
:
after-tests
script
:
# regarding the " everywhere when there is a '%': yaml is extremly weird when % are involved
-
curl -X POST -d "token=${READTHEDOCS_TOKEN}" https://readthedocs.org/api/v2/webhook/logilab-common/89595/ -w "\nhttp code:"\ "%{http_code}\n" -f
# regarding the " everywhere when there is a '%': yaml is extremly weird when % are involved
-
curl -X POST -d "token=${READTHEDOCS_TOKEN}" https://readthedocs.org/api/v2/webhook/logilab-common/89595/ -w "\nhttp code:"\ "%{http_code}\n" -f
yamllint
:
stage
:
lint
rules
:
-
changes
:
-
"
**/*.yaml"
-
"
*.yaml"
-
"
**/*.yml"
-
"
*.yml"
script
:
-
tox -e yamllint
.yamllint
0 → 100644
View file @
64dda198
extends: default
rules:
document-start: disable
line-length: disable
indentation:
spaces: 2
MANIFEST.in
View file @
64dda198
...
...
@@ -18,3 +18,4 @@ prune debian
prune docs/_build
exclude .hgrc
exclude .gitlab-ci.yml
exclude .yamllint
tox.ini
View file @
64dda198
[tox]
envlist
=
py3,check-manifest,mypy,flake8,black,black-run
envlist
=
py3,check-manifest,mypy,flake8,black,black-run
,yamllint
[testenv]
deps
=
...
...
@@ -94,3 +94,9 @@ commands =
dpkg-buildpackage -us -uc --no-check-builddeps --build=source "
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
.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment