Browse Source

[IMP] update dotfiles [ci skip]

pull/758/head
oca-git-bot 4 years ago
parent
commit
97ac7d2577
No known key found for this signature in database GPG Key ID: BCAB2555446B5B92
  1. 2
      .copier-answers.yml
  2. 13
      .github/workflows/pre-commit.yml
  3. 6
      .pre-commit-config.yaml
  4. 7
      .travis.yml

2
.copier-answers.yml

@ -1,5 +1,5 @@
# Do NOT update manually; changes here will be overwritten by Copier # Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.0.3
_commit: v1.1.1
_src_path: gh:oca/oca-addons-repo-template _src_path: gh:oca/oca-addons-repo-template
dependency_installation_mode: PIP dependency_installation_mode: PIP
generate_requirements_txt: true generate_requirements_txt: true

13
.github/workflows/pre-commit.yml

@ -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

6
.pre-commit-config.yaml

@ -4,6 +4,8 @@ exclude: |
# END NOT INSTALLABLE ADDONS # END NOT INSTALLABLE ADDONS
# Files and folders generated by bots, to avoid loops # Files and folders generated by bots, to avoid loops
^setup/|/static/description/index\.html$| ^setup/|/static/description/index\.html$|
# We don't want to mess with tool-generated files
.svg$|
# Maybe reactivate this when all README files include prettier ignore tags? # Maybe reactivate this when all README files include prettier ignore tags?
^README\.md$| ^README\.md$|
# Library files can have extraneous formatting (even minimized) # Library files can have extraneous formatting (even minimized)
@ -26,7 +28,7 @@ repos:
language: fail language: fail
files: "\\.rej$" files: "\\.rej$"
- repo: https://github.com/oca/maintainer-tools - repo: https://github.com/oca/maintainer-tools
rev: 1b5c7ad
rev: ab1d7f6
hooks: hooks:
# update the NOT INSTALLABLE ADDONS section above # update the NOT INSTALLABLE ADDONS section above
- id: oca-update-pre-commit-excluded-addons - id: oca-update-pre-commit-excluded-addons
@ -41,7 +43,7 @@ repos:
rev: 20.8b1 rev: 20.8b1
hooks: hooks:
- id: black - id: black
- repo: https://github.com/prettier/pre-commit
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.1.2 rev: v2.1.2
hooks: hooks:
- id: prettier - id: prettier

7
.travis.yml

@ -14,17 +14,10 @@ addons:
- expect-dev # provides unbuffer utility - expect-dev # provides unbuffer utility
stages: stages:
- linting
- test - test
jobs: jobs:
include: 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 - stage: test
env: env:
- TESTS=1 ODOO_REPO="odoo/odoo" MAKEPOT="1" - TESTS=1 ODOO_REPO="odoo/odoo" MAKEPOT="1"

Loading…
Cancel
Save