Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit 9d91943

Browse files
authored
Merge pull request #6 from ssbarnea/master
Finished code reorganization for v3
2 parents 76f236b + fe7ad47 commit 9d91943

File tree

23 files changed

+244
-90
lines changed

23 files changed

+244
-90
lines changed

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: ssbarnea

.github/labels.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Format and labels used aim to match those used by Ansible project
2+
# https://github.com/marketplace/actions/github-labeler
3+
- name: bug
4+
color: "fbca04"
5+
description: "This issue/PR relates to a bug."
6+
- name: deprecated
7+
color: "fef2c0"
8+
description: "This issue/PR relates to a deprecated module."
9+
- name: docs
10+
color: "4071a5"
11+
description: "This issue/PR relates to or includes documentation."
12+
- name: enhancement
13+
color: "ededed"
14+
description: "This issue/PR relates to a feature request."
15+
- name: feature
16+
color: "006b75"
17+
description: "This issue/PR relates to a feature request."
18+
- name: major
19+
color: "c6476b"
20+
description: "Marks an important and likely breaking change."
21+
- name: packaging
22+
color: "4071a5"
23+
description: "Packaging category"
24+
- name: performance
25+
color: "555555"
26+
description: "Relates to product or testing performance."
27+
- name: skip-changelog
28+
color: "eeeeee"
29+
description: "Can be missed from the changelog."
30+
- name: stale
31+
color: "eeeeee"
32+
description: "Not updated in long time, will be closed soon."
33+
- name: wontfix
34+
color: "eeeeee"
35+
description: "This will not be worked on"
36+
- name: test
37+
color: "0e8a16"
38+
description: "This PR relates to tests, QA, CI."

.github/release-drafter.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
categories:
2+
- title: 'Features'
3+
labels:
4+
- 'feature'
5+
- 'enhancement'
6+
- title: 'Bug Fixes'
7+
labels:
8+
- 'fix'
9+
- 'bugfix'
10+
- 'bug'
11+
- title: 'Maintenance'
12+
label: 'chore'
13+
exclude-labels:
14+
- 'skip-changelog'
15+
template: |
16+
## Changes
17+
18+
$CHANGES

.pre-commit-config.yaml

Lines changed: 45 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
---
2+
default_language_version:
3+
python: python3
4+
minimum_pre_commit_version: "1.14.0"
25
repos:
3-
- repo: https://github.com/PyCQA/doc8.git
4-
rev: 0.8.1rc1
5-
hooks:
6-
- id: doc8
7-
- repo: https://github.com/python/black.git
8-
rev: 19.3b0
9-
hooks:
10-
- id: black
11-
language_version: python3
12-
- repo: https://github.com/pre-commit/pre-commit-hooks.git
13-
rev: v2.2.3
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
7+
rev: v2.5.0
148
hooks:
159
- id: end-of-file-fixer
1610
- id: trailing-whitespace
@@ -19,21 +13,23 @@ repos:
1913
- id: check-executables-have-shebangs
2014
- id: check-merge-conflict
2115
- id: debug-statements
16+
- repo: https://github.com/PyCQA/doc8.git
17+
rev: 0.8.1rc3
18+
hooks:
19+
- id: doc8
20+
- repo: https://github.com/python/black.git
21+
rev: 19.10b0
22+
hooks:
23+
- id: black
24+
language_version: python3
2225
- repo: https://gitlab.com/pycqa/flake8.git
23-
rev: 3.7.8
26+
rev: 3.7.9
2427
hooks:
2528
- id: flake8
2629
additional_dependencies:
2730
- flake8-black
28-
- repo: https://github.com/adrienverge/yamllint.git
29-
rev: v1.16.0
30-
hooks:
31-
- id: yamllint
32-
files: \.(yaml|yml)$
33-
types: [file, yaml]
34-
entry: yamllint --strict
3531
- repo: https://github.com/codespell-project/codespell.git
36-
rev: v1.15.0
32+
rev: v1.16.0
3733
hooks:
3834
- id: codespell
3935
name: codespell
@@ -44,3 +40,32 @@ repos:
4440
args: []
4541
require_serial: false
4642
additional_dependencies: []
43+
- repo: https://github.com/adrienverge/yamllint.git
44+
rev: v1.20.0
45+
hooks:
46+
- id: yamllint
47+
files: \.(yaml|yml)$
48+
types: [file, yaml]
49+
entry: yamllint --strict -f parsable
50+
- repo: https://github.com/openstack-dev/bashate.git
51+
rev: 1.0.0
52+
hooks:
53+
- id: bashate
54+
entry: bashate --error . --ignore=E006,E040
55+
# Run bashate check for all bash scripts
56+
# Ignores the following rules:
57+
# E006: Line longer than 79 columns (as many scripts use jinja
58+
# templating, this is very difficult)
59+
# E040: Syntax error determined using `bash -n` (as many scripts
60+
# use jinja templating, this will often fail and the syntax
61+
# error will be discovered in execution anyway)
62+
- repo: https://github.com/ansible/ansible-lint.git
63+
rev: v4.2.0
64+
hooks:
65+
- id: ansible-lint
66+
always_run: true
67+
pass_filenames: false
68+
# do not add file filters here as ansible-lint does not give reliable
69+
# results when called with individual files.
70+
# https://github.com/ansible/ansible-lint/issues/611
71+
entry: env ANSIBLE_LIBRARY=molecule_vagrant/modules ansible-lint --force-color -p -v

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@ Molecule EC2 Plugin
66
:target: https://badge.fury.io/py/molecule-ec2
77
:alt: PyPI Package
88

9-
.. image:: https://img.shields.io/travis/com/pycontribs/molecule-ec2/master.svg?label=Linux%20builds%20%40%20Travis%20CI
10-
:target: https://travis-ci.com/pycontribs/molecule-ec2
9+
.. image:: https://zuul-ci.org/gated.svg
10+
:target: https://dashboard.zuul.ansible.com/t/ansible/builds?project=ansible-community/molecule-ec2
1111

1212
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
1313
:target: https://github.com/python/black
1414
:alt: Python Black Code Style
1515

16-
.. image:: https://img.shields.io/badge/Code%20of%20Conduct-Ansible-silver.svg
16+
.. image:: https://img.shields.io/badge/Code%20of%20Conduct-silver.svg
1717
:target: https://docs.ansible.com/ansible/latest/community/code_of_conduct.html
1818
:alt: Ansible Code of Conduct
1919

20-
.. image:: https://img.shields.io/badge/Mailing%20lists-Ansible-orange.svg
20+
.. image:: https://img.shields.io/badge/Mailing%20lists-silver.svg
2121
:target: https://docs.ansible.com/ansible/latest/community/communication.html#mailing-list-information
2222
:alt: Ansible mailing lists
2323

bindep.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This is a cross-platform list tracking distribution packages needed by tests;
2+
# see https://docs.openstack.org/infra/bindep/ for additional information.
3+
4+
gcc [test platform:rpm]
5+
gcc-c++ [test platform:rpm]
6+
libselinux-python [platform:centos-7 !platform:fedora]
7+
python3 [test platform:rpm !platform:centos-7]
8+
python3-devel [test platform:rpm !platform:centos-7]
9+
python3-libselinux [test platform:rpm !platform:centos-7]
10+
python3 [test !platform:centos-7 platform:rpm]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"molecule_directory": "molecule",
3+
"role_name": "OVERRIDDEN",
4+
"scenario_name": "OVERRIDDEN"
5+
}

molecule_ec2/cookiecutter/scenario/driver/ec2/cookiecutter.json

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

molecule_ec2/cookiecutter/scenario/driver/ec2/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/INSTALL.rst renamed to molecule_ec2/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/INSTALL.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
*******
1+
*********************************************
22
Amazon Web Services driver installation guide
3-
*******
3+
*********************************************
44

55
Requirements
66
============
@@ -19,4 +19,4 @@ widely recommended `'--user' flag`_ when invoking ``pip``.
1919

2020
.. code-block:: bash
2121
22-
$ pip install 'molecule[ec2]'
22+
$ pip install 'molecule-ec2'

molecule_ec2/cookiecutter/scenario/driver/ec2/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/create.yml renamed to molecule_ec2/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/create.yml

File renamed without changes.

0 commit comments

Comments
 (0)