chore(pylint): Remove top-level disable (#16589)

* chore(pylint): Remove top-level disable

* Update examples.py

* Update command.py

Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
John Bodley
2021-09-15 09:30:23 -07:00
committed by GitHub
parent adc3d24c21
commit fb4650a6eb
45 changed files with 681 additions and 655 deletions

View File

@@ -14,8 +14,6 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# pylint: disable=too-few-public-methods
import json
import logging
from typing import Any, Dict, List, Optional, Union
@@ -85,7 +83,7 @@ def get_url(chart: Slice, extra_filters: Optional[Dict[str, Any]] = None) -> str
return f"{baseurl}{chart.get_explore_url(overrides=extra_filters)}"
class Strategy:
class Strategy: # pylint: disable=too-few-public-methods
"""
A cache warm up strategy.
@@ -115,7 +113,7 @@ class Strategy:
raise NotImplementedError("Subclasses must implement get_urls!")
class DummyStrategy(Strategy):
class DummyStrategy(Strategy): # pylint: disable=too-few-public-methods
"""
Warm up all charts.
@@ -140,7 +138,7 @@ class DummyStrategy(Strategy):
return [get_url(chart) for chart in charts]
class TopNDashboardsStrategy(Strategy):
class TopNDashboardsStrategy(Strategy): # pylint: disable=too-few-public-methods
"""
Warm up charts in the top-n dashboards.
@@ -187,7 +185,7 @@ class TopNDashboardsStrategy(Strategy):
return urls
class DashboardTagsStrategy(Strategy):
class DashboardTagsStrategy(Strategy): # pylint: disable=too-few-public-methods
"""
Warm up charts in dashboards with custom tags.