Add Ng-UI sidecar charm
[osm/devops.git] / installers / charm / osm-ng-ui / pyproject.toml
1 # Copyright 2022 Canonical Ltd.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License"); you may
4 # not use this file except in compliance with the License. You may obtain
5 # a copy of the License at
6 #
7 #         http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 # License for the specific language governing permissions and limitations
13 # under the License.
14 #
15 # For those usages not covered by the Apache License, Version 2.0 please
16 # contact: legal@canonical.com
17 #
18 # To get in touch with the maintainers, please contact:
19 # osm-charmers@lists.launchpad.net
20
21 # Testing tools configuration
22 [tool.coverage.run]
23 branch = true
24
25 [tool.coverage.report]
26 show_missing = true
27
28 [tool.pytest.ini_options]
29 minversion = "6.0"
30 log_cli_level = "INFO"
31
32 # Formatting tools configuration
33 [tool.black]
34 line-length = 99
35 target-version = ["py38"]
36
37 [tool.isort]
38 profile = "black"
39
40 # Linting tools configuration
41 [tool.flake8]
42 max-line-length = 99
43 max-doc-length = 99
44 max-complexity = 10
45 exclude = [".git", "__pycache__", ".tox", "build", "dist", "*.egg_info", "venv"]
46 select = ["E", "W", "F", "C", "N", "R", "D", "H"]
47 # Ignore W503, E501 because using black creates errors with this
48 # Ignore D107 Missing docstring in __init__
49 ignore = ["W503", "E501", "D107"]
50 # D100, D101, D102, D103: Ignore missing docstrings in tests
51 per-file-ignores = ["tests/*:D100,D101,D102,D103,D104"]
52 docstring-convention = "google"
53 # Check for properly formatted copyright header in each file
54 copyright-check = "True"
55 copyright-author = "Canonical Ltd."
56 copyright-regexp = "Copyright\\s\\d{4}([-,]\\d{4})*\\s+%(author)s"