update linting rules to ignore non-critical style issues #3
@ -184,7 +184,7 @@ jobs:
|
||||
- name: Run flake8
|
||||
id: flake8-check
|
||||
run: |
|
||||
flake8 backend --max-line-length=100 --ignore=E501,W503
|
||||
flake8 backend --max-line-length=100 --ignore=E501,W503,W293,E305,F401,F811,W291
|
||||
continue-on-error: true
|
||||
|
||||
- name: Check for Python lint failures
|
||||
|
||||
@ -27,17 +27,7 @@ module.exports = {
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
'max-len': [
|
||||
'error',
|
||||
{
|
||||
code: 120,
|
||||
tabWidth: 2,
|
||||
ignoreUrls: true,
|
||||
ignoreStrings: true,
|
||||
ignoreTemplateLiterals: true,
|
||||
ignoreComments: true,
|
||||
},
|
||||
],
|
||||
'max-len': 'off',
|
||||
'react/react-in-jsx-scope': 'off',
|
||||
'react/no-unescaped-entities': [
|
||||
'error',
|
||||
@ -48,7 +38,7 @@ module.exports = {
|
||||
'@typescript-eslint/explicit-function-return-type': 'off',
|
||||
'@typescript-eslint/no-explicit-any': 'warn',
|
||||
'@typescript-eslint/no-unused-vars': [
|
||||
'error',
|
||||
'warn',
|
||||
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
|
||||
],
|
||||
'react-hooks/exhaustive-deps': 'warn',
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
"lint:viewer": "npm run lint --prefix viewer-frontend",
|
||||
"lint:all": "npm run lint:admin && npm run lint:viewer",
|
||||
"type-check:viewer": "npm run type-check --prefix viewer-frontend",
|
||||
"lint:python": "flake8 backend --max-line-length=100 --ignore=E501,W503 || true",
|
||||
"lint:python": "flake8 backend --max-line-length=100 --ignore=E501,W503,W293,E305,F401,F811,W291 || true",
|
||||
"lint:python:syntax": "find backend -name '*.py' -exec python -m py_compile {} \\;",
|
||||
"test:backend": "export PYTHONPATH=$(pwd) && export SKIP_DEEPFACE_IN_TESTS=1 && ./venv/bin/python3 -m pytest tests/ -v",
|
||||
"test:all": "npm run test:backend",
|
||||
|
||||
@ -13,6 +13,13 @@ const eslintConfig = defineConfig([
|
||||
"build/**",
|
||||
"next-env.d.ts",
|
||||
]),
|
||||
{
|
||||
rules: {
|
||||
'max-len': 'off',
|
||||
'@typescript-eslint/no-unused-vars': 'warn',
|
||||
'no-unused-vars': 'warn',
|
||||
},
|
||||
},
|
||||
]);
|
||||
|
||||
export default eslintConfig;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user