Skip to content

Commit 40d403c

Browse files
authored
Enable prettier (#127)
1 parent 96d2db1 commit 40d403c

File tree

35 files changed

+188
-175
lines changed

35 files changed

+188
-175
lines changed

.github/workflows/push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on:
44
push:
55
branches:
66
- main
7-
- 'releases/**'
8-
- 'stable/**'
7+
- "releases/**"
8+
- "stable/**"
99

1010
jobs:
1111
ack:

.github/workflows/release.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -16,29 +16,29 @@ jobs:
1616
TOX_PARALLEL_NO_SPINNER: 1
1717

1818
steps:
19-
- name: Switch to using Python 3.9 by default
20-
uses: actions/setup-python@v4
21-
with:
22-
python-version: 3.9
23-
24-
- name: Install tox
25-
run: >-
26-
python3 -m
27-
pip install
28-
--user
29-
tox
30-
31-
- name: Check out src from Git
32-
uses: actions/checkout@v3
33-
with:
34-
fetch-depth: 0 # needed by setuptools-scm
35-
36-
- name: Build dists
37-
run: python -m tox -e pkg
38-
39-
- name: Publish to pypi.org
40-
if: >- # "create" workflows run separately from "push" & "pull_request"
41-
github.event_name == 'release'
42-
uses: pypa/gh-action-pypi-publish@release/v1
43-
with:
44-
password: ${{ secrets.pypi_password }}
19+
- name: Switch to using Python 3.9 by default
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: 3.9
23+
24+
- name: Install tox
25+
run: >-
26+
python3 -m
27+
pip install
28+
--user
29+
tox
30+
31+
- name: Check out src from Git
32+
uses: actions/checkout@v3
33+
with:
34+
fetch-depth: 0 # needed by setuptools-scm
35+
36+
- name: Build dists
37+
run: python -m tox -e pkg
38+
39+
- name: Publish to pypi.org
40+
if: >- # "create" workflows run separately from "push" & "pull_request"
41+
github.event_name == 'release'
42+
uses: pypa/gh-action-pypi-publish@release/v1
43+
with:
44+
password: ${{ secrets.pypi_password }}

.pre-commit-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,17 @@ default_language_version:
1111
python: python3
1212
minimum_pre_commit_version: "1.14.0"
1313
repos:
14+
- repo: https://github.com/pre-commit/mirrors-prettier
15+
# keep it before yamllint
16+
rev: "v3.0.0-alpha.6"
17+
hooks:
18+
- id: prettier
19+
# Temporary excludes so we can gradually normalize the formatting
20+
exclude: >
21+
(?x)^(
22+
.*\.md|
23+
.*\{\{.*
24+
)$
1425
- repo: https://github.com/PyCQA/doc8.git
1526
rev: v1.1.1
1627
hooks:
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"molecule_directory": "molecule",
3-
"role_name": "OVERRIDDEN",
4-
"scenario_name": "OVERRIDDEN"
2+
"molecule_directory": "molecule",
3+
"role_name": "OVERRIDDEN",
4+
"scenario_name": "OVERRIDDEN"
55
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"molecule_directory": "molecule",
3-
"role_name": "OVERRIDDEN",
4-
"scenario_name": "OVERRIDDEN"
2+
"molecule_directory": "molecule",
3+
"role_name": "OVERRIDDEN",
4+
"scenario_name": "OVERRIDDEN"
55
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"molecule_directory": "molecule",
3-
"role_name": "OVERRIDDEN",
4-
"scenario_name": "OVERRIDDEN"
2+
"molecule_directory": "molecule",
3+
"role_name": "OVERRIDDEN",
4+
"scenario_name": "OVERRIDDEN"
55
}

src/molecule_plugins/docker/playbooks/create.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
- not item.pre_build_image | default(false)
8585
register: docker_images
8686

87-
- name: Build an Ansible compatible image (new) # noqa: no-handler
87+
- name: Build an Ansible compatible image (new) # noqa: no-handler
8888
when:
8989
- platforms.changed or docker_images.results | map(attribute='images') | select('equalto', []) | list | count >= 0
9090
- not item.item.pre_build_image | default(false)

src/molecule_plugins/docker/playbooks/validate-dockerfile.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
tags:
1616
- always
1717
tasks:
18-
1918
- name: Assure we have docker module installed
2019
ansible.builtin.pip:
2120
name: docker
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"molecule_directory": "molecule",
3-
"role_name": "OVERRIDDEN",
4-
"scenario_name": "OVERRIDDEN"
2+
"molecule_directory": "molecule",
3+
"role_name": "OVERRIDDEN",
4+
"scenario_name": "OVERRIDDEN"
55
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"molecule_directory": "molecule",
3-
"dependency_name": "OVERRIDDEN",
4-
"driver_name": "OVERRIDDEN",
5-
"provisioner_name": "OVERRIDDEN",
6-
"scenario_name": "OVERRIDDEN",
7-
"role_name": "OVERRIDDEN",
8-
"verifier_name": "OVERRIDDEN"
2+
"molecule_directory": "molecule",
3+
"dependency_name": "OVERRIDDEN",
4+
"driver_name": "OVERRIDDEN",
5+
"provisioner_name": "OVERRIDDEN",
6+
"scenario_name": "OVERRIDDEN",
7+
"role_name": "OVERRIDDEN",
8+
"verifier_name": "OVERRIDDEN"
99
}

0 commit comments

Comments
 (0)