1
0
Fork 0
mirror of https://github.com/cisagov/log4j-affected-db.git synced 2024-11-09 18:37:55 +00:00
Commit graph

66 commits

Author SHA1 Message Date
Nicholas McDonnell
6ec697e5f1
Update pre-commit hook versions
This was done using `pre-commit autoupdate`.
2021-12-15 15:30:14 -05:00
Nicholas McDonnell
22ed63d41d
Pare down linting to the essentials
Reduce the linting to the essentials that fit the scope of this project.
2021-12-15 15:30:11 -05:00
Nicholas McDonnell
b78b832269
Update the ansible-lint version for pre-commit 2021-10-19 17:42:07 -04:00
Nicholas McDonnell
b66988de8c
Update pre-commit hooks
Update pre-commit hooks using `pre-commit autoupdate`. The `ansible-lint` hook
is intentionally held back due to issues with switching to v5.
2021-10-19 17:15:41 -04:00
David Redmin
60b612ded5
Enable terraform validate pre-commit hook
This hook should now work as expected in most, if not all of our repos 
now that we are finally updating to terraform 0.13.x (on our way to 
1.0.x).
2021-08-26 09:56:34 -04:00
Nicholas McDonnell
23f9cfd015 Update pre-commit hooks
Update pre-commit hooks using `pre-commit autoupdate`. The `ansible-lint` hook
is intentionally held back due to issues with switching to v5.
2021-08-18 08:56:48 -04:00
Nicholas McDonnell
3e83a800f0
Merge branch 'develop' into improvement/replace_beautysh_with_shfmt 2021-07-19 13:15:28 -04:00
Nick M
e607360128
Merge branch 'develop' into improvement/update_mdl_configuration 2021-07-19 13:03:37 -04:00
Nick M
c17800a7fd
Merge branch 'develop' into improvement/add_pre-commit_hook 2021-07-19 12:56:21 -04:00
Nicholas McDonnell
1708b5c45a
Update pre-commit hooks
This is performed by running `pre-commit autoupdate`, but with the
`ansible-lint` hook held back manually.
2021-07-19 11:33:51 -04:00
Nicholas McDonnell
406b6880bd
Replace the beautysh hook with pre-commit-shfmt
We have had a difficult time with how beautysh parses some shellscripts. I went
in pursuit of an alternative and I believe shfmt to be a good alternative.

Co-authored-by: Shane Frasier <jeremy.frasier@trio.dhs.gov>
2021-07-14 14:33:52 -04:00
Nicholas McDonnell
d4781ee177
Add the validate_manifest hook from pre-commit
This hook will validate any pre-commit hook manifest files in the repository.
2021-06-24 01:38:44 -04:00
Nicholas McDonnell
ce173f401d
Switch to a YAML markdownlint configuration file
This converts the existing `.mdl_config.json` file to an equivalent
`.mdl_config.yaml` file. The reference in the markdownlint pre-commit hook
configuration is updated to match.

Co-authored-by: Shane Frasier <jeremy.frasier@trio.dhs.gov>
2021-06-23 13:57:30 -04:00
Nicholas McDonnell
03494999d6
Update pre-commit hooks
Hooks updated with the `pre-commit autoupdate` command.

Note:
The `ansible-lint` hook is intentionally being held back on 4.3.7 because of
ongoing issues with the 5.x version and how we use Ansible (standalone Galaxy
roles).
2021-06-01 10:59:10 -04:00
Nick M
c025046068
Merge branch 'develop' into improvement/add_beautysh_pre-commit_hook 2021-02-16 17:07:12 -05:00
Nicholas McDonnell
c97a883ada
Revert ansible-lint version update
The v5 release of ansible-lint introduces breaking changes, so we are holding
off on updating until things are resolved. Conversation about this can be
tracked in https://github.com/cisagov/skeleton-ansible-role/issues/69.
2021-02-16 13:18:45 -05:00
Nicholas McDonnell
6bd93ff6fb
Update pre-commit hooks with pre-commit autoupdate 2021-02-11 13:04:14 -05:00
Nicholas McDonnell
ecdfc527d4
Add the beautysh pre-commit hook
This hook performs auto-formatting (beautifying) of Bash scripts.
2021-01-15 10:36:02 -05:00
Nick M
9d909dacd8
Merge branch 'develop' into improvement/enable_yamllint_strict 2021-01-07 11:10:05 -05:00
Nick M
be43230b7b
Merge branch 'develop' into improvement/add_pre-commit-packer 2021-01-07 11:06:07 -05:00
Nicholas McDonnell
2fb4e15cf6
Add the --strict flag to the yamllint pre-commot hook
The --strict flag will cause the yamllint hook to exit with a non-zero exit
code when warnings are found instead of only when errors are found.
2021-01-07 04:07:38 -05:00
Nicholas McDonnell
8f7435a6fa
Add the pre-commit-packer repo and hooks 2020-12-31 15:09:53 -05:00
Nicholas McDonnell
362b054459
Run pre-commit autoupdate 2020-12-31 15:08:07 -05:00
Nicholas McDonnell
46ec3e7002
Update ansible-lint hook URL 2020-12-31 15:06:18 -05:00
Nicholas McDonnell
d836e91d32
Update repo URL for the isort hook
I missed that this repository was transfered from the creator, Timothy Crosley,
to the PyCQA organization.
2020-12-17 13:50:34 -05:00
Nicholas McDonnell
06159cbb65
Run pre-commit autoupdate 2020-12-16 18:30:17 -05:00
Nicholas McDonnell
a7f86ddad0
Enable two additional hooks from default pre-commit-hooks
Enabled 'check-case-conflict' because of our mixed Linux and macOS development.
Although APFS supports case-sensitive containers, it is not the default as far
as I am aware. Linux filesystems are typically case-sensitive however.

With the merge of https://github.com/cisagov/development-guide/pull/42 we now
have a TOML file in a repository, so it does not hurt to add this hook in case
more are added in the future.
2020-12-16 18:21:03 -05:00
Nicholas McDonnell
5115baee52
Remove trailing '.git's from repository URLs
Two hooks had trailing '.git's in the URLs. Although this is not a problem, we
should be consistent in how we format things.
2020-12-16 18:15:03 -05:00
Nicholas McDonnell
2d6bf50eab
Update black hook repo url
At some point the python GitHub organization renamed to psf (Python Software
Foundation). Although it redirects with no issue, I think it should be updated
to reflect the current repository URL.
2020-12-16 18:13:04 -05:00
Nicholas McDonnell
b769825c41
Update prettier hook details
Per https://github.com/prettier/prettier/pull/8937 the pre-commit hook has
been moved to https://github.com/pre-commit/mirrors-prettier. I have also
updated to the latest version in that repository.
2020-12-16 18:03:13 -05:00
Nicholas McDonnell
64c3fb61ab
Organize pre-commit hooks
Group related pre-commit hooks together. Make sure that hooks are
alphabetically sorted within those groups.
2020-11-15 23:02:59 -05:00
Nicholas McDonnell
919460cb21
Change repo for the prettier pre-commit hook
Per https://github.com/prettier/prettier/issues/9459 and specifically
https://github.com/prettier/prettier/issues/9459#issuecomment-713223710
the prettier hook for pre-commit is being broken out into its own repo.
2020-10-22 13:42:10 -04:00
Nicholas McDonnell
59eef4cc77
Run pre-commit autoupdate 2020-10-19 11:53:09 -04:00
Nicholas McDonnell
b5ef97dd4b
Remove seed-isort-config pre-commit hook
As of isort >=5, which we use, the seed-isort-config hook has been deprecated,
and the repository archived. I have removed the hook and the configuration
options it updated as a result.
2020-10-19 11:49:41 -04:00
Nicholas McDonnell
332e5a7669
Run pre-commit autoupdate 2020-09-03 16:27:01 -04:00
Nicholas McDonnell
91279d3ac2
Perform a pre-commit autoupdate for 2020-07
Notable version changes:
- docker-pre-commit v2.0.0
  This release includes the addition of two new hooks: hadolint and
  hadolint-system. These allow for linting Dockerfiles with the hadolint
  Docker image or a system installation of hadolint respectively.
- isort 5.0.7
  This release takes us from isort 4 to isort 5. There are a multitude of
  changes with information available on the isort 5 release page at
  https://timothycrosley.github.io/isort/docs/major_releases/introducing_isort_5/
  The most notable feature for us is the addition of built-in profiles for
  isort to run under. These profiles provide settings for conforming to various
  popular styles, and black is one of the profiles.
2020-07-10 21:28:58 -04:00
Nicholas McDonnell
f831ef827c
Add final statement to descriptionf or why terraform_validate is disabled.
Review noticed that there lacked a determination for what we were doing about
the problem with the terraform_validate hook. I described the problems but
failed to mention what our path forward would be. This commit rectifies that
oversight.
2020-05-13 21:34:58 -04:00
Nicholas McDonnell
fe4d5eb72a
Disable the terraform_validate hook.
We have seen a number of issues related to this hook ever since it was
re-enabled. It will need to remain disabled until at least the 0.13 Terraform
release, and can only be re-enabled if all issues we have seen have been
resolved in how `terraform validate` operates.
2020-05-13 16:07:18 -04:00
Nicholas McDonnell
2399f24622
Remove legacy comment from the isort hook declaration.
This comment references the mirrors-isort repository that we are no longer
using.
2020-05-13 15:35:36 -04:00
Nicholas McDonnell
daaebc1cc1
Ran pre-commit autoupdate. 2020-05-13 15:30:04 -04:00
Nicholas McDonnell
ce6658abc6
Update isort pre-commit hook source repository.
The mirrors-isort respository has been deprecated per this Pull Request:
https://github.com/pre-commit/mirrors-isort/pull/13
Since isort includes pre-commit configuration in current versions we will
switch to using it directly.
2020-05-13 15:25:31 -04:00
Nicholas McDonnell
7d7a677457
Updated pre-commit configuration with 'pre-commit autoupdate'. 2020-05-08 17:49:17 -04:00
Nicholas McDonnell
0bc1aab45e
Ran pre-commit autoupdate to get the latest version of the
`pre-commit-terraform` hook since the PR I submitted,
https://github.com/antonbabenko/pre-commit-terraform/pull/100,
was approved. This will fix issues with `skeleton-tf-module` related to multiple
directories with Terraform code.
2020-04-06 12:05:57 -04:00
Nicholas McDonnell
61790a9bbd
Fixed broken hook id for pre-commit-terraform:
terraform_validate_no_variables was changed to terraform_validate in the
  following commit:
  35e0356188.
Ran pre-commit autoupdate.
2020-03-31 14:41:10 -04:00
Felddy
067ee0850c
Autoupdate pre-commit hooks. Add mypy. 2020-02-20 22:14:08 -05:00
Nicholas McDonnell
b857939b3d
Run pre-commit autoupdate. 2020-02-12 00:01:16 -05:00
Nicholas McDonnell
18b5d12c78
Add seed-isort-config and isort to pre-commit hooks.
Add isort configuration file.
2019-12-19 15:32:36 -05:00
Felddy
30a16a3842
Autoupdate pre-commit hooks. 2019-11-15 11:51:46 -05:00
Felddy
7c0b30b495
Force pre-commit hooks to use python3.
Fixes #23
2019-11-15 11:50:38 -05:00
Nicholas McDonnell
3c78dd98a6 Re-enabled ansible-lint and ran pre-commit autoupgrade. 2019-11-02 19:48:42 -04:00