Skip to content

Commit 99769b8

Browse files
committed
[IMP] update dotfiles
1 parent 93855d5 commit 99769b8

File tree

8 files changed

+94
-14
lines changed

8 files changed

+94
-14
lines changed

.copier-answers.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Do NOT update manually; changes here will be overwritten by Copier
2-
_commit: v1.1.4
2+
_commit: v1.3.6
33
_src_path: git+https://github.com/OCA/oca-addons-repo-template
4+
ci: Travis
45
dependency_installation_mode: PIP
56
generate_requirements_txt: true
67
include_wkhtmltopdf: false

.eslintrc.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
env:
22
browser: true
3+
es6: true
34

45
# See https://github.com/OCA/odoo-community.org/issues/37#issuecomment-470686449
56
parserOptions:
67
ecmaVersion: 2017
78

9+
overrides:
10+
- files:
11+
- "**/*.esm.js"
12+
parserOptions:
13+
sourceType: module
14+
815
# Globals available in Odoo that shouldn't produce errorings
916
globals:
1017
_: readonly
@@ -14,7 +21,7 @@ globals:
1421
moment: readonly
1522
odoo: readonly
1623
openerp: readonly
17-
Promise: readonly
24+
owl: readonly
1825

1926
# Styling is handled by Prettier, so we only need to enable AST rules;
2027
# see https://github.com/OCA/maintainer-quality-tools/pull/618#issuecomment-558576890

.github/workflows/pre-commit.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,11 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v2
1212
- uses: actions/setup-python@v2
13+
with:
14+
# The pylint-odoo version we use here does not support python 3.10
15+
# https://github.com/OCA/oca-addons-repo-template/issues/80
16+
# We also need to pin to an older version of python for older odoo versions
17+
# where we are not using black > 21. Older black versions won't work with
18+
# Python 3.9.8+, and we can't bump black without reformatting.
19+
python-version: "3.9.7"
1320
- uses: pre-commit/action@v2.0.0

.github/workflows/stale.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Mark stale issues and pull requests
2+
3+
on:
4+
schedule:
5+
- cron: "0 12 * * 0"
6+
7+
jobs:
8+
stale:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Stale PRs and issues policy
12+
uses: actions/stale@v4
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
# General settings.
16+
ascending: true
17+
remove-stale-when-updated: true
18+
# Pull Requests settings.
19+
# 120+30 day stale policy for PRs
20+
# * Except PRs marked as "no stale"
21+
days-before-pr-stale: 120
22+
days-before-pr-close: 30
23+
exempt-pr-labels: "no stale"
24+
stale-pr-label: "stale"
25+
stale-pr-message: >
26+
There hasn't been any activity on this pull request in the past 4 months, so
27+
it has been marked as stale and it will be closed automatically if no
28+
further activity occurs in the next 30 days.
29+
30+
If you want this PR to never become stale, please ask a PSC member to apply
31+
the "no stale" label.
32+
# Issues settings.
33+
# 180+30 day stale policy for open issues
34+
# * Except Issues marked as "no stale"
35+
days-before-issue-stale: 180
36+
days-before-issue-close: 30
37+
exempt-issue-labels: "no stale,needs more information"
38+
stale-issue-label: "stale"
39+
stale-issue-message: >
40+
There hasn't been any activity on this issue in the past 6 months, so it has
41+
been marked as stale and it will be closed automatically if no further
42+
activity occurs in the next 30 days.
43+
44+
If you want this issue to never become stale, please ask a PSC member to
45+
apply the "no stale" label.
46+
47+
# 15+30 day stale policy for issues pending more information
48+
# * Issues that are pending more information
49+
# * Except Issues marked as "no stale"
50+
- name: Needs more information stale issues policy
51+
uses: actions/stale@v4
52+
with:
53+
repo-token: ${{ secrets.GITHUB_TOKEN }}
54+
ascending: true
55+
only-labels: "needs more information"
56+
exempt-issue-labels: "no stale"
57+
days-before-stale: 15
58+
days-before-close: 30
59+
days-before-pr-stale: -1
60+
days-before-pr-close: -1
61+
remove-stale-when-updated: true
62+
stale-issue-label: "stale"
63+
stale-issue-message: >
64+
This issue needs more information and there hasn't been any activity
65+
recently, so it has been marked as stale and it will be closed automatically
66+
if no further activity occurs in the next 30 days.
67+
68+
If you think this is a mistake, please ask a PSC member to remove the "needs
69+
more information" label.

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exclude: |
55
# Files and folders generated by bots, to avoid loops
66
^setup/|/static/description/index\.html$|
77
# We don't want to mess with tool-generated files
8-
.svg$|/tests/([^/]+/)?cassettes/|^.github/|
8+
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|
99
# Maybe reactivate this when all README files include prettier ignore tags?
1010
^README\.md$|
1111
# Library files can have extraneous formatting (even minimized)

.pre-commit-config.yaml.rej

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
diff a/.pre-commit-config.yaml b/.pre-commit-config.yaml (rejected hunks)
2+
@@ -8,3 +7,3 @@ exclude: |
3+
# We don't want to mess with tool-generated files
4+
- .svg$|/tests/([^/]+/)?cassettes/|
5+
+ .svg$|/tests/([^/]+/)?cassettes/|^.github/|
6+
# Maybe reactivate this when all README files include prettier ignore tags?

CONTRIBUTING.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Runbot Status](https://runbot.odoo-community.org/runbot/badge/flat//14.0.svg)](https://runbot.odoo-community.org/runbot/repo/github-com-oca-odoo-pim-)
1+
[![Runbot Status](https://runbot.odoo-community.org/runbot/badge/flat/295/14.0.svg)](https://runbot.odoo-community.org/runbot/repo/github-com-oca-odoo-pim-295)
22
[![Build Status](https://travis-ci.com/OCA/odoo-pim.svg?branch=14.0)](https://travis-ci.com/OCA/odoo-pim)
33
[![codecov](https://codecov.io/gh/OCA/odoo-pim/branch/14.0/graph/badge.svg)](https://codecov.io/gh/OCA/odoo-pim)
44
[![Translation Status](https://translation.odoo-community.org/widgets/odoo-pim-14-0/-/svg-badge.svg)](https://translation.odoo-community.org/engage/odoo-pim-14-0/?utm_source=widget)

0 commit comments

Comments
 (0)