1 #######################################################################################
2 # Copyright ETSI Contributors and Others.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #######################################################################################
18 # Testing tools configuration
22 [tool.coverage.report]
25 [tool.pytest.ini_options]
27 log_cli_level = "INFO"
29 # Formatting tools configuration
32 target-version = ["py38"]
37 # Linting tools configuration
42 exclude = [".git", "__pycache__", ".tox", "build", "dist", "*.egg_info", "venv"]
43 select = ["E", "W", "F", "C", "N", "R", "D", "H"]
44 # Ignore W503, E501 because using black creates errors with this
45 # Ignore D107 Missing docstring in __init__
46 ignore = ["W503", "E402", "E501", "D107"]
47 # D100, D101, D102, D103: Ignore missing docstrings in tests
48 per-file-ignores = ["tests/*:D100,D101,D102,D103,D104"]
49 docstring-convention = "google"
50 # Check for properly formatted copyright header in each file
51 copyright-check = "True"
52 copyright-author = "Canonical Ltd."
53 copyright-regexp = "Copyright\\s\\d{4}([-,]\\d{4})*\\s+%(author)s"
56 tests = ["B201", "B301"]