Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
datamodelvalidator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Euclid
datamodelvalidator
Commits
1eac674e
Commit
1eac674e
authored
Jun 30, 2017
by
Teake Nutma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docstring checking to CI and split various task into different jobs
parent
742e0239
Pipeline
#1129
failed with stage
in 2 minutes and 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
10 deletions
+40
-10
.gitlab-ci.yml
.gitlab-ci.yml
+16
-4
tox.ini
tox.ini
+24
-6
No files found.
.gitlab-ci.yml
View file @
1eac674e
...
...
@@ -9,10 +9,22 @@ cache:
-
.pip-cache
-
.tox
lint
:
stages
:
-
test
lint_docs
:
stage
:
test
allow_failure
:
true
script
:
-
tox -e lint_docs
lint_style
:
stage
:
test
allow_failure
:
true
script
:
-
tox -e lint
-
tox -e lint
_style
test
:
lint_syntax
:
stage
:
test
script
:
-
tox -e
test
-
tox -e
lint_syntax
tox.ini
View file @
1eac674e
...
...
@@ -6,13 +6,31 @@ commands=
python
-m
pytest
--cov
=
datamodelvalidator/ tests/
[testenv:lint]
[testenv:lint
_style
]
deps
=
pep8
pylint
commands
=
# Pylint 1.6.4 does not fully support PEP 484 type hints, which is why we also use pep8.
# When pylint 2.0 is released we could rely solely on pylint (without the --disable=R,C option) and remove pep8.
pep8
--max-line-length
=
120 datamodelvalidator/ tests/
# no-value-for-parameter is disabled because pylint doesn't take decorators into account (pylint issue #207
pylint
--max-line-length
=
120 --reports=no --disable=R,C,no-value-for-parameter,protected-access --extension-pkg-whitelist=lxml datamodelvalidator
[testenv:lint_syntax]
deps
=
pylint
commands
=
# no-value-for-parameter is disabled because pylint doesn't take decorators into account (see pylint issue #207)
pylint
datamodelvalidator
\
--reports
=
no --score=no --max-line-length=120 --disable=C,R0903,no-value-for-parameter,protected-access
\
--extension-pkg-whitelist=lxml
[testenv:lint_docs]
ignore_errors
=
True
deps
=
pylint
pydocstyle
commands
=
pylint
datamodelvalidator
\
--reports
=
no --score=no
\
--load-plugins=pylint.extensions.docparams
\
--accept-no-param-doc=no --accept-no-raise-doc=no --accept-no-return-doc=no --accept-no-yields-doc=no
\
--disable=all --enable=C0111,parameter_documentation
pydocstyle
datamodelvalidator
--convention
=
numpy --add-ignore=D1
Write
Preview
Markdown
is supported
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