Add some lint checks.
This commit is contained in:
5
grunt-config/flake8.js
Normal file
5
grunt-config/flake8.js
Normal file
@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
src: [
|
||||
'accountant/**/*.py'
|
||||
]
|
||||
}
|
9
grunt-config/htmllint.js
Normal file
9
grunt-config/htmllint.js
Normal file
@ -0,0 +1,9 @@
|
||||
module.exports = {
|
||||
frontend: {
|
||||
options: {},
|
||||
src: [
|
||||
'accountant/frontend/templates/**/*.html',
|
||||
'accountant/frontend/static/templates/**/*.html'
|
||||
]
|
||||
}
|
||||
}
|
@ -5,7 +5,18 @@ module.exports = {
|
||||
},
|
||||
js: {
|
||||
files: '<%= paths.frontend_js %>',
|
||||
tasks: ['devjs']
|
||||
tasks: ['jsdev']
|
||||
},
|
||||
py: {
|
||||
files: 'accountant/**/*.py',
|
||||
tasks: ['pydev']
|
||||
},
|
||||
html: {
|
||||
files: [
|
||||
'accountant/frontend/templates/**/*.html',
|
||||
'accountant/frontend/static/templates/**/*.html'
|
||||
],
|
||||
tasks: ['htmldev']
|
||||
},
|
||||
gruntfile: {
|
||||
files: ['Gruntfile.js']
|
||||
|
Reference in New Issue
Block a user