Skip to content

Commit 6986294

Browse files
authored
Merge pull request #3 from QualiSystems/dev
initial release
2 parents e381fa1 + d6d2460 commit 6986294

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+977
-258
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: check version
2+
on:
3+
pull_request:
4+
paths-ignore:
5+
- README.md
6+
branches:
7+
- master
8+
jobs:
9+
check-version:
10+
uses: QualiSystems/.github/.github/workflows/package-check-version.yml@master
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: deploy package
2+
on:
3+
release:
4+
types: [ published ]
5+
jobs:
6+
tox-ci:
7+
uses: QualiSystems/.github/.github/workflows/package-tox-py-39.yml@master
8+
pypi-deploy:
9+
needs: tox-ci
10+
uses: QualiSystems/.github/.github/workflows/package-deploy-pypi.yml@master
11+
secrets: inherit
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: github release
2+
on:
3+
push:
4+
paths-ignore:
5+
- README.md
6+
branches:
7+
- master
8+
jobs:
9+
tox-ci:
10+
uses: QualiSystems/.github/.github/workflows/package-tox-py-39.yml@master
11+
pypi-deploy:
12+
needs: tox-ci
13+
uses: QualiSystems/.github/.github/workflows/package-github-release.yml@master

.github/workflows/package.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: package CI
2+
on:
3+
push:
4+
paths-ignore:
5+
- README.md
6+
branches-ignore:
7+
- master
8+
jobs:
9+
tox-ci:
10+
uses: QualiSystems/.github/.github/workflows/package-tox-py-39.yml@master

.github/workflows/py2-py3-packages-ci.yml

Lines changed: 0 additions & 189 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
repos:
22
- repo: https://github.com/asottile/pyupgrade
3-
rev: v2.25.0
3+
rev: v3.3.1
44
hooks:
55
- id: pyupgrade
66
args:
77
- "--py37-plus"
88
- repo: https://github.com/timothycrosley/isort
9-
rev: 5.9.3
9+
rev: 5.12.0
1010
hooks:
1111
- id: isort
12-
exclude: '/mibs'
1312
- repo: https://github.com/python/black
14-
rev: 21.8b0
13+
rev: 23.3.0
1514
hooks:
1615
- id: black
1716
exclude: '/mibs'
18-
- repo: https://gitlab.com/pycqa/flake8
19-
rev: 3.9.2
17+
- repo: https://github.com/pycqa/flake8
18+
rev: 5.0.4
2019
hooks:
2120
- id: flake8
2221
additional_dependencies: [

README.md

Lines changed: 8 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,10 @@
1-
# CloudShell package repo template
1+
# cloudshell-networking-ipinfusion
22

3-
[![Build status](https://github.com/QualiSystems/cloudshell-package-repo-template/workflows/CI/badge.svg?branch=master)](https://github.com/QualiSystems/cloudshell-package-repo-template/actions?query=branch%3Amaster)
4-
[![codecov](https://codecov.io/gh/QualiSystems/cloudshell-package-repo-template/branch/dev/graph/badge.svg)](https://codecov.io/gh/QualiSystems/cloudshell-package-repo-template)
5-
[![PyPI version](https://shields.io/pypi/v/cloudshell-template)](https://pypi.org/project/cloudshell-template)
6-
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
3+
[![Build status](https://travis-ci.org/QualiSystems/cloudshell-networking-ipinfusion.svg?branch=dev)](https://travis-ci.org/QualiSystems/cloudshell-networking-ipinfusion)
4+
[![codecov](https://codecov.io/gh/QualiSystems/cloudshell-networking-ipinfusion/branch/master/graph/badge.svg)](https://codecov.io/gh/QualiSystems/cloudshell-networking-ipinfusion)
5+
[![PyPI version](https://badge.fury.io/py/cloudshell-networking-ipinfusion.svg)](https://badge.fury.io/py/cloudshell-networking-ipinfusion)
6+
[![Dependency Status](https://dependencyci.com/github/QualiSystems/cloudshell-networking-ipinfusion/badge)](https://dependencyci.com/github/QualiSystems/cloudshell-networking-ipinfusion)
77

8-
Use this template to create new shell packages.
9-
10-
## Description of services
11-
### tox
12-
[tox](https://pypi.org/project/tox/) is an open source tool we use to run tests in multiple virtual environments.
13-
* To run all tests described in tox.ini, just run `tox`.
14-
* To run a particular env use `tox -e env_name`.
15-
16-
### pre-commit
17-
[pre-commit](https://pypi.org/project/pre-commit/) is an open source library we use to manage pre-commit hooks.
18-
* Run all code linters with a command `pre-commit run --all-files`.
19-
* Add git hook with command `pre-commit install`.
20-
* To update versions of pre-commit hooks in config file run `pre-commit autoupdate`
21-
22-
We use these hooks:
23-
* **isort** sorts imports (config in tox.ini)
24-
* **black** reformats code to one style (config in pyproject.toml)
25-
* **flake8** checks code style (config in tox.ini). We use these plugins:
26-
* `flake8-docstring` to check docstrings
27-
* `flake8-builtins` to avoid using builtins as variable names
28-
* `flake8-comprehensions` to check list/dict comprehensions
29-
* `flake8-print` to ensure we don't leave prints in the code
30-
* `flake8-eradicate` to ensure we don't leave commented lines in the code
31-
32-
## Installation
33-
34-
### tox.ini
35-
* Set the `package-name` var regarding your package.
36-
* Set the python version in envlist.
37-
38-
### .travis.yml
39-
* Set the python version regarding tox.ini.
40-
41-
### pyproject.toml
42-
* Set the python version for black.
43-
44-
### setup.py
45-
* Set a name and description for the package.
46-
* Set the python version of the shell.
47-
48-
### README.md
49-
* Update links for build, coverage etc.
50-
* Add the line to README
51-
We use tox and pre-commit for testing. [Services description](https://github.com/QualiSystems/cloudshell-package-repo-template#description-of-services)
8+
<p align="center">
9+
<img src="https://github.com/QualiSystems/devguide_source/raw/master/logo.png"></img>
10+
</p>
File renamed without changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from pkgutil import extend_path
2+
3+
__path__ = extend_path(__path__, __name__)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from pkgutil import extend_path
2+
3+
__path__ = extend_path(__path__, __name__)

0 commit comments

Comments
 (0)