• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2023 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6# http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14[MAIN]
15ignore=.git
16py-version=3.8
17recursive=yes
18
19[MESSAGES CONTROL]
20# C0114: Missing module docstring (missing-module-docstring)
21# C0115: Missing class docstring (missing-class-docstring)
22# C0116: Missing function or method docstring (missing-function-docstring)
23# R0801: Similar lines in ... files ... (duplicate-code)
24# R0902: Too many instance attributes (too-many-instance-attributes)
25# R0903: Too few public methods (too-few-public-methods)
26# R0913: Too many arguments (too-many-arguments)
27# R0914: Too many local variables (too-many-locals)
28# W1202: Use % formatting in logging functions and pass the % parameters as arguments (logging-format-interpolation)
29disable=missing-module-docstring,
30        missing-class-docstring,
31        missing-function-docstring,
32        too-many-instance-attributes,
33        too-many-arguments,
34        logging-format-interpolation,
35        logging-fstring-interpolation,
36        too-few-public-methods,
37        duplicate-code
38
39[FORMAT]
40max-line-length=120
41