Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
chanchiwai-ray committed Jun 1, 2023
0 parents commit f93f46b
Show file tree
Hide file tree
Showing 39 changed files with 2,344 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This is a template `CODEOWNERS` file for snaps
# This file is managed by bootstack-charms-spec and should not be modified
# within individual snap repos. https://launchpad.net/bootstack-charms-spec

# For more information about CODEOWNER, please refer to
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#example-of-a-codeowners-file

# These owners will be the default owners for everything in the repo. Unless a
# later match takes precedence, @canonical/bootstack will be requested for
# review when someone opens a pull request.
* @canonical/bootstack-reviewers
23 changes: 23 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This is a template `pr.yaml` file for snaps
# This file is managed by bootstack-charms-spec and should not be modified
# within individual snap repos. https://launchpad.net/bootstack-charms-spec

name: PR workflow running lint checkers, unit and functional tests

on:
pull_request:
types: [ opened, synchronize, reopened ]
branches: [ master, main ]
pull_request_review:
types: [ submitted ]

jobs:
pr:
uses: canonical/bootstack-actions/.github/workflows/pull-request.yaml@main
secrets: inherit
with:
python-version-unit: "['3.8', '3.10']"
python-version-func: "3.10"
tox-version: "<4"
snapcraft: true
commands: "['make functional']"
14 changes: 14 additions & 0 deletions .github/workflows/sonar.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This is a template `sonar.yaml` file for snaps
# This file is managed by bootstack-charms-spec and should not be modified
# within individual snap repos. https://launchpad.net/bootstack-charms-spec

name: SonarCloud
on:
workflow_run:
workflows: [PR workflow running lint checkers, unit and functional tests]
types: [completed]

jobs:
sonar:
uses: canonical/bootstack-actions/.github/workflows/sonar.yaml@main
secrets: inherit
43 changes: 43 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This is a template `.gitignore` file for snaps
# This file is managed by bootstack-charms-spec and should not be modified
# within individual snap repos. https://launchpad.net/bootstack-charms-spec

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# Tests files and dir
.pytest_cache/
.coverage
.tox
.venv
reports/
**/report/
htmlcov/
.mypy_cache

# Log files
*.log

# IDEs
.idea/
.vscode/

# vi
.*.swp

# version data
repo-info

# Python builds
deb_dist/
dist/
*.egg-info/

# Snaps
*.snap

# Builds
.build/
build/
22 changes: 22 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This is a template `.pre-commit-config.yaml` file for snaps
# This file is managed by bootstack-charms-spec and should not be modified
# within individual snap repos. https://launchpad.net/bootstack-charms-spec

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-added-large-files
- id: check-json
- id: check-yaml
- repo: local
hooks:
- id: lint
name: lint
entry: make lint
language: system
types: [ python ]
Loading

0 comments on commit f93f46b

Please sign in to comment.