Skip to content

Commit ea4d10e

Browse files
committed
Tidying up various code warnings and smells
1 parent 4840b73 commit ea4d10e

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

.landscape.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ strictness: high
44
doc-warnings: no
55
max-line-length: 120
66
ignore-paths:
7-
- ^scripts/
7+
- scripts/
8+
- pylint_django/compat.py

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ pylint-django
44
[![Build Status](https://travis-ci.org/landscapeio/pylint-django.png?branch=master)](https://travis-ci.org/landscapeio/pylint-django)
55
[![Code Quality](https://landscape.io/github/landscapeio/pylint-django/master/landscape.png)](https://landscape.io/github/landscapeio/pylint-django)
66
[![Coverage Status](https://coveralls.io/repos/landscapeio/pylint-django/badge.png)](https://coveralls.io/r/landscapeio/pylint-django)
7-
[![Latest Version](https://pypip.in/v/pylint-django/badge.png)](https://crate.io/packages/pylint-django)
8-
[![Downloads](https://pypip.in/d/pylint-django/badge.png)](https://crate.io/packages/pylint-django)
7+
[![Latest Version](https://img.shields.io/pypi/v/pylint-django.svg)](https://pypi.python.org/pypi/pylint-django)
98

109
# About
1110

pylint_django/augmentations/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Augmentations."""
2+
# pylint: disable=invalid-name
23
from pylint.checkers.base import DocStringChecker, NameChecker
34
from pylint.checkers.design_analysis import MisdesignChecker
45
from pylint.checkers.classes import ClassChecker

pylint_django/transforms/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def set_fake_locals(module):
2626
if module.name != package_name:
2727
return
2828
for class_name in class_names:
29-
module._locals[class_name] = fake._locals[class_name]
29+
module._locals[class_name] = fake._locals[class_name] # pylint: disable=protected-access
3030

3131
MANAGER.register_transform(nodes.Module, set_fake_locals)
3232

scripts/travis_skip.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
2-
import os, sys
2+
import os
3+
import sys
34
for skip_ver in os.environ.get('SKIP', '').split():
45
skip_ver = tuple(map(int, skip_ver.split('.')))
56
if skip_ver == sys.version_info[:len(skip_ver)]:

0 commit comments

Comments
 (0)