forked from PathagarBooks/pathagar
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Launch pylint with pylint-django plugins At this time, only report Warnings and Errors Remove mysql dependencies because default configuration use sqlite, we should add dedicated howto to enable it. Fix error in exportbooks command. Disable pylint for no-member for save method for FileField (check pylint-dev/pylint-django#60)
- Loading branch information
Showing
6 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
langague: python | ||
distr: trusty | ||
sudo: required | ||
python: | ||
- 2.7 | ||
|
||
before_install: | ||
- sudo apt-get install -y python-virtualenv | ||
- virtualenv /tmp/venv | ||
- source /tmp/venv/bin/activate | ||
- pip install -r requirements.pip | ||
- pip install -r test-requirements.pip | ||
|
||
script: | ||
- scripts/run-pylint.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
Django==1.4.5 | ||
django-tagging==0.3.1 | ||
django-sendfile==0.3.6 | ||
MySQL-python>=1.2.3 | ||
lxml==3.4.4 | ||
django-taggit==0.14.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
for file in $(git ls-files -- '*.py' | grep -vE 'deploy|fabfile'); do | ||
echo "==== $file" | ||
pylint --rcfile=pylintrc --load-plugins pylint_django --score=no --reports=no --disable=R,C $file | ||
RET=$? # pylint returns bitfield of found issues | ||
ERR=$(($RET&3)) # Fatal is 1 and Error is 2 | ||
if [[ $ERR -ne 0 ]]; then | ||
echo "Aborting" | ||
exit 1 | ||
fi | ||
done | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pylint==1.7.1 | ||
pylint-django==0.7.2 |