Skip to content

Commit

Permalink
[CI] adapt CI for sustainability repo
Browse files Browse the repository at this point in the history
  • Loading branch information
jguenat committed Jan 8, 2025
1 parent df31593 commit c677e68
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 20 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ jobs:
- 5432:5432
env:
OCA_ENABLE_CHECKLOG_ODOO: "1"
OCA_GIT_USER_EMAIL: "[email protected]"
OCA_GIT_USER_NAME: "sustainabilitybot"
OCA_GIT_USER_EMAIL: [email protected]
OCA_GIT_USER_NAME: sustainabilitybot
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -67,5 +67,5 @@ jobs:
- name: Run tests
run: oca_run_tests
- name: Update .pot files
run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }}
run: oca_export_and_push_pot https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'sustainability-suite' }}
28 changes: 14 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,20 @@ repos:
additional_dependencies:
- "[email protected]"
- "@prettier/[email protected]"
- repo: local
hooks:
- id: eslint
name: eslint
entry: eslint
args:
- --color
- --fix
verbose: true
types: [javascript]
language: node
additional_dependencies:
- "[email protected]"
- "[email protected]"
# - repo: local
# hooks:
# - id: eslint
# name: eslint
# entry: eslint
# args:
# - --color
# - --fix
# verbose: true
# types: [javascript]
# language: node
# additional_dependencies:
# - "[email protected]"
# - "[email protected]"
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
Expand Down
2 changes: 0 additions & 2 deletions .pylintrc-mandatory
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ enable=anomalous-backslash-in-string,
method-search,
openerp-exception-warning,
pointless-statement,
pointless-string-statement,
print-used,
redundant-keyword-arg,
redundant-modulename-xml,
Expand Down Expand Up @@ -84,7 +83,6 @@ enable=anomalous-backslash-in-string,
str-format-used,
test-folder-imported,
translation-contains-variable,
translation-positional-used,
unnecessary-utf8-coding-comment,
website-manifest-key-not-valid-uri,
xml-attribute-translatable,
Expand Down
1 change: 0 additions & 1 deletion .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ fix = true
extend-select = [
"B",
"C90",
"E501", # line too long (default 88)
"I", # isort
"UP", # pyupgrade
]
Expand Down

0 comments on commit c677e68

Please sign in to comment.