Skip to content

Commit

Permalink
Enhance the pre-commit (#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
athiruma authored Jun 10, 2024
1 parent 0ef72fa commit ed19671
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 8 deletions.
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,15 @@ repos:
- id: check-yaml
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: detect-private-key
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: mixed-line-ending
args:
- --fix=lf
- id: requirements-txt-fixer
- id: check-ast
- id: check-docstring-first
- id: check-merge-conflict
- id: detect-aws-credentials
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

PROJECT_NAME="CloudResourceOrchestration"
SUCCESS_OUTPUT_PATH="/dev/null"
AWS_DEFAULT_REGION="us-east-1"
Expand Down
2 changes: 1 addition & 1 deletion cloud_governance/common/jira/jira.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3

import asyncio
import logging

Expand Down
2 changes: 2 additions & 0 deletions cloudsensei/agg_lambda/run.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

PROJECT_NAME="AggFunction"
SUCCESS_OUTPUT_PATH="/dev/null"
ERROR_LOG="$(mktemp -d)/stderr.log"
Expand Down
4 changes: 2 additions & 2 deletions cloudsensei/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
boto3==1.26.1
requests==2.32.2
jinja2==3.1.4
elasticsearch==7.11.0
jinja2==3.1.4
requests==2.32.2
3 changes: 3 additions & 0 deletions cloudsensei/run.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash


PROJECT_NAME="CloudSensei"
SUCCESS_OUTPUT_PATH="/dev/null"
ERROR_LOG="$(mktemp -d)/stderr.log"
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ aiohttp==3.9.4
attrs==21.4.0
azure-identity==1.12.0
azure-mgmt-billing==6.0.0
azure-mgmt-resource==23.0.1
azure-mgmt-compute==30.1.0
azure-mgmt-costmanagement==3.0.0
azure-mgmt-monitor==6.0.2
azure-mgmt-network==25.0.0
azure-mgmt-costmanagement==3.0.0
azure-mgmt-resource==23.0.1
azure-mgmt-subscription==3.1.1
boto3==1.26.4
botocore==1.29.4
Expand All @@ -30,6 +30,6 @@ setuptools
SoftLayer==6.0.0
sphinx==5.0.0
sphinx-rtd-theme==1.0.0
typing==3.7.4.3
typeguard==2.13.3
typing==3.7.4.3
urllib3==1.26.18
4 changes: 2 additions & 2 deletions tests_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
aiohttp==3.9.4
azure-identity==1.12.0
azure-mgmt-costmanagement==3.0.0
azure-mgmt-billing==6.0.0
azure-mgmt-costmanagement==3.0.0
azure-mgmt-monitor==6.0.2
azure-mgmt-subscription==3.1.1
boto3==1.26.4
Expand All @@ -16,7 +16,7 @@ pytest
python-ldap==3.4.2
requests==2.32.2
retry==0.9.2
typeguard==2.13.3
setuptools
SoftLayer==6.0.0
typeguard==2.13.3
urllib3==1.26.18

0 comments on commit ed19671

Please sign in to comment.