Skip to content

Commit 14ead29

Browse files
[ADD] hr-workweek: added dotfiles
1 parent 96e2f05 commit 14ead29

9 files changed

+656
-0
lines changed

.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

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

.flake8

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[flake8]
2+
max-line-length = 88
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
11+
per-file-ignores=
12+
__init__.py:F401

.gitignore

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
*.egg-info/
23+
.installed.cfg
24+
*.egg
25+
*.eggs
26+
27+
# Installer logs
28+
pip-log.txt
29+
pip-delete-this-directory.txt
30+
31+
# Unit test / coverage reports
32+
htmlcov/
33+
.tox/
34+
.coverage
35+
.cache
36+
nosetests.xml
37+
coverage.xml
38+
39+
# Translations
40+
*.mo
41+
42+
# Pycharm
43+
.idea
44+
45+
# Eclipse
46+
.settings
47+
48+
# Visual Studio cache/options directory
49+
.vs/
50+
.vscode
51+
52+
# OSX Files
53+
.DS_Store
54+
55+
# Django stuff:
56+
*.log
57+
58+
# Mr Developer
59+
.mr.developer.cfg
60+
.project
61+
.pydevproject
62+
63+
# Rope
64+
.ropeproject
65+
66+
# Sphinx documentation
67+
docs/_build/
68+
69+
# Backup files
70+
*~
71+
*.swp
72+
73+
# OCA rules
74+
!static/lib/

.isort.cfg

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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
13+
ensure_newline_before_comments = True

0 commit comments

Comments
 (0)