mirror of
https://github.com/bsedin/matrix-webhook.git
synced 2026-04-09 11:25:40 +00:00
CI: add lints
This commit is contained in:
8
.github/workflows/lint.yml
vendored
Normal file
8
.github/workflows/lint.yml
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
name: Lint
|
||||||
|
on: [push, pull_request]
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: psf/black@stable
|
||||||
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@@ -1,5 +1,5 @@
|
|||||||
name: build docker image and run tests inside
|
name: Tests
|
||||||
on: push
|
on: [push, pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -14,10 +14,11 @@ repos:
|
|||||||
- id: flake8
|
- id: flake8
|
||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- repo: https://github.com/pre-commit/mirrors-yapf
|
- repo: https://github.com/psf/black
|
||||||
rev: v0.29.0
|
rev: stable
|
||||||
hooks:
|
hooks:
|
||||||
- id: yapf
|
- id: black
|
||||||
|
language_version: python3
|
||||||
- repo: https://github.com/PyCQA/pydocstyle
|
- repo: https://github.com/PyCQA/pydocstyle
|
||||||
rev: 5.0.1
|
rev: 5.0.1
|
||||||
hooks:
|
hooks:
|
||||||
|
|||||||
Reference in New Issue
Block a user