]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Yaml lint
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 2 Mar 2021 11:38:05 +0000 (12:38 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 6 Mar 2021 00:08:04 +0000 (01:08 +0100)
.github/workflows/docs.yml
.github/workflows/lint.yml
.github/workflows/tests.yml
.yamllint.yaml [new file with mode: 0644]

index ccadae263f090ca700dd7561171680214acae68f..72eaa32d5d16d32a8e0c9bbbbec31627010321a5 100644 (file)
@@ -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
index e97a797f2f814912e71e9e792915efccb1ca2dd2..9cff8e85acca592f536f9f1de9ecfc5ca345521d 100644 (file)
@@ -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
index 0c4dffc706366758390325d75f988e84cbf215f8..0b4e43612229965730c725680f85b79dbd53a7aa 100644 (file)
@@ -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 (file)
index 0000000..bcfb4d2
--- /dev/null
@@ -0,0 +1,8 @@
+extends: default
+
+rules:
+  truthy:
+    check-keys: false
+  document-start: disable
+  line-length:
+    max: 85