Skip to content

Commit

Permalink
ignore flake8 errors for import access points
Browse files Browse the repository at this point in the history
releng-tool promotes callers import from the `releng_tool` module for
various definitions to include in their own implementations. flake8
makes the claim that they are not used; however, the alias imports are
documented for users to take advantage of.

This change also ignores the wildcard imports in the legacy namespace as
they we always expected a 1-to-1 mapping until the `releng` namespace is
dropped.

Signed-off-by: James Knight <james.d.knight@live.com>
  • Loading branch information
jdknight committed Sep 28, 2020
1 parent 3954dc3 commit 9039af9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions releng/__init__.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2020 releng-tool
# flake8: noqa

from releng_tool import *

Expand Down
1 change: 1 addition & 0 deletions releng/api/__init__.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
# Copyright 2020 releng-tool
# flake8: noqa

from releng_tool.api import *

Expand Down
1 change: 1 addition & 0 deletions releng_tool/__init__.py
Expand Up @@ -20,6 +20,7 @@
# Note: changes introduced here should be synonymous with engine-shared helpers:
# RelengEngine._prepareSharedEnvironment

# flake8: noqa
from .util.env import set_env_value as releng_env
from .util.io import ensure_dir_exists as releng_mkdir
from .util.io import execute as releng_execute
Expand Down

0 comments on commit 9039af9

Please sign in to comment.