From d8884727887030d46bda46a561c7bab5ee87fbb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8Dtalo=20Epif=C3=A2nio?= Date: Sun, 3 Mar 2024 19:56:02 -0300 Subject: [PATCH] Add ruff --- .github/workflows/test.yaml | 3 +++ settings.ini | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index cbec6a9..453af6f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -17,6 +17,9 @@ jobs: python -m pip install --upgrade pip pip install -U nbdev pip install -e ".[dev]" + - name: Run lint + run: | + nbqa ruff --fix nbs/*.ipynb -v - name: Run Tests run: | nbdev_test diff --git a/settings.ini b/settings.ini index 4ac75c7..bfe7989 100644 --- a/settings.ini +++ b/settings.ini @@ -27,7 +27,7 @@ language = English status = 3 user = itepifanio requirements = ipykernel>=6.20.1 -dev_requirements = solara>=1.26.1 +dev_requirements = solara>=1.26.1 nbqa>=1.8.3 ruff>=0.3.0 readme_nb = index.ipynb allowed_metadata_keys = allowed_cell_metadata_keys =