diff options
author | Christian Cleberg <hello@cleberg.net> | 2025-04-05 13:43:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-05 13:43:01 -0500 |
commit | bee22b97b652cd04fa470d7f31c3b917e44f3ab9 (patch) | |
tree | e1ec29a3388b94a8d41e3b28ca1f2357f3efaec7 /project_management | |
parent | 3041472781997ff66c5f9fa80a7f5ffbd284a438 (diff) | |
download | audit-tools-bee22b97b652cd04fa470d7f31c3b917e44f3ab9.tar.gz audit-tools-bee22b97b652cd04fa470d7f31c3b917e44f3ab9.tar.bz2 audit-tools-bee22b97b652cd04fa470d7f31c3b917e44f3ab9.zip |
migrate from pylint to ruff (#1)
* migrate from pylint to ruff
* Commit from GitHub Actions (Pylint)
* rename pylint.yml to ruff.yml
* only run ruff-action when python files change
---------
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'project_management')
-rw-r--r-- | project_management/dash/app.py | 79 |
1 files changed, 41 insertions, 38 deletions
diff --git a/project_management/dash/app.py b/project_management/dash/app.py index 2a01911..ea530a6 100644 --- a/project_management/dash/app.py +++ b/project_management/dash/app.py @@ -8,51 +8,54 @@ import pandas as pd import plotly.express as px # Incorporate data -df = pd.read_excel('project_data.xlsx') +df = pd.read_excel("project_data.xlsx") # Initialize the app app = Dash() # App layout app.layout = [ - html.H1(children='Project Dashboard', style={'textAlign':'center'}), - html.Div(children = [ - dcc.Graph( - figure=px.histogram( - df, - x='Preparer', - color='High Priority?', - title='Control Count by Preparer' - ), - style = {'flex-grow':'1'} - ), - dcc.Graph( - figure=px.histogram( - df, - x='Preparer', - y='Projected Hours ', - color='Status ', - title='Project Hours by Preparer' - ), - style = {'flex-grow':'1'} - ) - ], - style = { - 'display':'flex', - 'flex-wrap':'wrap', - 'justify-content':'space-between', -'align-items':'center'}), - dcc.Graph( - figure=px.pie( - df, - values = df['Preparer'].value_counts().values, - names=df['Reviewer'].value_counts().index, - title='Reviewer Breakdown', - hole=0.5 - ) - ) + html.H1(children="Project Dashboard", style={"textAlign": "center"}), + html.Div( + children=[ + dcc.Graph( + figure=px.histogram( + df, + x="Preparer", + color="High Priority?", + title="Control Count by Preparer", + ), + style={"flex-grow": "1"}, + ), + dcc.Graph( + figure=px.histogram( + df, + x="Preparer", + y="Projected Hours ", + color="Status ", + title="Project Hours by Preparer", + ), + style={"flex-grow": "1"}, + ), + ], + style={ + "display": "flex", + "flex-wrap": "wrap", + "justify-content": "space-between", + "align-items": "center", + }, + ), + dcc.Graph( + figure=px.pie( + df, + values=df["Preparer"].value_counts().values, + names=df["Reviewer"].value_counts().index, + title="Reviewer Breakdown", + hole=0.5, + ) + ), ] # Run the app -if __name__ == '__main__': +if __name__ == "__main__": app.run(debug=True) |