Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 16, 2023
1 parent 9db27cd commit a8ecd7b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: tests

on:
push:
branches: [ main ]
branches: [main]
pull_request:
schedule:
- cron: '14 3 * * 1' # at 03:14 on Monday.
- cron: "14 3 * * 1" # at 03:14 on Monday.

jobs:
pytest:
Expand All @@ -29,7 +29,7 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
cache: "poetry"
- name: Install package
run: |
poetry install --no-interaction
Expand All @@ -40,4 +40,4 @@ jobs:
- uses: codecov/codecov-action@v2
with:
flags: fulltest
verbose: true
verbose: true
6 changes: 5 additions & 1 deletion zndraw/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ def modifier_run(data):
# modifier = available_methods[data["name"]](**data["params"])
print(f"modifier:run {modifier = }")
atoms_list = modifier.run(
atom_ids=data["selection"], atoms=atoms, points=points, segments=segments, json_data=data["atoms"] if "atoms" in data else None
atom_ids=data["selection"],
atoms=atoms,
points=points,
segments=segments,
json_data=data["atoms"] if "atoms" in data else None,
)
io.emit("atoms:clear", int(data["step"]) + 1)
for idx, atoms in tqdm.tqdm(enumerate(atoms_list)):
Expand Down

0 comments on commit a8ecd7b

Please sign in to comment.