This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Most of the code here was extracted from molecule.
- Loading branch information
0 parents
commit 450b839
Showing
22 changed files
with
1,479 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[flake8] | ||
# do not add excludes for files in repo | ||
exclude = .venv/,.tox/,dist/,build/,.eggs/ | ||
format = pylint | ||
# E203: https://github.com/python/black/issues/315 | ||
ignore = E741,W503,W504,H,E501,E203 | ||
# 88 is official black default: | ||
max-line-length = 88 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
pip-wheel-metadata | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
repos: | ||
- repo: https://github.com/python/black.git | ||
rev: 19.3b0 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
- repo: https://github.com/pre-commit/pre-commit-hooks.git | ||
rev: v2.2.3 | ||
hooks: | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: mixed-line-ending | ||
- id: check-byte-order-marker | ||
- id: check-executables-have-shebangs | ||
- id: check-merge-conflict | ||
- id: debug-statements | ||
- repo: https://gitlab.com/pycqa/flake8.git | ||
rev: 3.7.8 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
- flake8-black | ||
- flake8-mypy | ||
language_version: python3 | ||
- repo: https://github.com/adrienverge/yamllint.git | ||
rev: v1.16.0 | ||
hooks: | ||
- id: yamllint | ||
files: \.(yaml|yml)$ | ||
types: [file, yaml] | ||
entry: yamllint --strict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
--- | ||
conditions: v1 | ||
dist: xenial | ||
|
||
git: | ||
depth: 200 | ||
|
||
cache: | ||
bundler: true | ||
pip: true | ||
directories: | ||
- $HOME/.cache/pre-commit | ||
- $HOME/.pre-commit | ||
- $HOME/.rvm | ||
- $HOME/Library/Caches/Homebrew | ||
|
||
services: | ||
- docker | ||
|
||
language: python | ||
|
||
.mixtures: # is not used by Travis CI, but helps avoid duplication | ||
- &if-cron-or-manual-run-or-tagged | ||
if: type IN (cron, api) OR tag IS present | ||
- &py-27 | ||
python: "2.7" | ||
- &py-36 | ||
python: "3.6" | ||
- &py-37 | ||
python: "3.7" | ||
- &reset-prerequisites | ||
addons: {} | ||
before_install: | ||
- pip install tox-venv tox-tags | ||
before_script: [] | ||
services: [] | ||
- &lint | ||
<<: *py-37 | ||
<<: *reset-prerequisites | ||
|
||
jobs: | ||
fast_finish: true | ||
|
||
include: | ||
- <<: *lint | ||
name: linting the code | ||
env: | ||
- TOXENV=lint,check | ||
|
||
- <<: *py-37 | ||
env: | ||
- TOXENV=devel | ||
|
||
- <<: *py-36 | ||
<<: *if-cron-or-manual-run-or-tagged | ||
env: | ||
- TOXENV=devel | ||
|
||
- <<: *py-27 | ||
env: | ||
- TOXENV=devel | ||
|
||
- <<: *py-37 | ||
env: | ||
- TOXENV=ansible28 | ||
name: py37-ansible28 | ||
|
||
- <<: *py-37 | ||
env: | ||
- TOXENV=ansible27 | ||
name: py37-ansible27 | ||
|
||
- <<: *py-37 | ||
env: | ||
- TOXENV=ansible26 | ||
name: py37-ansible26 | ||
|
||
- <<: *py-36 | ||
<<: *if-cron-or-manual-run-or-tagged | ||
env: | ||
- TOXENV=ansible28 | ||
name: py36-ansible28 | ||
|
||
- <<: *py-36 | ||
<<: *if-cron-or-manual-run-or-tagged | ||
env: | ||
- TOXENV=ansible27 | ||
name: py36-ansible27 | ||
|
||
- <<: *py-36 | ||
<<: *if-cron-or-manual-run-or-tagged | ||
env: | ||
- TOXENV=ansible26 | ||
name: py36-ansible26 | ||
|
||
- <<: *py-27 | ||
env: | ||
- TOXENV=ansible28 | ||
name: py27-ansible28 | ||
|
||
- <<: *py-27 | ||
env: | ||
- TOXENV=ansible27 | ||
name: py27-ansible27 | ||
|
||
- <<: *py-27 | ||
env: | ||
- TOXENV=ansible26 | ||
name: py27-ansible26 | ||
|
||
- &deploy-job | ||
<<: *py-37 | ||
<<: *reset-prerequisites | ||
stage: Deploy | ||
name: Publishing current Git tagged version of dist to PyPI | ||
if: repo == "pycontribs/molecule-goss" AND tag IS present | ||
env: | ||
- TOXENV=build-dists | ||
before_deploy: | ||
- echo > setup.py | ||
deploy: &deploy-step | ||
provider: pypi | ||
user: ansible-molecule | ||
password: | ||
secure: > | ||
HPBkDwncLYLEzxirPfNB88GYFWZ/wA1jMgCd4wT7SgKQlIyRSCT6KXMfoOUVMH/uwaLggoURaGtmD/qnrfXj+bG15nBCCOaIZdXzODln/PwDFAYT8ZspzRPzQOfncdk4WTsVbwpiGgpdm+TxGGBz8yedvVXiTwmwLCGC0FsAE8Wp8krNH1Kwqp3OaZeePakIbEj0UXgCTnAol3ZgVWWy+6bfDBb/aLiGXjsAIb7sY6HzwvQUr43xFO7tReaGO23mGwgIy/tNstXarwxezlw6FlGe5KJGvE/a4yAPuWg9kuJt5MqwbCJzhP38SeH4Gc6x0o6jPT/+NbvLV1ck1Qbz5gCYmXlOzucDP+P5t8E3g+zJbNbCR00k1BpG3MIEzrHeyp/hCdDYnGB3TVnlj+L4Y/yoUdCq9FJI8xHLbj/fMe5vxBMMsvDbt2JJReavi3WB2pv2nHtivkKj/Kow4FRm+Kp3WH4x5NlZDjV5gsUbwPcN1kIpb09sPZE2wYugvCTOiExt7mdd0JMMcgxuR1jGgGxqRARQeqjz14VVNsrVIIrMh8JX8u7Rl9sqmU4UuLGTxnq2cwyBmYzJ0gmDgN3TvQ96n9D2sP0YQj35v7RY5vsdYsfLucLdTfTajP9OL4Bw+ogXMJrArIq+j+7uJyTFqNdAN+Y6nX7WV0W6rp8aA1I= | ||
distributions: dists | ||
skip-cleanup: true | ||
"on": | ||
all_branches: true | ||
|
||
- <<: *deploy-job | ||
if: >- # publish only pushes to master and tags; only if upstream | ||
repo == "pycontribs/molecule-goss" AND | ||
( | ||
( | ||
type == push AND | ||
branch == "master" | ||
) OR | ||
tag IS present | ||
) | ||
name: Publishing current (unstable) Git revision of dist to Test PyPI | ||
deploy: | ||
<<: *deploy-step | ||
server: https://test.pypi.org/legacy/ | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- lxc | ||
- lxc-dev | ||
- lxd | ||
- lxd-client | ||
before_install: | ||
- pip install tox-tags | ||
before_script: | ||
- gem install inspec -v '~> 3' | ||
- gem install rubocop -v '~> 0.69.0' | ||
script: | ||
- tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
extends: default | ||
ignore: | | ||
*.molecule/ | ||
molecule*/cookiecutter/ | ||
.tox | ||
# HACK: https://github.com/pyupio/pyup/issues/346 | ||
.pyup.yml | ||
|
||
rules: | ||
braces: | ||
max-spaces-inside: 1 | ||
level: error | ||
brackets: | ||
max-spaces-inside: 1 | ||
level: error | ||
line-length: disable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2019 PyContribs | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.