Skip to content

Commit

Permalink
Merge pull request #107 from yoctoyotta1024/fix-vulnerability
Browse files Browse the repository at this point in the history
fix: Security vulnerability
  • Loading branch information
yoctoyotta1024 authored Sep 4, 2024
2 parents 75acf87 + b6210eb commit 0807669
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download build artifacts (i.e. documentation)
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: html-docs
path: docs/build/html/
Expand Down
4 changes: 3 additions & 1 deletion ci_environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ dependencies:
- pip:
- numpy
- pytest
- sphinx==7.4 # TODO(CB): update sphinx allowed version for CI
- sphinx
- furo
- sphinx_copybutton
- sphinxcontrib-bibtex
- sphinxcontrib-applehelp
- sphinxcontrib-htmlhelp
- breathe
- pre-commit
1 change: 0 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
configuration for CLEO documentation made using Sphinx
"""


# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
Expand Down
1 change: 0 additions & 1 deletion examples/bubble3d/bubble3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
piggyback ICON bubble test case
"""


import os
import sys
from pathlib import Path
Expand Down
1 change: 0 additions & 1 deletion examples/bubble3d/yac_bubble_data_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
output data and CLEO (e.g. for the bubble test case)
"""


#!/usr/bin/env python3

from yac import YAC, UnstructuredGrid, Field, Location, Calendar, TimeUnit, def_calendar
Expand Down
1 change: 0 additions & 1 deletion examples/fromfile/src/gen_input_thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
for CLEO to run example with 3-D time-varying thermodynamics.
"""


import sys
import numpy as np

Expand Down
1 change: 0 additions & 1 deletion examples/fromfile/src/plot_output_thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
fromfile example.
"""


import numpy as np
import matplotlib.pyplot as plt
from matplotlib.gridspec import GridSpec
Expand Down
1 change: 0 additions & 1 deletion pySD/initsuperdropsbinary_src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
File Description:
"""


__all__ = [
"create_initsuperdrops",
"read_initsuperdrops",
Expand Down
1 change: 0 additions & 1 deletion pySD/thermobinary_src/create_thermodynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
File Description:
"""


import numpy as np
from os.path import isfile
from .. import cxx2py, readconfigfile, writebinary
Expand Down
1 change: 0 additions & 1 deletion pySD/writebinary.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
File Description:
"""


import numpy as np
import struct

Expand Down
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ sphinx
furo
sphinx_copybutton
sphinxcontrib-bibtex
sphinxcontrib-applehelp
sphinxcontrib-htmlhelp
breathe
numpy
scipy
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
Copyright (c) 2023 MPI-M, Clara Bayley
"""


from setuptools import setup, find_packages

setup(
Expand Down

0 comments on commit 0807669

Please sign in to comment.