Skip to content

Commit

Permalink
Add style check action (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
frthjf authored Oct 11, 2024
1 parent cdd3870 commit 43fba6d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
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

0 comments on commit 43fba6d

Please sign in to comment.