]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

CI: Add Python 3.8 and lint to GitHub Actions (#1173)
authorHugo van Kemenade <hugovk@users.noreply.github.com>
Fri, 22 Nov 2019 08:14:57 +0000 (10:14 +0200)
committerZsolt Dollenstein <zsol.zsol@gmail.com>
Fri, 22 Nov 2019 08:14:57 +0000 (08:14 +0000)
* CI: Test Python 3.8 on GitHub Actions

* pre-commit autoupdate

* CI: Lint on GitHub Actions

.github/workflows/lint.yml [new file with mode: 0644]
.github/workflows/test.yml
.pre-commit-config.yaml

diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
new file mode 100644 (file)
index 0000000..58ce406
--- /dev/null
@@ -0,0 +1,27 @@
+name: Lint
+
+on: [push, pull_request]
+
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        python-version: [3.7]
+
+    steps:
+      - uses: actions/checkout@v1
+
+      - name: Set up Python ${{ matrix.python-version }}
+        uses: actions/setup-python@v1
+        with:
+          python-version: ${{ matrix.python-version }}
+
+      - name: Install dependencies
+        run: |
+          python -m pip install --upgrade pip
+          python -m pip install --upgrade pre-commit
+          python -m pip install -e '.[d]'
+
+      - name: Lint
+        run: pre-commit run --all-files
index 2d1ae0a656ffcbd4f6e1f6efed7473aaa066f13e..de734da0eabd3a932868d4b98e4a9710617b4b30 100644 (file)
@@ -8,7 +8,7 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        python-version: [3.6, 3.7]
+        python-version: [3.6, 3.7, 3.8]
         os: [ubuntu-latest, macOS-latest, windows-latest]
 
     steps:
index 7fd8f550c961e59c078c815cffd242632d5538e0..8bcc1be3192dd5f4e1e93946e28e60fecb0fac61 100644 (file)
@@ -12,7 +12,7 @@ repos:
         types: [python]
 
   - repo: https://gitlab.com/pycqa/flake8
-    rev: 3.7.8
+    rev: 3.7.9
     hooks:
       - id: flake8
         additional_dependencies: [flake8-bugbear]
@@ -24,7 +24,7 @@ repos:
         exclude: ^docs/conf.py
 
   - repo: https://github.com/prettier/prettier
-    rev: 1.18.2
+    rev: 1.19.1
     hooks:
       - id: prettier
         args: [--prose-wrap=always, --print-width=88]