You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-23
Original file line number
Diff line number
Diff line change
@@ -10,33 +10,19 @@ pylint-django
10
10
11
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.
12
12
13
-
#Installation
13
+
## Usage
14
14
15
-
```
16
-
pip install pylint-django
17
-
```
18
-
19
-
**WARNING:**`pylint-django` requires `Django` to be installed. Our `setup.py` file doesn't
20
-
specify which particular version of Django is going to be installed because we have no idea
21
-
what version is used inside your project. The latest version of Django will be installed if
22
-
it has not been installed beforehand! DO NOT report issues about mismatching Django versions
23
-
if that happens. Instead get your testing environment sorted out and make sure that you have
24
-
the appropriate version of Django installed!
25
-
26
-
# Usage
27
-
28
-
## Pylint
15
+
#### Pylint
29
16
30
-
Ensure `pylint-django` is installed and on your path and then execute:
17
+
Ensure `pylint-django` is installed and on your path (`pip install pylint-django`), and then run pylint:
If you have `prospector` installed, then `pylint-django` will already be installed as a dependency,
39
-
and will be activated automatically if Django is detected.
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.
40
26
41
27
```
42
28
prospector [..other options..]
@@ -56,14 +42,14 @@ Please feel free to add your name to the `CONTRIBUTORS.md` file if you want to b
56
42
credited when pull requests get merged. You can also add to the `CHANGELOG.md` file
57
43
if you wish, although I'll also do that when merging if not.
58
44
59
-
# Tests
45
+
##Tests
60
46
61
47
The structure of the test package follows that from pylint itself.
62
48
63
49
It is fairly simple: create a module starting with `func_` followed by
64
50
a test name, and insert into it some code. The tests will run pylint
65
-
against these modules. If the idea is that no messages now occur, then
66
-
that is fine, just check to see if it works by running `scripts/test.sh`.
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`.
67
53
68
54
Ideally, add some pylint error suppression messages to the file to prevent
69
55
spurious warnings, since these are all tiny little modules not designed to
@@ -78,4 +64,4 @@ These are useful to quickly add "expected messages".
78
64
79
65
# License
80
66
81
-
`pylint-django` is available under the GPLv2 license.
67
+
`pylint-django` is available under the GPLv2 license.
0 commit comments