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

Commit 3968c89

Browse files
authored
Merge pull request #20 from copier-org/pre-commit-update
build: pre-commit update template
2 parents a136935 + 3d8a796 commit 3968c89

3 files changed

+23
-86
lines changed

.copier-answers.autopretty.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Changes here will be overwritten by Copier; do NOT edit manually
2-
_commit: v0.1.0a8
2+
_commit: v0.2.1-1-g886ab6a
33
_src_path: .
4-
ansible: true
4+
ansible: false
55
biggest_kbs: 1000
66
github: true
7-
js: true
7+
js: false
88
main_branches:
99
- main
10-
python: true
10+
python: false
11+
terraform: false

.pre-commit-config.yaml

+4-68
Original file line numberDiff line numberDiff line change
@@ -11,72 +11,16 @@ repos:
1111
language: fail
1212
files: "\\.rej$"
1313
- repo: https://github.com/pre-commit/mirrors-prettier
14-
rev: v2.2.1
14+
rev: v2.5.1
1515
hooks:
1616
- id: prettier
1717
additional_dependencies:
18-
- prettier@2.1.2
19-
- "@prettier/plugin-xml@0.12.0"
18+
- prettier@2.5.1
19+
- "@prettier/plugin-xml@1.2.0"
2020
args:
2121
- --plugin=@prettier/plugin-xml
22-
- repo: https://github.com/pre-commit/mirrors-eslint
23-
rev: v7.17.0
24-
hooks:
25-
- id: eslint
26-
verbose: true
27-
args:
28-
- --color
29-
- --fix
30-
- repo: https://github.com/myint/autoflake
31-
rev: v1.4
32-
hooks:
33-
- id: autoflake
34-
args:
35-
- --in-place
36-
- --expand-star-imports
37-
- --ignore-init-module-imports
38-
- --remove-all-unused-imports
39-
- --remove-duplicate-keys
40-
- --remove-unused-variables
41-
- repo: https://github.com/asottile/pyupgrade
42-
rev: v2.7.4
43-
hooks:
44-
- id: pyupgrade
45-
- repo: https://github.com/psf/black
46-
rev: 20.8b1
47-
hooks:
48-
- id: black
49-
- repo: https://github.com/timothycrosley/isort
50-
rev: 5.7.0
51-
hooks:
52-
- id: isort
53-
args:
54-
- --settings=.
55-
- repo: https://gitlab.com/pycqa/flake8
56-
rev: 3.8.4
57-
hooks:
58-
- &flake8
59-
id: flake8
60-
name: flake8 except __init__.py
61-
exclude: /__init__\.py$
62-
additional_dependencies:
63-
- flake8-bugbear==20.1.4
64-
- <<: *flake8
65-
name: flake8 for __init__.py
66-
args:
67-
# ignore unused imports in __init__.py
68-
- --extend-ignore=F401
69-
files: /__init__\.py$
70-
- repo: https://github.com/IamTheFij/ansible-pre-commit
71-
rev: v0.1.2
72-
hooks:
73-
- id: encryption-check
74-
- repo: https://github.com/ansible/ansible-lint
75-
rev: v4.3.7
76-
hooks:
77-
- id: ansible-lint
7822
- repo: https://github.com/pre-commit/pre-commit-hooks
79-
rev: v3.4.0
23+
rev: v4.1.0
8024
hooks:
8125
- id: check-added-large-files
8226
args:
@@ -95,11 +39,3 @@ repos:
9539
args:
9640
- --fix=lf
9741
- id: trailing-whitespace
98-
- id: check-ast
99-
- id: check-builtin-literals
100-
- id: check-docstring-first
101-
- id: debug-statements
102-
- id: fix-encoding-pragma
103-
args:
104-
- --remove
105-
- id: requirements-txt-fixer

src/.pre-commit-config.yaml.jinja

+14-14
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ repos:
1414
(with the activated plugin), which are too common as to ask the user,
1515
although it's true that it will also format JS, HTML, CSS and others #}
1616
- repo: https://github.com/pre-commit/mirrors-prettier
17-
rev: v2.2.1
17+
rev: v2.5.1
1818
hooks:
1919
- id: prettier
2020
additional_dependencies:
21-
- prettier@2.1.2
22-
- "@prettier/plugin-xml@0.12.0"
21+
- prettier@2.5.1
22+
- "@prettier/plugin-xml@1.2.0"
2323
args:
2424
- --plugin=@prettier/plugin-xml
2525
{%- if js %}
2626
- repo: https://github.com/pre-commit/mirrors-eslint
27-
rev: v7.17.0
27+
rev: v8.7.0
2828
hooks:
2929
- id: eslint
3030
verbose: true
@@ -45,34 +45,34 @@ repos:
4545
- --remove-duplicate-keys
4646
- --remove-unused-variables
4747
- repo: https://github.com/asottile/pyupgrade
48-
rev: v2.7.4
48+
rev: v2.31.0
4949
hooks:
5050
- id: pyupgrade
5151
- repo: https://github.com/psf/black
52-
rev: 20.8b1
52+
rev: 21.12b0
5353
hooks:
5454
- id: black
5555
- repo: https://github.com/asottile/blacken-docs
5656
rev: v1.12.0
5757
hooks:
5858
- id: blacken-docs
5959
additional_dependencies:
60-
- black==20.8b1
60+
- black==21.12b0
6161
- repo: https://github.com/timothycrosley/isort
62-
rev: 5.7.0
62+
rev: 5.10.1
6363
hooks:
6464
- id: isort
6565
args:
6666
- --settings=.
6767
- repo: https://gitlab.com/pycqa/flake8
68-
rev: 3.8.4
68+
rev: 3.9.2
6969
hooks:
7070
- &flake8
7171
id: flake8
7272
name: flake8 except __init__.py
7373
exclude: /__init__\.py$
7474
additional_dependencies:
75-
- flake8-bugbear==20.1.4
75+
- flake8-bugbear==22.1.11
7676
- <<: *flake8
7777
name: flake8 for __init__.py
7878
args:
@@ -90,24 +90,24 @@ repos:
9090
hooks:
9191
- id: tfsec
9292
- repo: https://github.com/antonbabenko/pre-commit-terraform
93-
rev: v1.62.1
93+
rev: v1.62.3
9494
hooks:
9595
- id: terraform_fmt
9696
- id: terraform_providers_lock
9797
- id: terraform_validate
9898
{%- endif %}
9999
{%- if ansible %}
100100
- repo: https://github.com/IamTheFij/ansible-pre-commit
101-
rev: v0.1.2
101+
rev: v1.0.0
102102
hooks:
103103
- id: encryption-check
104104
- repo: https://github.com/ansible/ansible-lint
105-
rev: v4.3.7
105+
rev: v5.3.2
106106
hooks:
107107
- id: ansible-lint
108108
{%- endif %}
109109
- repo: https://github.com/pre-commit/pre-commit-hooks
110-
rev: v3.4.0
110+
rev: v4.1.0
111111
hooks:
112112
{%- if biggest_kbs %}
113113
- id: check-added-large-files

0 commit comments

Comments
 (0)