Repository: OpenMined/PyGrid-deprecated---see-PySyft- (language: python)

Issue:
Update pre-commit and GA with pydocstyle and darglint
## Description
`pre-commit` helps to make some checks on the code before commiting.
There are some tools that help to increase the QA of the docstring such as:
- `pydocstyle`
- `darglint`

so the idea is to integrate these tools in `pre-commit` and GA

## Recommendations
This has been done for `sympc` project, see

- https://github.com/OpenMined/SyMPC/blob/main/.pre-commit-config.yaml
- https://github.com/OpenMined/SyMPC/blob/main/.github/workflows/tests.yml



Discussion / hints:

Fix patch:
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e34a26288..7c5ed0a20 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -32,3 +32,17 @@ repos:
     rev: 'v5.4.2'  # Use the revision sha / tag you want to point at
     hooks:
       - id: isort
+
+  - repo: https://github.com/pycqa/pydocstyle
+    rev: 5.1.1
+    hooks:
+      - id: pydocstyle
+        args:
+          - --convention=google
+        exclude: (apps/domain/tests/)|(apps/network/tests/)|(apps/worker/tests/)
+
+  - repo: https://github.com/terrencepreilly/darglint
+    rev: master
+    hooks:
+      - id: darglint
+        exclude: (apps/domain/tests/)|(apps/network/tests/)|(apps/worker/tests/)


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 9d9c945ac..9704295e3 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -29,6 +29,15 @@ jobs:
           pip install --upgrade pip
           pip install poetry==1.1.2
 
+      - id: file_changes  # get changed files.
+        uses: trilom/file-changes-action@v1.2.3
+        with:
+          output: ' '
+
+      - uses: pre-commit/action@v2.0.0
+        with:
+          extra_args: --files ${{ steps.file_changes.outputs.files}}  # apply only to changed files.
+
       - name: Test Grid Domain
         run: |
           cd ./apps/domain/