Skip to content

Commit

Permalink
Tidying up various code warnings and smells
Browse files Browse the repository at this point in the history
  • Loading branch information
carlio committed Dec 1, 2015
1 parent 4840b73 commit ea4d10e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .landscape.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ strictness: high
doc-warnings: no
max-line-length: 120
ignore-paths:
- ^scripts/
- scripts/
- pylint_django/compat.py
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ pylint-django
[![Build Status](https://travis-ci.org/landscapeio/pylint-django.png?branch=master)](https://travis-ci.org/landscapeio/pylint-django)
[![Code Quality](https://landscape.io/github/landscapeio/pylint-django/master/landscape.png)](https://landscape.io/github/landscapeio/pylint-django)
[![Coverage Status](https://coveralls.io/repos/landscapeio/pylint-django/badge.png)](https://coveralls.io/r/landscapeio/pylint-django)
[![Latest Version](https://pypip.in/v/pylint-django/badge.png)](https://crate.io/packages/pylint-django)
[![Downloads](https://pypip.in/d/pylint-django/badge.png)](https://crate.io/packages/pylint-django)
[![Latest Version](https://img.shields.io/pypi/v/pylint-django.svg)](https://pypi.python.org/pypi/pylint-django)

# About

Expand Down
1 change: 1 addition & 0 deletions pylint_django/augmentations/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Augmentations."""
# pylint: disable=invalid-name
from pylint.checkers.base import DocStringChecker, NameChecker
from pylint.checkers.design_analysis import MisdesignChecker
from pylint.checkers.classes import ClassChecker
Expand Down
2 changes: 1 addition & 1 deletion pylint_django/transforms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def set_fake_locals(module):
if module.name != package_name:
return
for class_name in class_names:
module._locals[class_name] = fake._locals[class_name]
module._locals[class_name] = fake._locals[class_name] # pylint: disable=protected-access

MANAGER.register_transform(nodes.Module, set_fake_locals)

Expand Down
3 changes: 2 additions & 1 deletion scripts/travis_skip.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
import os, sys
import os
import sys
for skip_ver in os.environ.get('SKIP', '').split():
skip_ver = tuple(map(int, skip_ver.split('.')))
if skip_ver == sys.version_info[:len(skip_ver)]:
Expand Down

0 comments on commit ea4d10e

Please sign in to comment.