Remove checks for copyright in charms
[osm/devops.git] / installers / charm / vca-integrator-operator / pyproject.toml
1 #######################################################################################
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]
20 branch = true
21
22 [tool.coverage.report]
23 show_missing = true
24
25 [tool.pytest.ini_options]
26 minversion = "6.0"
27 log_cli_level = "INFO"
28
29 # Formatting tools configuration
30 [tool.black]
31 line-length = 99
32 target-version = ["py38"]
33
34 [tool.isort]
35 profile = "black"
36
37 # Linting tools configuration
38 [tool.flake8]
39 max-line-length = 99
40 max-doc-length = 99
41 max-complexity = 10
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
51 [tool.bandit]
52 tests = ["B201", "B301"]