Skip to content

Commit

Permalink
Update conda lockfile for week of 2024-07-01 (#3702)
Browse files Browse the repository at this point in the history
* Update conda-lock.yml and rendered conda environment files.

* Update ruff pre-commit to match cond environment.

* Fix minor linting issues to work with Ruff 0.5

---------

Co-authored-by: zaneselvans <[email protected]>
Co-authored-by: Zane Selvans <[email protected]>
  • Loading branch information
3 people authored Jul 1, 2024
1 parent e0da32b commit 7ed1295
Show file tree
Hide file tree
Showing 7 changed files with 1,013 additions and 998 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ repos:
# Formatters: hooks that re-write Python & documentation files
####################################################################################
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.10
rev: v0.5.0
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
12 changes: 6 additions & 6 deletions devtools/datasette/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def inspect_data(datasets: list[str], pudl_output: Path) -> str:
inspect before building the Docker image.
"""
inspect_output = json.loads(
check_output(
[ # noqa: S603
check_output( # noqa: S603
[
"datasette",
"inspect",
]
Expand Down Expand Up @@ -175,8 +175,8 @@ def deploy_datasette(
f.write(make_dockerfile(databases))

logging.info(f"Compressing {databases} and putting into docker context...")
check_call(
["tar", "-a", "-czvf", fly_dir / "all_dbs.tar.zst"] + databases, # noqa: S603
check_call( # noqa: S603
["tar", "-a", "-czvf", fly_dir / "all_dbs.tar.zst"] + databases,
cwd=pudl_output,
)

Expand All @@ -194,8 +194,8 @@ def deploy_datasette(
with metadata_path.open("w") as f:
f.write(metadata_yml)

check_call(
["/usr/bin/env", "datasette", "serve", "-m", "metadata.yml"] + databases, # noqa: S603
check_call( # noqa: S603
["/usr/bin/env", "datasette", "serve", "-m", "metadata.yml"] + databases,
cwd=pudl_output,
)

Expand Down
126 changes: 63 additions & 63 deletions environments/conda-linux-64.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7ed1295

Please sign in to comment.