build(pre-commit.ci): pre-commit autoupdate #999
run-manual-pre-commit.yml
on: pull_request
Run pre-commit manual stage
55s
Annotations
10 errors and 1 warning
Refurb FURB115:
srai/embedders/geovex/embedder.py#L132
Replace `len(dataset.get_invalid_cells()) > 0` with `dataset.get_invalid_cells()`
|
Refurb FURB117:
srai/embedders/gtfs2vec/embedder.py#L293
Replace `open(path / "config.json", "w")` with `path / "config.json".open("w")`
|
Refurb FURB117:
srai/embedders/hex2vec/embedder.py#L234
Replace `open(path / "config.json", "w")` with `path / "config.json".open("w")`
|
Refurb FURB117:
srai/embedders/highway2vec/embedder.py#L178
Replace `open(path / "config.json", "w")` with `path / "config.json".open("w")`
|
Refurb FURB118:
srai/loaders/osm_loaders/filters/popular.py#L64
Replace `lambda t: t["in_wiki"]` with `operator.itemgetter("in_wiki")`
|
Refurb FURB118:
srai/loaders/osm_loaders/filters/popular.py#L66
Replace `lambda t: (t["key"], t["value"])` with `operator.itemgetter("key", "value")`
|
Refurb FURB118:
srai/neighbourhoods/_base.py#L73
Replace `lambda x: x[0]` with `operator.itemgetter(0)`
|
Refurb FURB118:
srai/neighbourhoods/_base.py#L99
Replace `lambda x: x[0]` with `operator.itemgetter(0)`
|
Refurb FURB118:
tests/h3/test_shapely_conversion.py#L21
Replace function with `operator.itemgetter(GEOMETRY_COLUMN)`
|
Refurb FURB115:
tests/neighbourhoods/test_adjacency_neighbourhood.py#L100
Replace `neighbourhood.get_neighbours(1) == set()` with `not neighbourhood.get_neighbours(1)`
|
Run pre-commit manual stage
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v4, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|