Stéphane Bidoul
4 years ago
No known key found for this signature in database
GPG Key ID: BCAB2555446B5B92
4 changed files with
15 additions and
8 deletions
-
.copier-answers.yml
-
.github/workflows/pre-commit.yml
-
.pre-commit-config.yaml
-
.travis.yml
|
|
@ -1,5 +1,5 @@ |
|
|
|
# Do NOT update manually; changes here will be overwritten by Copier |
|
|
|
_commit: v1.0.3 |
|
|
|
_commit: v1.1.0a0 |
|
|
|
_src_path: gh:oca/oca-addons-repo-template |
|
|
|
dependency_installation_mode: PIP |
|
|
|
generate_requirements_txt: true |
|
|
|
|
|
@ -0,0 +1,13 @@ |
|
|
|
name: pre-commit |
|
|
|
|
|
|
|
on: |
|
|
|
pull_request: |
|
|
|
push: |
|
|
|
|
|
|
|
jobs: |
|
|
|
pre-commit: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v2 |
|
|
|
- uses: actions/setup-python@v2 |
|
|
|
- uses: pre-commit/action@v2.0.0 |
|
|
@ -41,7 +41,7 @@ repos: |
|
|
|
rev: 20.8b1 |
|
|
|
hooks: |
|
|
|
- id: black |
|
|
|
- repo: https://github.com/prettier/pre-commit |
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier |
|
|
|
rev: v2.1.2 |
|
|
|
hooks: |
|
|
|
- id: prettier |
|
|
|
|
|
@ -19,12 +19,6 @@ stages: |
|
|
|
|
|
|
|
jobs: |
|
|
|
include: |
|
|
|
- stage: linting |
|
|
|
name: "pre-commit" |
|
|
|
install: pip install pre-commit |
|
|
|
script: pre-commit run --all --show-diff-on-failure --verbose --color always |
|
|
|
after_success: |
|
|
|
before_install: |
|
|
|
- stage: test |
|
|
|
env: |
|
|
|
- TESTS=1 ODOO_REPO="odoo/odoo" MAKEPOT="1" |
|
|
|