From 86c7a1e69e76ac4472840af06c55583465addf65 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Wed, 20 Mar 2024 21:47:49 +0100 Subject: [PATCH 1/3] =?UTF-8?q?CI:=20flake8=20=E2=86=92=20ruff=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pythonpackage.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index b21bc30af..8bd0f6679 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -75,13 +75,13 @@ jobs: test "${INSTALLED_VERSION}" = "${THISVERSION}" rm -r /tmp/install_wheel - flake8: + ruff: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 - - run: pipx run flake8-pyproject mriqc/ + - run: pipx run ruff check mriqc/ codespell: runs-on: ubuntu-latest From cd20370a91e258706f5f06cfdef9365545d25cdb Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Thu, 21 Mar 2024 17:12:47 +0100 Subject: [PATCH 2/3] maint: remove pep8speaks config file --- .pep8speaks.yml | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 .pep8speaks.yml diff --git a/.pep8speaks.yml b/.pep8speaks.yml deleted file mode 100644 index 0559ae817..000000000 --- a/.pep8speaks.yml +++ /dev/null @@ -1,12 +0,0 @@ -scanner: - diff_only: True # Only show errors caused by the patch - linter: flake8 - -message: # Customize the comment made by the bot - opened: # Messages when a new PR is submitted - header: "Hello @{name}, thank you for submitting the Pull Request!" - footer: "To test for issues locally, `pip install flake8` and then run `flake8 niworkflows`." - updated: # Messages when new commits are added to the PR - header: "Hello @{name}, Thank you for updating!" - footer: "To test for issues locally, `pip install flake8` and then run `flake8 niworkflows`." - no_errors: "Cheers! There are no style issues detected in this Pull Request. :beers: " From b05d2496f0e9796db8bd3e7b71a420e42e958100 Mon Sep 17 00:00:00 2001 From: Oscar Esteban Date: Thu, 21 Mar 2024 17:18:15 +0100 Subject: [PATCH 3/3] enh: remove flake8 configuration from ``pyproject.toml`` --- pyproject.toml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 46822c81e..fd9316089 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -173,16 +173,6 @@ exclude = ''' )/ ''' -[tool.flake8] -max-line-length = "99" -doctests = "False" -exclude = "*build/" -ignore = ["W503", "E203"] -per-file-ignores = [ - "**/__init__.py : F401", - "docs/conf.py : E265", -] - [tool.pytest.ini_options] minversion = "7" log_cli_level = "INFO"