Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add style check action #82

Merged
merged 2 commits into from
Oct 11, 2024
Merged
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
10 changes: 10 additions & 0 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Style check
on: [push, pull_request]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v1
with:
args: "format --check"
1 change: 0 additions & 1 deletion src/miv_simulator/interface/legacy/prepare_data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import pathlib

import subprocess
Expand Down
2 changes: 0 additions & 2 deletions src/miv_simulator/synapses.py
Original file line number Diff line number Diff line change
Expand Up @@ -2123,9 +2123,7 @@ def config_syn(
nc_param = False
mech_param = False


for param, val in params.items():

failed = True
if param in mech_rules["mech_params"]:
if syn is None:
Expand Down
1 change: 0 additions & 1 deletion src/scripts/tools/query_cell_attrs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import click
import numpy as np
from miv_simulator.utils import io as io_utils
Expand Down
1 change: 0 additions & 1 deletion src/scripts/tools/show_h5types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import click
from miv_simulator.utils import io as io_utils

Expand Down
1 change: 0 additions & 1 deletion tests/mechanisms/test_gfluct3.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import numpy as np



def test_run_with_Gfluct3():
compile_and_load("tests/mechanisms", force=True)

Expand Down