• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-2025 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)
29# R0917: Too many positional arguments,
30# W0719: Raising too general exception,
31# C0325: superfluous-parens
32disable=missing-module-docstring,
33        missing-class-docstring,
34        missing-function-docstring,
35        too-many-instance-attributes,
36        too-many-arguments,
37        logging-format-interpolation,
38        logging-fstring-interpolation,
39        too-few-public-methods,
40        duplicate-code,
41        too-many-positional-arguments,
42        broad-exception-raised,
43        superfluous-parens,
44        use-yield-from
45
46[FORMAT]
47max-line-length=120
48