Skip to content

Commit

Permalink
style: disable pylint for desktop and mobile body
Browse files Browse the repository at this point in the history
  • Loading branch information
leehanchung authored and hurshd0 committed Apr 17, 2020
1 parent 0bcdf2e commit b70a432
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 4 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Push

on: push

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: STEP 1. Check out repo
uses: actions/checkout@v2
#===============================================#
- name: STEP 2. Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
#===============================================#
- name: STEP 3. Install pipenv dependencies
run: |
python -m pip install --upgrade pip
pip install pipenv
python -m pipenv install --dev --system
#===============================================#
- name: STEP 4. Lint with pylint
run: |
pipenv run pylint --rcfile=.pylintrc ncov19_dash
#===============================================#
- name: STEP 5. Test with pytest
env:
MONGODB_CONNECTION_URI: ${{ secrets.MONGODB_CONNECTION_URI }}
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
TWITTER_CONSUMER_SECRET_KEY: ${{ secrets.TWITTER_CONSUMER_SECRET_KEY }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
NEWS_API_KEY: ${{ secrets.NEWS_API_KEY }}
COUNTY_URL: ${{ secrets.COUNTY_URL }}
STATE_CONFIRMED: ${{ secrets.STATE_CONFIRMED }}
STATE_DEATH: ${{ secrets.STATE_DEATH }}
NYT_STATE: ${{ secrets.NYT_STATE }}
run: |
coverage run --omit */.virtualenvs/* -m pytest ncov19_dash
#===============================================#
- name: STEP 6. Generate coverage reports
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN}}
run: |
coveralls
26 changes: 22 additions & 4 deletions ncov19_dash/layout/desktop_body.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pylint: disable=line-too-long
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
Expand Down Expand Up @@ -59,11 +60,20 @@
),
],
style=tabs_styles,
colors={"border": None, "primary": None, "background": None},
colors={
"border": None,
"primary": None,
"background": None,
},
),
className="left-tabs",
),
dbc.CardBody(html.P(id="feed-content", className="left-col-feed-cards-text")),
dbc.CardBody(
html.P(
id="feed-content",
className="left-col-feed-cards-text",
),
),
]
)

Expand Down Expand Up @@ -127,7 +137,11 @@
className="d-flex justify-content-between top-bar-us-map-heading-content",
),
html.Div(
dcc.Graph(id="us-map", style={"height": "60vh"}), id="map-container"
dcc.Graph(
id="us-map",
style={"height": "60vh"},
),
id="map-container",
),
]
),
Expand Down Expand Up @@ -175,7 +189,11 @@
width=8,
),
# TWITTER & NEWS FEED COL
dbc.Col(feed_tabs, className="left-col-twitter-feed-content", width=2),
dbc.Col(
feed_tabs,
className="left-col-twitter-feed-content",
width=2,
),
],
no_gutters=True,
className="middle-map-news-content mt-3",
Expand Down
1 change: 1 addition & 0 deletions ncov19_dash/layout/mobile_body.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pylint: disable=line-too-long
import dash_bootstrap_components as dbc
import dash_core_components as dcc
import dash_html_components as html
Expand Down

0 comments on commit b70a432

Please sign in to comment.