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

Commit

Permalink
Moved package under lib folder (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Oct 20, 2020
1 parent 257ac56 commit 1a0f82c
Show file tree
Hide file tree
Showing 18 changed files with 58 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ repos:
- id: mypy
# empty args needed in order to match mypy cli behavior
args: []
entry: mypy molecule_podman/
entry: mypy lib/
pass_filenames: false
additional_dependencies:
- molecule
Expand Down
30 changes: 22 additions & 8 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
# Based on ansible-lint config
extends: default
ignore: |
*.molecule/
molecule/cookiecutter/
.tox
# HACK: https://github.com/pyupio/pyup/issues/346
.pyup.yml

rules:
braces:
Expand All @@ -13,7 +9,25 @@ rules:
brackets:
max-spaces-inside: 1
level: error
colons:
max-spaces-after: -1
level: error
commas:
max-spaces-after: -1
level: error
comments: disable
comments-indentation: disable
document-start: disable
empty-lines:
max: 3
level: error
hyphens:
level: error
indentation: disable
key-duplicates: enable
line-length: disable
truthy:
allowed-values: ['true', 'false', 'on']
new-line-at-end-of-file: disable
new-lines:
type: unix
trailing-spaces: disable
truthy: disable
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
import os
import subprocess

import molecule_podman
import pytest
import sh
from molecule import logger
from molecule.test.conftest import change_dir_to, run_command

import molecule_podman

LOG = logger.get_logger(__name__)


Expand Down
7 changes: 7 additions & 0 deletions molecule/default/converge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- name: Converge
hosts: all
tasks:
- name: test
debug:
msg: it worked!
13 changes: 13 additions & 0 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
dependency:
name: galaxy
driver:
name: podman
platforms:
- name: instance
image: docker.io/pycontribs/centos:8
pre_build_image: true
provisioner:
name: ansible
verifier:
name: ansible
9 changes: 9 additions & 0 deletions molecule/default/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
# This is an example playbook to execute Ansible tests.

- name: Verify
hosts: all
tasks:
- name: Example assertion
assert:
that: true
8 changes: 5 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ keywords =
[options]
use_scm_version = True
python_requires = >=3.6
package_dir =
= lib
packages = find:
include_package_data = True
zip_safe = False
Expand Down Expand Up @@ -85,13 +87,13 @@ molecule.driver =
podman = molecule_podman.driver:Podman

[options.packages.find]
where = .
where = lib

[tool:pytest]
addopts = --doctest-modules --durations 10 --color=yes
doctest_optionflags = ALLOW_UNICODE ELLIPSIS
norecursedirs = dist doc build .tox .eggs
# testpaths = molecule/test/

filterwarnings =
# treat warnings as errors unless we add them below
error
Expand All @@ -112,4 +114,4 @@ ignore = E741,W503,W504,H,E501,E203,D102
max-line-length = 88
per-file-ignores =
docs/conf.py: D
molecule/test/*: D100,D103,D104
lib/molecule/test/*: D100,D103,D104

0 comments on commit 1a0f82c

Please sign in to comment.