From 3144420c1ed1676aba89a7b83ffc9129b00cc1c7 Mon Sep 17 00:00:00 2001 From: Adam Li Date: Wed, 6 Dec 2023 16:27:22 -0500 Subject: [PATCH] Fix CIs Signed-off-by: Adam Li --- Makefile | 7 ++++++- pyproject.toml | 5 +++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 14cc7503..aac1db4e 100644 --- a/Makefile +++ b/Makefile @@ -34,6 +34,9 @@ in: inplace # just a shortcut inplace: $(PYTHON) setup.py build_ext -i +pre-commit: + @pre-commit run -a + pytest: test test: in @@ -142,6 +145,8 @@ run-checks: isort --check . black --check mne_connectivity examples flake8 . - mypy ./mne_connectivity @$(MAKE) pydocstyle @$(MAKE) codespell-error + ruff . + toml-sort ./pyproject.toml --check + yamllint . -c .yamllint.yml --strict diff --git a/pyproject.toml b/pyproject.toml index f5c502ea..5ec3fd55 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] -requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2", "wheel"] build-backend = "setuptools.build_meta" +requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2", "wheel"] [project] classifiers = [ @@ -41,7 +41,7 @@ maintainers = [ {email = 'adam.li@columbia.edu', name = 'Adam Li'}, ] name = 'mne-connectivity' -readme = { file='README.rst', content-type = "text/x-rst"} +readme = {content-type = "text/x-rst", file = 'README.rst'} requires-python = '>=3.9' version = "0.7.0.dev0" @@ -93,6 +93,7 @@ style = [ "pre-commit", 'black', 'codespell', + 'flake8', 'isort', 'pydocstyle', 'pydocstyle[toml]',