1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
Contributing the the Gedit Developer Plugins project
====================================================
You can learn about the goals of the project at
https://launchpad.net/pocket-lint
The project uses Bazaar for version control and is hosted on Launchpad. You
can get a copying of current code from the console using:
bzr branch lp:pocket-lint
Code style
----------
Python is expected to conform with PEP8, and running pocket-lint on itself
should report no issues.
Integrating pocket-lint to another tool
---------------------------------------
The three minimal lines required to check the format of a source file are:
from pocketlint.checkformat import Reporter, check_sources
reporter = Reporter(Reporter.CONSOLE)
check_sources(sources, reporter)
`sources` is a list of file paths. `reporter` is the mechanism used to report
issues. Reporter is a sink; the checkers do not know or care about what
happens. You can implement your own Reporter by providing this signature:
class MyReporter:
def __call__(self, line_no, message, icon=None,
base_dir=None, file_name=None):
|