|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | + |
| 17 | +[flake8] |
| 18 | + |
| 19 | +# run with `--disable-noqa` to reevaluate skipped inspections |
| 20 | +# Do not use ignore option, it will override some plugin's default ignore |
| 21 | +extend-ignore = |
| 22 | + E303, # Too many blank lines | Conflict with Pycharm |
| 23 | + E126, # Continuation line over-indented for hanging indent | Conflict with Pycharm |
| 24 | + E501, # Line too long | Customized by max-line-length |
| 25 | + W503, # Line break occurred before a binary operator | Conflict with W504 |
| 26 | + # temporarily banned rules for various reasons, likely to re-enable in the future |
| 27 | + E800, # Found commented out code | Temporarily disabled for legacy code |
| 28 | + D, # docstring | To be enhanced, large number |
| 29 | + DAR, # docstring structure | To be fixed |
| 30 | + |
| 31 | + |
| 32 | +max-line-length = 120 |
| 33 | +max-complexity = 20 |
| 34 | +exclude = venv*,*egg_info,skywalking/protocol |
| 35 | +count = True |
| 36 | +show-source = True |
| 37 | +statistics = True |
| 38 | +docstring-convention = google |
| 39 | + |
| 40 | +[bandit] |
| 41 | +exclude = tests,docs |
| 42 | +tests: B101 |
| 43 | + |
| 44 | +[darglint] |
| 45 | +docstring_style = google |
| 46 | + |
| 47 | +[isort] |
| 48 | +line_length = 120 |
| 49 | +multi_line_output = 11 |
0 commit comments