update linting rules to ignore non-critical style issues #3

Merged
tanyar09 merged 5 commits from ci/ignore-linting-errors into dev 2026-01-19 15:30:05 -05:00
4 changed files with 11 additions and 14 deletions
Showing only changes of commit ebde652fb0 - Show all commits

View File

@ -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

View File

@ -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',

View File

@ -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",

View File

@ -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;