Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ repos:
args: [--unsafe]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.20
rev: v0.16.10
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format

- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
rev: v2.4.3
hooks:
- id: codespell

Expand Down
10 changes: 5 additions & 5 deletions docs/developer/best.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ The following metadata values are often useful:
"year": "yr",
"country_id": "no_unit",
"shape_id": "no_unit",
"demand": "mwh"
}
"demand": "mwh",
}
dataframe.attrs["source"] = "github.com/modelblocks-org/docs"
dataframe.attrs["license"] = "CC-BY-4.0"
dataframe.to_parquet('my_data.parquet')
dataframe.to_parquet("my_data.parquet")
```

### Consistent naming
Expand Down Expand Up @@ -83,7 +83,7 @@ Follow [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) specifications and ens

```python
# if the timeseries is already recorded in UTC.
df["timestamp"] = pd.to_datetime(df["timestamp"], utc=True) # (1)!
df["timestamp"] = pd.to_datetime(df["timestamp"], utc=True) # (1)!
# if the timeseries was recorded for a different timezone
df["timestamp"] = (
pd.to_datetime(df["timestamp"])
Expand Down Expand Up @@ -149,7 +149,7 @@ However, it might be necessary to write additional tests to catch problems that
You can write these tests in a separate validation function.

```python title="Snakefile"
include: "rules/_utils.smk" # (1)
include: "rules/_utils.smk" # (1)
configfile: workflow.source_path("../config/config.yaml")
validate(config, workflow.source_path("internal/config.schema.yaml"))
additional_validation(config) # (2)
Expand Down
Loading