Fix linter warnings

This commit is contained in:
Ivan Kravets
2016-09-13 20:39:04 +03:00
parent 05bbd4a7f8
commit d2a45245e2
2 changed files with 6 additions and 8 deletions

View File

@ -8,7 +8,7 @@ PlatformIO 3.0
~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~
* Improved Project Generator when custom ``--project-option`` is passed to * Improved Project Generator when custom ``--project-option`` is passed to
`platformio init <http://docs.platformio.org/en/stable/userguide/cmd_init.html>`_ `platformio init <http://docs.platformio.org/en/stable/userguide/cmd_init.html>`__
command command
* Disable SSL Server-Name-Indication for Python < 2.7.9 * Disable SSL Server-Name-Indication for Python < 2.7.9
* Return valid exit code from ``plaformio test`` command * Return valid exit code from ``plaformio test`` command

View File

@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# pylint: disable=too-many-arguments,too-many-locals, too-many-branches
from os import getcwd, makedirs from os import getcwd, makedirs
from os.path import isdir, isfile, join from os.path import isdir, isfile, join
from shutil import copyfile from shutil import copyfile
@ -287,9 +289,8 @@ def init_cvs_ignore(project_dir):
fp.writelines(current) fp.writelines(current)
def fill_project_envs( # pylint: disable=too-many-arguments,too-many-locals def fill_project_envs(ctx, project_dir, board_ids, project_option, env_prefix,
ctx, project_dir, board_ids, project_option, env_prefix, force_download):
force_download):
installed_boards = PlatformManager().get_installed_boards() installed_boards = PlatformManager().get_installed_boards()
content = [] content = []
used_boards = [] used_boards = []
@ -317,10 +318,7 @@ def fill_project_envs( # pylint: disable=too-many-arguments,too-many-locals
continue continue
used_boards.append(id_) used_boards.append(id_)
envopts = { envopts = {"platform": manifest['platform'], "board": id_}
"platform": manifest['platform'],
"board": id_
}
# find default framework for board # find default framework for board
frameworks = manifest.get("frameworks") frameworks = manifest.get("frameworks")
if frameworks: if frameworks: