From ae5f2eaecd3360787c74d421b2834edc57031c5c Mon Sep 17 00:00:00 2001 From: evelynmitchell Date: Thu, 23 Nov 2023 17:07:40 -0700 Subject: [PATCH] yamllint conf, python-publish lint --- .github/workflows/python-publish.yml | 36 ++++++++++++++-------------- .yamllint | 4 ++++ 2 files changed, 22 insertions(+), 18 deletions(-) create mode 100644 .yamllint diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index c8f4ba0c..9fc16341 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -1,7 +1,7 @@ - +--- name: Upload Python Package -on: +on: # yamllint disable-line rule:truthy release: types: [published] @@ -14,19 +14,19 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install build - - name: Build package - run: python -m build - - name: Publish package - uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} diff --git a/.yamllint b/.yamllint new file mode 100644 index 00000000..c58fcd8f --- /dev/null +++ b/.yamllint @@ -0,0 +1,4 @@ +rules: + line-length: + level: warning + allow-non-breakable-inline-mappings: true \ No newline at end of file