Repository Config
checks:
python:
basic_invalid_name:
functions: '[a-z_][a-z0-9_]{2,30}$'
variables: '[a-z_][a-z0-9_]{1,30}$'
whitelisted_names: 'd,e,ex,f,i,j,k,l,m,v,x,Run,_'
constants: '(([A-Z_][A-Z0-9_]*)|(__.*__))$'
attributes: '[a-z_][a-z0-9_]{2,30}$'
arguments: '[a-z_][a-z0-9_]{2,30}$'
class_attributes: '([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$'
inline_vars: '[A-Za-z_][A-Za-z0-9_]*$'
classes: '[A-Z_][a-zA-Z0-9]+$'
modules: '(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$'
methods: '[a-z_][a-z0-9_]{2,30}$'
variables_used_before_assignment: true
variables_undefined_variable: true
typecheck_too_many_function_args: true
logging_unsupported_format: true
logging_too_few_args: true
filter:
excluded_paths:
- 'test/*'
Global Config
checks:
python:
basic_eval_used: true
basic_exec_used: true
code_rating: true
duplicate_code: true
variables_unused_variable: true
variables_unused_import: true
variables_unused_argument: true
variables_unpacking_non_sequence: true
variables_undefined_all_variable: true
variables_unbalanced_tuple_unpacking: true
variables_redefined_outer_name: true
design_abstract_class_little_used: true
variables_global_variable_not_assigned: true
variables_global_statement: true
variables_global_at_module_level: true
typecheck_redundant_keyword_arg: true
miscellaneous_fixme: true
imports_import_self: true
imports_deprecated_module: true
format_trailing_whitespace: true
format_superfluous_parens: true
format_multiple_statements: true
format_mixed_indentation: true
format_missing_final_newline: true
format_line_too_long:
max_length: '80'
design_abstract_class_not_used: true
classes_no_self_argument: true
basic_unreachable: true
basic_pointless_statement: true
basic_empty_docstring: true