Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mhc_rank
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Patrick Skillman-Lawrence
mhc_rank
Commits
6595436f
Commit
6595436f
authored
8 years ago
by
Alex Rubinsteyn
Browse files
Options
Downloads
Patches
Plain Diff
added travis config and lint script
parent
e4d6ae74
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.travis.yaml
+42
-0
42 additions, 0 deletions
.travis.yaml
lint.sh
+15
-0
15 additions, 0 deletions
lint.sh
pylintrc
+5
-0
5 additions, 0 deletions
pylintrc
with
62 additions
and
0 deletions
.travis.yaml
0 → 100644
+
42
−
0
View file @
6595436f
sudo
:
false
# Use container-based infrastructure
language
:
python
python
:
-
"
2.7"
-
"
3.4"
before_install
:
# Commands below copied from: http://conda.pydata.org/docs/travis.html
# We do this conditionally because it saves us some downloading if the
# version is the same.
-
if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
-
bash miniconda.sh -b -p $HOME/miniconda
-
export PATH="$HOME/miniconda/bin:$PATH"
# reset the shell's lookup table for program name to path mappings
-
hash -r
-
conda config --set always_yes yes --set changeps1 no
-
conda update -q conda
# Useful for debugging any issues with conda
-
conda info -a
addons
:
apt
:
packages
:
# install pandoc for use with pypandoc for converting the README
# from markdown to RST
-
pandoc
install
:
-
>
conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
numpy scipy nose pandas matplotlib
-
source activate test-environment
-
pip install pypandoc
-
pip install -r requirements.txt
-
pip install .
-
pip install coveralls
script
:
# run tests
-
nosetests test --with-coverage --cover-package=mhcflurry && ./lint.sh
after_success
:
coveralls
This diff is collapsed.
Click to expand it.
lint.sh
0 → 100644
+
15
−
0
View file @
6595436f
#!/bin/bash
set
-o
errexit
# disabling several categories of errors due to false positives in pylint,
# see these issues:
# - https://bitbucket.org/logilab/pylint/issues/701/false-positives-with-not-an-iterable-and
# - https://bitbucket.org/logilab/pylint/issues/58
find
.
-name
'*.py'
\
| xargs pylint
\
--errors-only
\
--disable
=
print-statement,unsubscriptable-object,not-an-iterable,no-member
echo
'Passes pylint check'
This diff is collapsed.
Click to expand it.
pylintrc
0 → 100644
+
5
−
0
View file @
6595436f
[TYPECHECK]
# Without ignoring this, we get errors like:
# E:249,20: Module 'numpy' has no 'nan' member (no-member)
ignored-modules = numpy
ignored-classes = nose.tools
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment