Skip to content

Commit 1446047

Browse files
committed
Update changelog
1 parent bd2d761 commit 1446047

File tree

4 files changed

+31
-39
lines changed

4 files changed

+31
-39
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## Version 0.9.0
4+
5+
* Fork as [django-pylint](https://github.com/MrSenko/django-pylint) as a Django 2 & Python 3 only package
6+
* Update tests for latest version of pylint (>=1.8)
7+
* Add testing with Django 2.0.x, Python 3.5 and 3.6
8+
* Only testing with Django 1.11.x LTS from all previous Django versions
9+
* Stop testing on Python 2
10+
311
## Version 0.7.4
412
* [#88](https://github.com/landscapeio/pylint-django/pull/88) Fixed builds with Django 1.10 (thanks to [federicobond](https://github.com/federicobond))
513
* [#91](https://github.com/landscapeio/pylint-django/pull/91) Fixed race condition when running with pylint parallel execution mode (thanks to [jeremycarroll](https://github.com/jeremycarroll))

CONTRIBUTORS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
* [jproffitt](https://github.com/jproffitt)
66
* [lhupfeldt](https://github.com/lhupfeldt)
77
* [smirolo](https://github.com/smirolo)
8-
* [mbertolacci](https://github.com/mbertolacci)
8+
* [mbertolacci](https://github.com/mbertolacci)
9+
* [atodorov](https://github.com/atodorov)

README.md

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,24 @@ pylint-django
22
=============
33

44
[![Build Status](https://travis-ci.org/MrSenko/django-pylint.svg?branch=master)](https://travis-ci.org/MrSenko/django-pylint)
5-
[![Code Quality](https://landscape.io/github/MrSenko/django-pylint/master/landscape.png)](https://landscape.io/github/MrSenko/django-pylint)
65
[![Coverage Status](https://coveralls.io/repos/MrSenko/django-pylint/badge.svg)](https://coveralls.io/r/MrSenko/django-pylint)
7-
[![Latest Version](https://img.shields.io/pypi/v/django-pylint.svg)](https://pypi.python.org/pypi/django-pylint)
86

97
# About
108

11-
`pylint-django` is a [Pylint](http://pylint.org) plugin for improving code analysis for when analysing code using Django. It is also used by the [Prospector](https://github.com/landscapeio/prospector) tool.
9+
`django-pylint` is a [Pylint](http://pylint.org) plugin for improving code analysis
10+
for when analysing code using Django. This package is a currently maintained fork of
11+
[pylint-django](https://github.com/landscapeio/pylint-django)!
1212

1313
## Usage
1414

1515
#### Pylint
1616

17-
Ensure `pylint-django` is installed and on your path (`pip install pylint-django`), and then run pylint:
17+
Ensure `django-pylint` is installed and on your path (`pip install django-pylint`), and then run pylint:
1818

1919
```
2020
pylint --load-plugins pylint_django [..other options..]
2121
```
2222

23-
#### Prospector
24-
25-
If you have `prospector` installed, then `pylint-django` will already be installed as a dependency, and will be activated automatically if Django is detected.
26-
27-
```
28-
prospector [..other options..]
29-
```
30-
3123
# Features
3224

3325
* Prevents warnings about Django-generated attributes such as `Model.objects` or `Views.request`.
@@ -39,29 +31,30 @@ prospector [..other options..]
3931
# Contributing
4032

4133
Please feel free to add your name to the `CONTRIBUTORS.md` file if you want to be
42-
credited when pull requests get merged. You can also add to the `CHANGELOG.md` file
43-
if you wish, although I'll also do that when merging if not.
34+
credited when pull requests get merged. You can also add to the `CHANGELOG.md` file.
4435

4536
## Tests
4637

4738
The structure of the test package follows that from pylint itself.
4839

4940
It is fairly simple: create a module starting with `func_` followed by
5041
a test name, and insert into it some code. The tests will run pylint
51-
against these modules. If the idea is that no messages now occur, then
52-
that is fine, just check to see if it works by running `scripts/test.sh`.
42+
against these modules. If the idea is that no messages now occur, then
43+
that is fine, just check to see if it works by running `scripts/test.sh`.
5344

5445
Ideally, add some pylint error suppression messages to the file to prevent
5546
spurious warnings, since these are all tiny little modules not designed to
5647
do anything so there's no need to be perfect.
5748

5849
It is possible to make tests with expected error output, for example, if
5950
adding a new message or simply accepting that pylint is supposed to warn.
60-
the `messages` directory contains a list of files which should match the
61-
name of the test and contain error type, line number, class and expected text.
62-
These are useful to quickly add "expected messages".
51+
Add a `.txt` file which should match the name of the test and contains
52+
error type, line number, class and expected text. The test code itself
53+
should also be annotated with comments on lines which are supposed to
54+
trigger pylint messages! See `func_model_does_not_use_unicode_py33`
55+
for example!
6356

6457

6558
# License
6659

67-
`pylint-django` is available under the GPLv2 license.
60+
`django-pylint` is available under the GPLv2 license.

setup.py

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
import sys
66

77

8-
_version = '0.7.4'
8+
_version = '0.9.0'
99
_packages = find_packages(exclude=["*.tests", "*.tests.*", "tests.*", "tests"])
1010

11-
_short_description = "pylint-django is a Pylint plugin to aid Pylint in recognising and understanding" \
11+
_short_description = "django-pylint is a Pylint plugin to aid Pylint in recognising and understanding" \
1212
" errors caused when using the Django framework"
1313

1414

@@ -32,27 +32,17 @@
3232

3333

3434
_install_requires = [
35-
'pylint-plugin-utils>=0.2.1'
35+
'pylint-plugin-utils>=0.2.1',
36+
'pylint>=1.8',
3637
]
3738

38-
39-
if sys.version_info < (2, 7):
40-
# pylint 1.4 dropped support for Python 2.6
41-
_install_requires += [
42-
'pylint>=1.0,<1.4',
43-
'astroid>=1.0,<1.3.0',
44-
'logilab-common>=0.60.0,<0.63',
45-
]
46-
else:
47-
_install_requires += [
48-
'pylint>=1.0',
49-
]
50-
5139
setup(
52-
name='pylint-django',
53-
url='https://github.com/landscapeio/pylint-django',
40+
name='django-pylint',
41+
url='https://github.com/MrSenko/django-pylint',
5442
author='landscape.io',
5543
author_email='[email protected]',
44+
maintainer='Alexander Todorov',
45+
maintainer_email='[email protected]',
5646
description=_short_description,
5747
version=_version,
5848
packages=_packages,

0 commit comments

Comments
 (0)