Skip to content

Commit

Permalink
style: add ruff as dep, and config
Browse files Browse the repository at this point in the history
  • Loading branch information
asoplata committed Nov 8, 2024
1 parent 8ddfb9f commit 1bd58f3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@

all: modl

modl:
cd hnn_core/mod/ && nrnivmodl

clean :
rm -rf hnn_core/mod/x86_64/*

check-manifest:
check-manifest

format:
ruff format

modl:
cd hnn_core/mod/ && nrnivmodl

test:
pytest .
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@ check-hidden = true
# in jupyter notebooks - images and also some embedded outputs
ignore-regex = '^\s*"image/\S+": ".*|.*%22%3A%20.*'
ignore-words-list = 'tha,nam,sherif,dout'

[tool.ruff]
exclude = ["*.ipynb"]
[tool.ruff.format]
quote-style = "single"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def run(self):
extras = {
'opt': ['scikit-learn'],
'parallel': ['joblib', 'psutil'],
'test': ['pytest', 'pytest-cov', ],
'test': ['pytest', 'pytest-cov', 'ruff',],
'docs': ['mne', 'nibabel', 'pooch', 'tdqm',
'sphinx', 'sphinx-gallery',
'sphinx_bootstrap_theme', 'sphinx-copybutton',
Expand Down

0 comments on commit 1bd58f3

Please sign in to comment.