df70e376ff
* Add sunbeam project template to run pep8, py3 tests * Add zuul.d/zuul.yaml to run pep8, py3, cover tests * Update charmcraft and requirements for each charm * Add global tox.ini to invoke fmt, pep8, py3, cover, build * Add gitreview file * Fix py3 test failures in ciner-ceph-k8s, glance-k8s, openstack-exporter * Add jobs for charm builds using files option so that job is invoked if files within the component are modified. Add charm builds to both check and gate pipeline. * Make function tests as part of global. Split the function tests into core, ceph, caas, misc mainly to accomodate function tests to run on 8GB. Add function tests as part of check pipeline. * Add zuul job to publish charms in promote pipeline Add charmhub token as secret that can be used to publish charms. Note: Charmhub token is generated with ttl of 90 days. * Run tox formatting * Make .gitignore, .jujuignore, .stestr.conf global and remove the files from all charms. * Make libs and templates global. Split libs to internal and external so that internal libs can adhere to sunbeam formatting styles. * Add script to copy common files necessary libs, config templates, stestr conf, jujuignore during py3 tests and charm builds. * Tests for keystone-ldap-k8s are commented due to intermittent bug LP#2045206 Change-Id: I804ca64182c109d16bd820ac00f129aa6dcf4496
40 lines
1.0 KiB
TOML
40 lines
1.0 KiB
TOML
# Copyright 2022 Canonical Ltd.
|
|
# See LICENSE file for licensing details.
|
|
|
|
# Testing tools configuration
|
|
[tool.coverage.run]
|
|
branch = true
|
|
|
|
[tool.coverage.report]
|
|
show_missing = true
|
|
|
|
[tool.pytest.ini_options]
|
|
minversion = "6.0"
|
|
log_cli_level = "INFO"
|
|
|
|
# Formatting tools configuration
|
|
[tool.black]
|
|
line-length = 79
|
|
|
|
[tool.isort]
|
|
profile = "black"
|
|
multi_line_output = 3
|
|
force_grid_wrap = true
|
|
|
|
# Linting tools configuration
|
|
[tool.flake8]
|
|
max-line-length = 79
|
|
max-doc-length = 99
|
|
max-complexity = 10
|
|
exclude = [".git", "__pycache__", ".tox", "build", "dist", "*.egg_info", "venv"]
|
|
select = ["E", "W", "F", "C", "N", "R", "D", "H"]
|
|
# Ignore W503, E501 because using black creates errors with this
|
|
# Ignore D107 Missing docstring in __init__
|
|
ignore = ["W503", "E501", "D107", "E402"]
|
|
per-file-ignores = []
|
|
docstring-convention = "google"
|
|
# Check for properly formatted copyright header in each file
|
|
copyright-check = "True"
|
|
copyright-author = "Canonical Ltd."
|
|
copyright-regexp = "Copyright\\s\\d{4}([-,]\\d{4})*\\s+%(author)s"
|