Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance the pre-commit #800

Merged
merged 1 commit into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did u update the related code ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pre-commit sorted the requirements.txt file

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
Loading