Skip to content

Commit 4b7c099

Browse files
[pre-commit.ci] pre-commit autoupdate (#116)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.2.0 → v0.4.3](astral-sh/ruff-pre-commit@v0.2.0...v0.4.3) - [github.com/asottile/pyupgrade: v3.15.0 → v3.15.2](asottile/pyupgrade@v3.15.0...v3.15.2) - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 1e0d6b8 commit 4b7c099

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ci:
44
repos:
55
- repo: https://github.com/astral-sh/ruff-pre-commit
66
# Ruff version.
7-
rev: v0.2.0
7+
rev: v0.4.3
88
hooks:
99
# Run the linter.
1010
# TODO fix the lint issues for the Jupyter notebooks
@@ -14,12 +14,12 @@ repos:
1414
- id: ruff-format
1515
types_or: [ python, pyi, jupyter ]
1616
- repo: https://github.com/asottile/pyupgrade
17-
rev: v3.15.0
17+
rev: v3.15.2
1818
hooks:
1919
- id: pyupgrade
2020
args: [--py38-plus]
2121
- repo: https://github.com/pre-commit/pre-commit-hooks
22-
rev: v4.5.0 # Use the ref you want to point at
22+
rev: v4.6.0 # Use the ref you want to point at
2323
hooks:
2424
- id: trailing-whitespace
2525
- id: check-toml

examples/boltzmann_wealth_model/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@
7171
cell_content, (x, y) = cell
7272
agent_count = len(cell_content)
7373
selected_row = df_grid[(df_grid["x"] == x) & (df_grid["y"] == y)]
74-
df_grid.loc[
75-
selected_row.index, "agent_count"
76-
] = agent_count # random.choice([1,2])
74+
df_grid.loc[selected_row.index, "agent_count"] = (
75+
agent_count # random.choice([1,2])
76+
)
7777

7878
df_gini = pd.concat(
7979
[

examples/conways_game_of_life/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252
for contents, (x, y) in model.grid.coord_iter():
5353
# print('x:',x,'y:',y, 'state:',contents)
5454
selected_row = df_grid[(df_grid["x"] == x) & (df_grid["y"] == y)]
55-
df_grid.loc[
56-
selected_row.index, "state"
57-
] = contents.state # random.choice([1,2])
55+
df_grid.loc[selected_row.index, "state"] = (
56+
contents.state
57+
) # random.choice([1,2])
5858

5959
heatmap = (
6060
alt.Chart(df_grid)

0 commit comments

Comments
 (0)