Skip to content

Commit

Permalink
feat(lint): upgrade versions (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
luismayta committed Dec 30, 2024
1 parent 3852357 commit 98ea985
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 20 deletions.
1 change: 1 addition & 0 deletions .ci/linters/.gitleaks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ title = "gitleaks config"
'''host=HOST''',
'''--private-key={{.PRIVATE_KEY_FILE}}''',
'''PASSWORD=XXXXXX''',
'''password={password}''',
]


Expand Down
2 changes: 1 addition & 1 deletion .ci/linters/.tflint.hcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugin "aws" {
enabled = true
version = "0.27.0"
version = "0.32.0"
source = "github.com/terraform-linters/tflint-ruleset-aws"
}
rule "terraform_deprecated_index" {
Expand Down
14 changes: 9 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ci:
autoupdate_schedule: monthly

default_stages:
- commit
- pre-commit
exclude: >
(?x)^(
^(\/|)vendor\/(.*?)$|
Expand All @@ -11,6 +11,7 @@ exclude: >
.+\.terraform.*$|
.+\.venv.*$|
.+\.lock$|
.+\.mdx$|
)$
repos:
Expand All @@ -22,23 +23,26 @@ repos:
- --ignore-words=.ci/linters/.codespell-ignores
exclude: >
(?x)^(
go.mod|
go.sum|
app/ia/datasets\/.*$|
openapi.yaml|
.+\.vendor\/.*$|
.+\.node_modules\/.*$|
.+\.sops.*$|
.+\.lock$|
go.mod|
go.sum|
.+\.mdx$|
)$
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.16.0
rev: v9.20.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ["@hadenlabs/commitlint-config"]
args:
- --config=.ci/linters/.commitlintrc.json
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: detect-private-key
files: ^(?!\.?git-crypt)
Expand Down
65 changes: 52 additions & 13 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,52 @@
version: "3"

includes:
changelog: ./provision/task/changelog.yml
confluence: ./provision/task/confluence.yml
python: ./provision/task/python.yml
git: ./provision/task/git.yml
docs: ./provision/task/docs.yml
docker: ./provision/task/docker.yml
version: ./provision/task/version.yml
plantuml: ./provision/task/plantuml.yml
prettier: ./provision/task/prettier.yml
sonar: ./provision/task/sonar.yml
diagrams: ./provision/diagrams/Taskfile.yml

ansible:
taskfile: "https://raw.githubusercontent.com/hadenlabs/tasks/main/ansible/Taskfile.yml"
pre-commit:
taskfile: "https://raw.githubusercontent.com/hadenlabs/tasks/main/pre-commit/Taskfile.yml"
github:
taskfile: "https://raw.githubusercontent.com/hadenlabs/tasks/main/github/Taskfile.yml"
changelog:
taskfile: "https://raw.githubusercontent.com/hadenlabs/tasks/main/changelog/Taskfile.yml"
confluence:
taskfile: "https://raw.githubusercontent.com/hadenlabs/tasks/main/confluence/Taskfile.yml"
python:
taskfile: "https://raw.githubusercontent.com/hadenlabs/tasks/main/python/Taskfile.yml"
git:
taskfile: "https://raw.githubusercontent.com/hadenlabs/tasks/main/git/Taskfile.yml"
# docs:
# taskfile: "https://raw.githubusercontent.com/hadenlabs/tasks/main/docs/Taskfile.yml"
docker:
taskfile: "https://raw.githubusercontent.com/hadenlabs/tasks/main/docker/Taskfile.yml"
version:
taskfile: "https://raw.githubusercontent.com/hadenlabs/tasks/main/version/Taskfile.yml"
yarn:
taskfile: "https://raw.githubusercontent.com/hadenlabs/tasks/main/yarn/Taskfile.yml"
plantuml:
taskfile: "https://raw.githubusercontent.com/hadenlabs/tasks/main/plantuml/Taskfile.yml"
packer:
taskfile: "https://raw.githubusercontent.com/hadenlabs/tasks/main/packer/Taskfile.yml"
prettier:
taskfile: "https://raw.githubusercontent.com/hadenlabs/tasks/main/prettier/Taskfile.yml"
sonar:
taskfile: "https://raw.githubusercontent.com/hadenlabs/tasks/main/sonar/Taskfile.yml"
sops:
taskfile: "https://raw.githubusercontent.com/hadenlabs/tasks/main/sops/Taskfile.yml"
keybase:
taskfile: "https://raw.githubusercontent.com/hadenlabs/tasks/main/keybase/Taskfile.yml"
multipass:
taskfile: "https://raw.githubusercontent.com/hadenlabs/tasks/main/multipass/Taskfile.yml"
terraform:
taskfile: "https://raw.githubusercontent.com/hadenlabs/tasks/main/terraform/Taskfile.yml"
terragrunt:
taskfile: "https://raw.githubusercontent.com/hadenlabs/tasks/main/terragrunt/Taskfile.yml"
openssl:
taskfile: "https://raw.githubusercontent.com/hadenlabs/tasks/main/openssl/Taskfile.yml"
ssh:
taskfile: "https://raw.githubusercontent.com/hadenlabs/tasks/main/ssh/Taskfile.yml"

env:
DOCKER:
Expand All @@ -36,12 +71,14 @@ vars:
PROJECT_NAME: base-template
ORGANIZATION: hadenlabs
DOCKER_PLATFORM: linux/amd64
USER: ubuntu
REVIEWERS: luismayta
PYTHON_VERSION: 3.11.5
NODE_VERSION: 18.18.2
TERRAFORM_VERSION: 1.8.4
GIT_IGNORES: python,node,go,zsh,sonar,java,maven,intellij+all,terraform,linux
TERRAFORM_DIR: provision/terraform
NODE_VERSION: v18.20.4
GIT_IGNORES: python,go,zsh,sonar,java,maven,intellij+all,node,helm,terraform
GOLANGCI_VERSION: 1.42.0
TERRAFORM_VERSION: 1.10.2
README_FILE: README.md
GIT_IGNORES_CUSTOM: |
bin
Expand All @@ -56,6 +93,8 @@ vars:
*.zip
.external_modules
vendor
charts
.DS_Store
tasks:
default:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ readme = "README.md"
repository = "https://github.com/hadenlabs/base-template"

[tool.poetry.dependencies]
python = "^3.8,<3.12"
python = "^3.9,<3.12"
boto3 = "^1.26.130"

[tool.poetry.group.dev.dependencies]
Expand Down

0 comments on commit 98ea985

Please sign in to comment.