From c8299e69178f70b800f4d253b6f7843e0852f611 Mon Sep 17 00:00:00 2001 From: Xavier Dupre Date: Thu, 27 Jul 2023 17:38:10 +0200 Subject: [PATCH 1/2] Update github actions --- .github/workflows/{black.yml => black-ruff.yml} | 7 ++++++- README.rst | 2 +- _doc/index.rst | 3 ++- _doc/license.rst | 5 +++++ 4 files changed, 14 insertions(+), 3 deletions(-) rename .github/workflows/{black.yml => black-ruff.yml} (57%) create mode 100644 _doc/license.rst diff --git a/.github/workflows/black.yml b/.github/workflows/black-ruff.yml similarity index 57% rename from .github/workflows/black.yml rename to .github/workflows/black-ruff.yml index fe99e3c..9a04743 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black-ruff.yml @@ -1,4 +1,4 @@ -name: Black Format Checker +name: Black + Ruff Format Checker on: [push, pull_request] jobs: black-format-check: @@ -9,3 +9,8 @@ jobs: with: options: "--diff --check" src: "." + ruff-format-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: chartboost/ruff-action@v1 diff --git a/README.rst b/README.rst index 9890a18..7b99f3f 100644 --- a/README.rst +++ b/README.rst @@ -115,4 +115,4 @@ The library is released on `pypi/onnx-array-api `_ and its documentation is published at `(Numpy) Array API for ONNX -`_. +`_. diff --git a/_doc/index.rst b/_doc/index.rst index c782c8c..d2f0645 100644 --- a/_doc/index.rst +++ b/_doc/index.rst @@ -38,7 +38,8 @@ well as to execute it. api/index tech/index auto_examples/index - ../CHANGELOGS + CHANGELOGS + license Sources available on `github/onnx-array-api `_, diff --git a/_doc/license.rst b/_doc/license.rst new file mode 100644 index 0000000..97329d1 --- /dev/null +++ b/_doc/license.rst @@ -0,0 +1,5 @@ +License +======= + +.. literalinclude:: LICENSE.txt + :language: none From bd53fe037b5b6eede18065905c45e919b149f59a Mon Sep 17 00:00:00 2001 From: Xavier Dupre Date: Thu, 27 Jul 2023 17:47:11 +0200 Subject: [PATCH 2/2] links --- README.rst | 2 +- _doc/index.rst | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 7b99f3f..cc3efd6 100644 --- a/README.rst +++ b/README.rst @@ -17,7 +17,7 @@ onnx-array-api: (Numpy) Array API for ONNX .. image:: https://img.shields.io/badge/license-MIT-blue.svg :alt: MIT License - :target: http://opensource.org/licenses/MIT + :target: https://opensource.org/license/MIT/ .. image:: https://img.shields.io/github/repo-size/sdpython/onnx-array-api :target: https://github.com/sdpython/onnx-array-api/ diff --git a/_doc/index.rst b/_doc/index.rst index d2f0645..da5eb60 100644 --- a/_doc/index.rst +++ b/_doc/index.rst @@ -14,7 +14,7 @@ onnx-array-api: (Numpy) Array API for ONNX .. image:: https://img.shields.io/badge/license-MIT-blue.svg :alt: MIT License - :target: http://opensource.org/licenses/MIT + :target: https://opensource.org/license/MIT/ .. image:: https://img.shields.io/github/repo-size/sdpython/onnx-array-api :target: https://github.com/sdpython/onnx-array-api/ @@ -42,8 +42,7 @@ well as to execute it. license Sources available on -`github/onnx-array-api `_, -see also `code coverage <_static/cov_html/index.html>`_. +`github/onnx-array-api `_. .. runpython:: :showcode: