Skip to content

Commit

Permalink
Merge pull request #28 from AlexandreGazagnes/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
AlexandreGazagnes committed Jan 29, 2024
2 parents e1f6026 + 0191e48 commit 4ecd892
Show file tree
Hide file tree
Showing 8 changed files with 99 additions and 4,919 deletions.
1 change: 1 addition & 0 deletions .utils/_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
poetry-version: [1.7.0]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
Expand Down
37 changes: 36 additions & 1 deletion .utils/requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,39 @@ pytest==7.4.4
jupytext==1.16.0
ipywidgets==8.1.1
nbconvert==7.14.0
jupyter-contrib-nbextensions==0.7.0
jupyter-contrib-nbextensions==0.7.0
black = {extras = ["jupyter"], version = "^23.12.1"}


notebook = "^7.0.6"
jupyter = "^1.0.0"
jupyterlab = "^4.0.10"
ipykernel = "^6.28.0"
jupytext = "^1.16.1"
ipywidgets = "^8.1.1"
jupyter-contrib-nbextensions = "^0.7.0"
nbconvert = {extras = ["webpdf"], version = "^7.14.2"}
pre-commit = "^3.6.0"
mkdocs = "^1.5.3"


seaborn = "^0.13.1"
plotly = "^5.18.0"
folium = "^0.15.1"
geopandas = "^0.14.2"
missingno = "^0.5.2"



pytest = "^7.4.4"
isort = "^5.13.2"
flake8 = "^7.0.0"
mypy = "^1.8.0"
coverage = "^7.4.0"
bandit = "^1.7.6"
pyflakes = "^3.2.0"
pydocstyle = "^6.3.0"
mccabe = "^0.7.0"
safety = "^2.3.5"
pycln = "^2.4.0"
coverage-badge = "^1.1.0"
54 changes: 54 additions & 0 deletions .utils/statics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Statics

on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]

jobs:

statics:

runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
python-version: ["3.10.12"]
poetry-version: ["1.7.0"]

# runs-on: ${{ matrix.os }}
steps:

- uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Run image
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}

- name: View poetry --help
run: poetry --help

- name: poetry Install
run: poetry install

- name: Run black
run: poetry run black . --check

- name: Run isort
run: poetry run isort . --check-only --profile black

- name: Run flake8
run: poetry run flake8 .

- name: Run bandit
run: poetry run bandit .

- name: Run saftey
run: poetry run safety check
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ WORKDIR /app

# RUN git clone https://github.com/streamlit/streamlit-example.git .

COPY .utils/requirements.txt ./
COPY requirements.txt ./

RUN pip install -r requirements.txt

Expand Down
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@
st.subheader("GBS")
country = st.selectbox("country_name", df["country_name"].unique())
if country:
st.table(df.loc[df["country_name"] == country])
tmp = df.loc[df["country_name"] == country]
st.table(tmp.T)
Loading

0 comments on commit 4ecd892

Please sign in to comment.