From 1a228bb5d65a44b7409bc80e09b1fbf899f7fa7b Mon Sep 17 00:00:00 2001 From: Ernst Roell Date: Mon, 1 Jul 2024 14:07:00 +0200 Subject: [PATCH] Changed to black formatter. --- .github/workflows/black.yml | 15 +++++++++++++++ .github/workflows/pylint.yml | 25 ------------------------- README.md | 2 +- 3 files changed, 16 insertions(+), 26 deletions(-) create mode 100644 .github/workflows/black.yml delete mode 100644 .github/workflows/pylint.yml diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml new file mode 100644 index 0000000..a99d8ef --- /dev/null +++ b/.github/workflows/black.yml @@ -0,0 +1,15 @@ +name: Enforce coding style + +on: [ push, pull_request ] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: psf/black@stable + with: + options: "--check --verbose --line-length 80" + # Ignore Jupyter notebooks for now to simplify rapid + # prototyping. + jupyter: false \ No newline at end of file diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml deleted file mode 100644 index 939b5c9..0000000 --- a/.github/workflows/pylint.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Pylint - -on: [push] - -jobs: - build: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.10"] - steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pylint - pip install torch - pip install torch-scatter - - name: Analysing the code with pylint - run: | - pylint $(git ls-files '*.py') diff --git a/README.md b/README.md index 94339c8..209f5e6 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # DECT - Differentiable Euler Characteristic Transform -[![arXiv](https://img.shields.io/badge/arXiv-2310.07630-b31b1b.svg)](https://arxiv.org/abs/2310.07630) ![GitHub contributors](https://img.shields.io/github/contributors/aidos-lab/dect-evaluation) ![GitHub](https://img.shields.io/github/license/aidos-lab/dect-evaluation) +[![arXiv](https://img.shields.io/badge/arXiv-2310.07630-b31b1b.svg)](https://arxiv.org/abs/2310.07630) ![GitHub contributors](https://img.shields.io/github/contributors/aidos-lab/dect) ![GitHub](https://img.shields.io/github/license/aidos-lab/dect) This is the official implementation for the Differential Euler Characteristic Transform. Our implementation is fully optimized for hardware acceleration,