blob: 7f5495be5ab649281d858cbf0251e8e7db1b0459 [file] [log] [blame]
Mark Beierl951d90b2022-08-12 11:13:24 -04001#######################################################################################
2# Copyright ETSI Contributors and Others.
3#
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
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
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
13# implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16#######################################################################################
17
18# Testing tools configuration
19[tool.coverage.run]
20branch = true
21
22[tool.coverage.report]
23show_missing = true
24
25[tool.pytest.ini_options]
26minversion = "6.0"
27log_cli_level = "INFO"
28
29# Formatting tools configuration
30[tool.black]
31line-length = 99
32target-version = ["py38"]
33
34[tool.isort]
35profile = "black"
36
37# Linting tools configuration
38[tool.flake8]
39max-line-length = 99
40max-doc-length = 99
41max-complexity = 10
42exclude = [".git", "__pycache__", ".tox", "build", "dist", "*.egg_info", "venv"]
43select = ["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__
46ignore = ["W503", "E402", "E501", "D107"]
47# D100, D101, D102, D103: Ignore missing docstrings in tests
48per-file-ignores = ["tests/*:D100,D101,D102,D103,D104"]
49docstring-convention = "google"
Mark Beierl951d90b2022-08-12 11:13:24 -040050
51[tool.bandit]
52tests = ["B201", "B301"]