[chirp_devel] [PATCH 06/11] Fix pylint issues in __init__.py files (#159)

Zachary T Welch
Sun Mar 8 16:54:20 PDT 2015


# HG changeset patch
# User Zachary T Welch <zach at mandolincreekfarm.com>
# Fake Node ID 12e8a0df610652585645d3278866c68505abe60c

Fix pylint issues in __init__.py files (#159)


diff --git a/chirp/__init__.py b/chirp/__init__.py
index 7b48821..5a204b6 100644
--- a/chirp/__init__.py
+++ b/chirp/__init__.py
@@ -13,6 +13,12 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+"""
+Contains all of the core CHIRP modules.
+
+The driver modules are located in chirp.drivers, and the GTK GUI modules
+are located in chirp.ui.
+"""
 import os
 import sys
 from glob import glob
diff --git a/chirp/drivers/__init__.py b/chirp/drivers/__init__.py
index ea9dd2c..c4b10ce 100644
--- a/chirp/drivers/__init__.py
+++ b/chirp/drivers/__init__.py
@@ -1,3 +1,23 @@
+# Copyright 2008 Dan Smith <dsmith at danplanet.com>
+# Copyright 2015 Zachary T Welch <zach at mandolincreekfarm.com>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+"""
+Contains all of the CHIRP driver modules.
+"""
+
 import os
 import sys
 from glob import glob
diff --git a/chirp/ui/__init__.py b/chirp/ui/__init__.py
index a2a6f35..443df21 100644
--- a/chirp/ui/__init__.py
+++ b/chirp/ui/__init__.py
@@ -12,3 +12,7 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+"""
+Contains modules that implement the CHIRP GUI.
+"""
diff --git a/csvdump/__init__.py b/csvdump/__init__.py
index e418fca..ea5f0e0 100644
--- a/csvdump/__init__.py
+++ b/csvdump/__init__.py
@@ -14,3 +14,7 @@
 #
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+"""
+Implements a CSV dump utility.
+"""
diff --git a/tests/__init__.py b/tests/__init__.py
index e69de29..303aecc 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -0,0 +1,18 @@
+# Copyright 2008 Dan Smith <dsmith at danplanet.com>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+"""
+Contains the CHIRP test suite.
+"""
diff --git a/tests/unit/__init__.py b/tests/unit/__init__.py
index e69de29..3c3fe38 100644
--- a/tests/unit/__init__.py
+++ b/tests/unit/__init__.py
@@ -0,0 +1,18 @@
+# Copyright 2008 Dan Smith <dsmith at danplanet.com>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+"""
+Contains the CHIRP unit tests.
+"""
diff --git a/tools/cpep8.lintful b/tools/cpep8.lintful
index 02ac62e..00c7919 100644
--- a/tools/cpep8.lintful
+++ b/tools/cpep8.lintful
@@ -1,7 +1,6 @@
 # cpep8.lintful: The list of files that do not meet pylint standards.
 # DO NOT ADD NEW FILES!!  Instead, fix the code to be compliant.
 # Over time, this list should shrink and (eventually) be eliminated.
-./chirp/__init__.py
 ./chirp/bandplan.py
 ./chirp/bandplan_au.py
 ./chirp/bandplan_iaru_r1.py
@@ -13,7 +12,6 @@
 ./chirp/chirp_common.py
 ./chirp/detect.py
 ./chirp/directory.py
-./chirp/drivers/__init__.py
 ./chirp/drivers/alinco.py
 ./chirp/drivers/anytone.py
 ./chirp/drivers/ap510.py
@@ -98,7 +96,6 @@
 ./chirp/pyPEG.py
 ./chirp/radioreference.py
 ./chirp/settings.py
-./chirp/ui/__init__.py
 ./chirp/ui/bandplans.py
 ./chirp/ui/bankedit.py
 ./chirp/ui/clone.py
@@ -123,16 +120,13 @@
 ./chirpc
 ./chirpw
 ./csvdump.py
-./csvdump/__init__.py
 ./csvdump/csvapp.py
 ./csvdump/csvdump.py
 ./locale/check_parameters.py
 ./rpttool
 ./setup.py
 ./share/make_supported.py
-./tests/__init__.py
 ./tests/run_tests
-./tests/unit/__init__.py
 ./tests/unit/base.py
 ./tests/unit/test_bitwise.py
 ./tests/unit/test_chirp_common.py




More information about the chirp_devel mailing list