Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Oct 14, 2023
1 parent b3ead98 commit c6cac4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/scripts/generate_yml_env_fixed_py.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from __future__ import annotations

import argparse

import yaml # type: ignore
Expand All @@ -18,7 +19,7 @@ def environment_yml_nopy(fn_env: str, py_version: str, add_deps: list[str] = Non
conda_dep_env = list(yaml_env["dependencies"])

# Force python version
conda_dep_env_forced_py = ["python="+py_version if "python" in dep else dep for dep in conda_dep_env]
conda_dep_env_forced_py = ["python=" + py_version if "python" in dep else dep for dep in conda_dep_env]

# Optionally, add other dependencies
if add_deps is not None:
Expand All @@ -28,7 +29,7 @@ def environment_yml_nopy(fn_env: str, py_version: str, add_deps: list[str] = Non
yaml_out = yaml_env.copy()
yaml_out["dependencies"] = conda_dep_env_forced_py

with open("environment-ci-py"+py_version+".yml", 'w') as outfile:
with open("environment-ci-py" + py_version + ".yml", "w") as outfile:
yaml.dump(yaml_out, outfile, default_flow_style=False)


Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ numpy
matplotlib
pyproj>=3.4
rasterio>=1.3
scipy
scipy<1.11.1
tqdm
scikit-image
scikit-gstat>=1.0
Expand Down

0 comments on commit c6cac4e

Please sign in to comment.