From: Daniele Varrazzo Date: Tue, 2 Mar 2021 11:38:05 +0000 (+0100) Subject: Yaml lint X-Git-Tag: 3.0.dev0~94^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37e14942a7c82ae533aa7bc3cabbd7d781ed0ec9;p=thirdparty%2Fpsycopg.git Yaml lint --- diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index ccadae263..72eaa32d5 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -2,13 +2,14 @@ name: Build documentation on: push: - branches: [ master ] + branches: + - master jobs: docs: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 - - name: Trigger docs build - run: TRAVIS_BRANCH=master ./tools/travis_update_docs.sh + - uses: actions/checkout@v2 + - name: Trigger docs build + run: TRAVIS_BRANCH=master ./tools/travis_update_docs.sh diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e97a797f2..9cff8e85a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,13 +9,13 @@ jobs: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - - name: Install tox - run: pip install tox - - name: Run black - run: tox -e black - - name: Run flake8 - run: tox -e flake8 - - name: Run mypy - run: tox -e mypy + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - name: Install tox + run: pip install tox + - name: Run black + run: tox -e black + - name: Run flake8 + run: tox -e flake8 + - name: Run mypy + run: tox -e mypy diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0c4dffc70..0b4e43612 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -44,14 +44,14 @@ jobs: --health-retries 5 steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python }} - - name: Install tox - run: pip install tox - - name: Run tests - run: tox -c psycopg3 -e ${{ matrix.python }} -- --color yes + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - name: Install tox + run: pip install tox + - name: Run tests + run: tox -c psycopg3 -e ${{ matrix.python }} -- --color yes c: name: C implementation @@ -95,11 +95,11 @@ jobs: --health-retries 5 steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python }} - - name: Install tox - run: pip install tox - - name: Run tests - run: tox -c psycopg3_c -e ${{ matrix.python }} -- --color yes + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - name: Install tox + run: pip install tox + - name: Run tests + run: tox -c psycopg3_c -e ${{ matrix.python }} -- --color yes diff --git a/.yamllint.yaml b/.yamllint.yaml new file mode 100644 index 000000000..bcfb4d2c0 --- /dev/null +++ b/.yamllint.yaml @@ -0,0 +1,8 @@ +extends: default + +rules: + truthy: + check-keys: false + document-start: disable + line-length: + max: 85