Skip to content

Commit 9a083db

Browse files
committedOct 8, 2020
Initialize 14.0 branch
0 parents  commit 9a083db

17 files changed

+1352
-0
lines changed
 

‎.copier-answers.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Do NOT update manually; changes here will be overwritten by Copier
2+
_commit: v1.0.2
3+
_src_path: gh:oca/oca-addons-repo-template
4+
dependency_installation_mode: PIP
5+
include_wkhtmltopdf: false
6+
odoo_version: 14.0
7+
rebel_module_groups: []
8+
repo_description: "TODO: add repo description."
9+
repo_name: interface-github
10+
repo_slug: interface-github
11+
travis_apt_packages: []
12+
travis_apt_sources: []

‎.editorconfig

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Configuration for known file extensions
2+
[*.{css,js,json,less,md,py,rst,sass,scss,xml,yaml,yml}]
3+
charset = utf-8
4+
end_of_line = lf
5+
indent_size = 4
6+
indent_style = space
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
10+
[*.{json,yml,yaml,rst,md}]
11+
indent_size = 2
12+
13+
# Do not configure editor for libs and autogenerated content
14+
[{*/static/{lib,src/lib}/**,*/static/description/index.html,*/readme/../README.rst}]
15+
charset = unset
16+
end_of_line = unset
17+
indent_size = unset
18+
indent_style = unset
19+
insert_final_newline = false
20+
trim_trailing_whitespace = false

‎.eslintrc.yml

+180
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
env:
2+
browser: true
3+
4+
# See https://github.com/OCA/odoo-community.org/issues/37#issuecomment-470686449
5+
parserOptions:
6+
ecmaVersion: 2017
7+
8+
# Globals available in Odoo that shouldn't produce errorings
9+
globals:
10+
_: readonly
11+
$: readonly
12+
fuzzy: readonly
13+
jQuery: readonly
14+
moment: readonly
15+
odoo: readonly
16+
openerp: readonly
17+
Promise: readonly
18+
19+
# Styling is handled by Prettier, so we only need to enable AST rules;
20+
# see https://github.com/OCA/maintainer-quality-tools/pull/618#issuecomment-558576890
21+
rules:
22+
accessor-pairs: warn
23+
array-callback-return: warn
24+
callback-return: warn
25+
capitalized-comments:
26+
- warn
27+
- always
28+
- ignoreConsecutiveComments: true
29+
ignoreInlineComments: true
30+
complexity:
31+
- warn
32+
- 15
33+
constructor-super: warn
34+
dot-notation: warn
35+
eqeqeq: warn
36+
global-require: warn
37+
handle-callback-err: warn
38+
id-blacklist: warn
39+
id-match: warn
40+
init-declarations: error
41+
max-depth: warn
42+
max-nested-callbacks: warn
43+
max-statements-per-line: warn
44+
no-alert: warn
45+
no-array-constructor: warn
46+
no-caller: warn
47+
no-case-declarations: warn
48+
no-class-assign: warn
49+
no-cond-assign: error
50+
no-const-assign: error
51+
no-constant-condition: warn
52+
no-control-regex: warn
53+
no-debugger: error
54+
no-delete-var: warn
55+
no-div-regex: warn
56+
no-dupe-args: error
57+
no-dupe-class-members: error
58+
no-dupe-keys: error
59+
no-duplicate-case: error
60+
no-duplicate-imports: error
61+
no-else-return: warn
62+
no-empty-character-class: warn
63+
no-empty-function: error
64+
no-empty-pattern: error
65+
no-empty: warn
66+
no-eq-null: error
67+
no-eval: error
68+
no-ex-assign: error
69+
no-extend-native: warn
70+
no-extra-bind: warn
71+
no-extra-boolean-cast: warn
72+
no-extra-label: warn
73+
no-fallthrough: warn
74+
no-func-assign: error
75+
no-global-assign: error
76+
no-implicit-coercion:
77+
- warn
78+
- allow: ["~"]
79+
no-implicit-globals: warn
80+
no-implied-eval: warn
81+
no-inline-comments: warn
82+
no-inner-declarations: warn
83+
no-invalid-regexp: warn
84+
no-irregular-whitespace: warn
85+
no-iterator: warn
86+
no-label-var: warn
87+
no-labels: warn
88+
no-lone-blocks: warn
89+
no-lonely-if: error
90+
no-mixed-requires: error
91+
no-multi-str: warn
92+
no-native-reassign: error
93+
no-negated-condition: warn
94+
no-negated-in-lhs: error
95+
no-new-func: warn
96+
no-new-object: warn
97+
no-new-require: warn
98+
no-new-symbol: warn
99+
no-new-wrappers: warn
100+
no-new: warn
101+
no-obj-calls: warn
102+
no-octal-escape: warn
103+
no-octal: warn
104+
no-param-reassign: warn
105+
no-path-concat: warn
106+
no-process-env: warn
107+
no-process-exit: warn
108+
no-proto: warn
109+
no-prototype-builtins: warn
110+
no-redeclare: warn
111+
no-regex-spaces: warn
112+
no-restricted-globals: warn
113+
no-restricted-imports: warn
114+
no-restricted-modules: warn
115+
no-restricted-syntax: warn
116+
no-return-assign: error
117+
no-script-url: warn
118+
no-self-assign: warn
119+
no-self-compare: warn
120+
no-sequences: warn
121+
no-shadow-restricted-names: warn
122+
no-shadow: warn
123+
no-sparse-arrays: warn
124+
no-sync: warn
125+
no-this-before-super: warn
126+
no-throw-literal: warn
127+
no-undef-init: warn
128+
no-undef: error
129+
no-unmodified-loop-condition: warn
130+
no-unneeded-ternary: error
131+
no-unreachable: error
132+
no-unsafe-finally: error
133+
no-unused-expressions: error
134+
no-unused-labels: error
135+
no-unused-vars: error
136+
no-use-before-define: error
137+
no-useless-call: warn
138+
no-useless-computed-key: warn
139+
no-useless-concat: warn
140+
no-useless-constructor: warn
141+
no-useless-escape: warn
142+
no-useless-rename: warn
143+
no-void: warn
144+
no-with: warn
145+
operator-assignment: [error, always]
146+
prefer-const: warn
147+
radix: warn
148+
require-yield: warn
149+
sort-imports: warn
150+
spaced-comment: [error, always]
151+
strict: [error, function]
152+
use-isnan: error
153+
valid-jsdoc:
154+
- warn
155+
- prefer:
156+
arg: param
157+
argument: param
158+
augments: extends
159+
constructor: class
160+
exception: throws
161+
func: function
162+
method: function
163+
prop: property
164+
return: returns
165+
virtual: abstract
166+
yield: yields
167+
preferType:
168+
array: Array
169+
bool: Boolean
170+
boolean: Boolean
171+
number: Number
172+
object: Object
173+
str: String
174+
string: String
175+
requireParamDescription: false
176+
requireReturn: false
177+
requireReturnDescription: false
178+
requireReturnType: false
179+
valid-typeof: warn
180+
yoda: warn

‎.flake8

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[flake8]
2+
max-line-length = 80
3+
max-complexity = 16
4+
# B = bugbear
5+
# B9 = bugbear opinionated (incl line length)
6+
select = C,E,F,W,B,B9
7+
# E203: whitespace before ':' (black behaviour)
8+
# E501: flake8 line length (covered by bugbear B950)
9+
# W503: line break before binary operator (black behaviour)
10+
ignore = E203,E501,W503

‎.gitignore

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
/.venv
5+
/.pytest_cache
6+
7+
# C extensions
8+
*.so
9+
10+
# Distribution / packaging
11+
.Python
12+
env/
13+
bin/
14+
build/
15+
develop-eggs/
16+
dist/
17+
eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
*.eggs
27+
28+
# Installer logs
29+
pip-log.txt
30+
pip-delete-this-directory.txt
31+
32+
# Unit test / coverage reports
33+
htmlcov/
34+
.tox/
35+
.coverage
36+
.cache
37+
nosetests.xml
38+
coverage.xml
39+
40+
# Translations
41+
*.mo
42+
43+
# Pycharm
44+
.idea
45+
46+
# Eclipse
47+
.settings
48+
49+
# Visual Studio cache/options directory
50+
.vs/
51+
.vscode
52+
53+
# OSX Files
54+
.DS_Store
55+
56+
# Django stuff:
57+
*.log
58+
59+
# Mr Developer
60+
.mr.developer.cfg
61+
.project
62+
.pydevproject
63+
64+
# Rope
65+
.ropeproject
66+
67+
# Sphinx documentation
68+
docs/_build/
69+
70+
# Backup files
71+
*~
72+
*.swp
73+
74+
# OCA rules
75+
!static/lib/

‎.isort.cfg

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[settings]
2+
; see https://github.com/psf/black
3+
multi_line_output=3
4+
include_trailing_comma=True
5+
force_grid_wrap=0
6+
combine_as_imports=True
7+
use_parentheses=True
8+
line_length=88
9+
known_odoo=odoo
10+
known_odoo_addons=odoo.addons
11+
sections=FUTURE,STDLIB,THIRDPARTY,ODOO,ODOO_ADDONS,FIRSTPARTY,LOCALFOLDER
12+
default_section=THIRDPARTY

0 commit comments

Comments
 (0)
Please sign in to comment.