Skip to content

Commit 34d8d86

Browse files
committed
[IMP] update dotfiles [ci skip]
1 parent 2d3da1a commit 34d8d86

File tree

7 files changed

+37
-19
lines changed

7 files changed

+37
-19
lines changed

.copier-answers.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
# Do NOT update manually; changes here will be overwritten by Copier
2-
_commit: v1.3.6
2+
_commit: v1.5.2
33
_src_path: gh:oca/oca-addons-repo-template
44
ci: Travis
55
dependency_installation_mode: PIP
66
generate_requirements_txt: true
77
include_wkhtmltopdf: false
88
odoo_version: 14.0
9+
org_name: Odoo Community Association (OCA)
10+
org_slug: OCA
911
rebel_module_groups: []
1012
repo_description: 'TODO: add repo description.'
1113
repo_name: account-closing
1214
repo_slug: account-closing
15+
repo_website: https://github.com/OCA/account-closing
1316
travis_apt_packages: []
1417
travis_apt_sources: []

.eslintrc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ env:
44

55
# See https://github.com/OCA/odoo-community.org/issues/37#issuecomment-470686449
66
parserOptions:
7-
ecmaVersion: 2017
7+
ecmaVersion: 2019
88

99
overrides:
1010
- files:

.github/workflows/pre-commit.yml

+22-7
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,34 @@ name: pre-commit
22

33
on:
44
pull_request:
5+
branches:
6+
- "14.0*"
57
push:
8+
branches:
9+
- "14.0"
10+
- "14.0-ocabot-*"
611

712
jobs:
813
pre-commit:
914
runs-on: ubuntu-latest
1015
steps:
1116
- uses: actions/checkout@v2
1217
- uses: actions/setup-python@v2
18+
- name: Get python version
19+
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
20+
- uses: actions/cache@v1
1321
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"
20-
- uses: pre-commit/action@v2.0.0
22+
path: ~/.cache/pre-commit
23+
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
24+
- name: Install pre-commit
25+
run: pip install pre-commit
26+
- name: Run pre-commit
27+
run: pre-commit run --all-files --show-diff-on-failure --color=always
28+
- name: Check that all files generated by pre-commit are in git
29+
run: |
30+
newfiles="$(git ls-files --others --exclude-from=.gitignore)"
31+
if [ "$newfiles" != "" ] ; then
32+
echo "Please check-in the following files:"
33+
echo "$newfiles"
34+
exit 1
35+
fi

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ repos:
4646
- --remove-duplicate-keys
4747
- --remove-unused-variables
4848
- repo: https://github.com/psf/black
49-
rev: 20.8b1
49+
rev: 22.3.0
5050
hooks:
5151
- id: black
5252
- repo: https://github.com/pre-commit/mirrors-prettier
@@ -120,7 +120,7 @@ repos:
120120
name: flake8
121121
additional_dependencies: ["flake8-bugbear==20.1.4"]
122122
- repo: https://github.com/PyCQA/pylint
123-
rev: pylint-2.5.3
123+
rev: v2.11.1
124124
hooks:
125125
- id: pylint
126126
name: pylint with optional checks
@@ -129,7 +129,7 @@ repos:
129129
- --exit-zero
130130
verbose: true
131131
additional_dependencies: &pylint_deps
132-
- pylint-odoo==3.5.0
132+
- pylint-odoo==5.0.5
133133
- id: pylint
134134
name: pylint with mandatory checks
135135
args:

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
[![Runbot Status](https://runbot.odoo-community.org/runbot/badge/flat/89/14.0.svg)](https://runbot.odoo-community.org/runbot/repo/github-com-oca-account-closing-89)
1+
2+
[![Runboat](https://img.shields.io/badge/runboat-Try%20me-875A7B.png)](https://runboat.odoo-community.org/builds?repo=OCA/account-closing&target_branch=14.0)
23
[![Build Status](https://travis-ci.com/OCA/account-closing.svg?branch=14.0)](https://travis-ci.com/OCA/account-closing)
34
[![codecov](https://codecov.io/gh/OCA/account-closing/branch/14.0/graph/badge.svg)](https://codecov.io/gh/OCA/account-closing)
45
[![Translation Status](https://translation.odoo-community.org/widgets/account-closing-14-0/-/svg-badge.svg)](https://translation.odoo-community.org/engage/account-closing-14-0/?utm_source=widget)
@@ -33,12 +34,11 @@ addon | version | maintainers | summary
3334

3435
This repository is licensed under [AGPL-3.0](LICENSE).
3536

36-
However, each module can have a totally different license, as long as they adhere to OCA
37+
However, each module can have a totally different license, as long as they adhere to Odoo Community Association (OCA)
3738
policy. Consult each module's `__manifest__.py` file, which contains a `license` key
3839
that explains its license.
3940

4041
----
41-
4242
OCA, or the [Odoo Community Association](http://odoo-community.org/), is a nonprofit
4343
organization whose mission is to support the collaborative development of Odoo features
4444
and promote its widespread use.

account_cutoff_start_end_dates/tests/test_account_cutoff_prepaid.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def setUpClass(cls):
6767
)
6868

6969
def _date(self, date):
70-
""" convert MM-DD to current year date YYYY-MM-DD """
70+
"""convert MM-DD to current year date YYYY-MM-DD"""
7171
return time.strftime("%Y-" + date)
7272

7373
def _days(self, start_date, end_date):
@@ -118,7 +118,7 @@ def _create_cutoff(self, date):
118118
return cutoff
119119

120120
def test_with_cutoff_before_after_and_in_the_middle(self):
121-
""" basic test with cutoff before, after and in the middle """
121+
"""basic test with cutoff before, after and in the middle"""
122122
amount = self._days("04-01", "06-30")
123123
amount_2months = self._days("05-01", "06-30")
124124
# invoice to be spread of 3 months
@@ -137,7 +137,7 @@ def test_with_cutoff_before_after_and_in_the_middle(self):
137137
self.assertEqual(amount, cutoff.total_cutoff_amount)
138138

139139
def tests_1(self):
140-
""" generate move, and test move lines grouping """
140+
"""generate move, and test move lines grouping"""
141141
# two invoices
142142
amount = self._days("04-01", "06-30")
143143
self._create_invoice("01-15", amount, start_date="04-01", end_date="06-30")

account_invoice_start_end_dates/tests/test_invoice_start_end_dates.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def setUpClass(cls):
3232
)
3333

3434
def _date(self, date):
35-
""" convert MM-DD to current year date YYYY-MM-DD """
35+
"""convert MM-DD to current year date YYYY-MM-DD"""
3636
return time.strftime("%Y-" + date)
3737

3838
def test_invoice(self):

0 commit comments

Comments
 (0)