diff --git a/Makefile b/Makefile index 3935185ab..9faa0a1ec 100644 --- a/Makefile +++ b/Makefile @@ -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 . diff --git a/pyproject.toml b/pyproject.toml index 25cd619b7..102644c78 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/setup.py b/setup.py index b97c03c40..15eda9172 100644 --- a/setup.py +++ b/setup.py @@ -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',