Skip to content

Commit

Permalink
style: format according to prettier rules 💅
Browse files Browse the repository at this point in the history
  • Loading branch information
gsong committed Dec 17, 2024
1 parent 5268003 commit 3218f88
Show file tree
Hide file tree
Showing 171 changed files with 10,964 additions and 10,752 deletions.
151 changes: 77 additions & 74 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,79 +1,82 @@
{
"name": "info-asst",
"build": {
"dockerfile": "Dockerfile",
"args": {
// To ensure that the group ID for the docker group in the container
// matches the group ID on the host, add this to your .bash_profile on the host
// export DOCKER_GROUP_ID=$(getent group docker | awk -F ":" '{ print $3 }')
"DOCKER_GROUP_ID": "${localEnv:DOCKER_GROUP_ID}"
}
},
"forwardPorts": [ 7071 ],
"runArgs": [
"--network", "host", "--cap-add", "NET_ADMIN" // use host networking so that the dev container can access the API when running the container locally
],
"name": "info-asst",
"build": {
"dockerfile": "Dockerfile",
"args": {
// To ensure that the group ID for the docker group in the container
// matches the group ID on the host, add this to your .bash_profile on the host
// export DOCKER_GROUP_ID=$(getent group docker | awk -F ":" '{ print $3 }')
"DOCKER_GROUP_ID": "${localEnv:DOCKER_GROUP_ID}"
}
},
"forwardPorts": [7071],
"runArgs": [
"--network",
"host",
"--cap-add",
"NET_ADMIN" // use host networking so that the dev container can access the API when running the container locally
],

"mounts": [
// Keep command history
"type=volume,source=info-asst-bashhistory,target=/home/vscode/commandhistory",
// Mounts the login details from the host machine to azcli works in the container
"type=bind,source=${env:HOME}${env:USERPROFILE}/.azure,target=/home/vscode/.azure",
// Mount docker socket for docker builds
"type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock"
],
"mounts": [
// Keep command history
"type=volume,source=info-asst-bashhistory,target=/home/vscode/commandhistory",
// Mounts the login details from the host machine to azcli works in the container
"type=bind,source=${env:HOME}${env:USERPROFILE}/.azure,target=/home/vscode/.azure",
// Mount docker socket for docker builds
"type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock"
],

// Set *default* container specific settings values on container create.
"customizations": {
"vscode": {
"settings": {
"python.pythonPath": "/opt/conda/envs/development/bin/python",
"python.languageServer": "Pylance",
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/*/**": true,
"**/.python_packages/*/**": true
},
"files.associations": {
"*.workbook": "[jsonc]"
}
},
// Add extensions you want installed when the container is created into this array
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"IronGeek.vscode-env",
"ms-azuretools.vscode-docker",
"ms-toolsai.jupyter",
"humao.rest-client",
"ms-dotnettools.csharp",
"ms-vsliveshare.vsliveshare-pack",
"ms-vscode.powershell",
"DavidAnson.vscode-markdownlint",
"redhat.vscode-yaml",
"ms-azure-devops.azure-pipelines",
"k--kato.docomment",
"hediet.vscode-drawio",
"msazurermtools.azurerm-vscode-tools",
"ms-azuretools.vscode-azurestorage",
"GitHub.copilot",
"GitHub.copilot-chat",
"BelkacemBerras.spellcheck",
"ms-azuretools.vscode-azureresourcegroups",
"ms-azuretools.vscode-azurefunctions",
"ms-python.pylint",
"ms-python.mypy",
"HashiCorp.terraform",
"mhutchie.git-graph",
"esbenp.prettier-vscode",
"mutantdino.resourcemonitor"
]
}
},
// Set *default* container specific settings values on container create.
"customizations": {
"vscode": {
"settings": {
"python.pythonPath": "/opt/conda/envs/development/bin/python",
"python.languageServer": "Pylance",
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/*/**": true,
"**/.python_packages/*/**": true
},
"files.associations": {
"*.workbook": "[jsonc]"
}
},
// Add extensions you want installed when the container is created into this array
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"IronGeek.vscode-env",
"ms-azuretools.vscode-docker",
"ms-toolsai.jupyter",
"humao.rest-client",
"ms-dotnettools.csharp",
"ms-vsliveshare.vsliveshare-pack",
"ms-vscode.powershell",
"DavidAnson.vscode-markdownlint",
"redhat.vscode-yaml",
"ms-azure-devops.azure-pipelines",
"k--kato.docomment",
"hediet.vscode-drawio",
"msazurermtools.azurerm-vscode-tools",
"ms-azuretools.vscode-azurestorage",
"GitHub.copilot",
"GitHub.copilot-chat",
"BelkacemBerras.spellcheck",
"ms-azuretools.vscode-azureresourcegroups",
"ms-azuretools.vscode-azurefunctions",
"ms-python.pylint",
"ms-python.mypy",
"HashiCorp.terraform",
"mhutchie.git-graph",
"esbenp.prettier-vscode",
"mutantdino.resourcemonitor"
]
}
},

"remoteUser": "vscode"
"remoteUser": "vscode"
}
30 changes: 15 additions & 15 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

*Before you open an issue, please check if a similar issue already exists or has been closed before.*
_Before you open an issue, please check if a similar issue already exists or has been closed before._

You can also find details on [Troubleshooting Common Issues](https://github.com/microsoft/PubSec-Info-Assistant/blob/main/docs/deployment/troubleshooting.md). You can use these tools to help gather additional logs and details to include in your issue.
You can also find details on [Troubleshooting Common Issues](https://github.com/microsoft/PubSec-Info-Assistant/blob/main/docs/deployment/troubleshooting.md). You can use these tools to help gather additional logs and details to include in your issue.

:warning: Please DO NOT include confidential information in your issue on GitHub. :warning:
:warning: Please DO NOT include confidential information in your issue on GitHub. :warning:

### Bug Details

**Describe the bug**
A clear and concise description of what the bug is.

Expand All @@ -32,24 +32,24 @@ If applicable, add screenshots to help explain your problem.

Please provide the following details. You can simply include a screenshot of your Info panel as well.

>GitHub branch: [e.g. main]
> GitHub branch: [e.g. main]
>
>Version or Latest commit: [obtained by running `git log -n 1 <branchname>`
> Version or Latest commit: [obtained by running `git log -n 1 <branchname>`
>
>What region is your Azure Open AI Service in?
> What region is your Azure Open AI Service in?
>
>What ChatGPT model are you using?
> What ChatGPT model are you using?
>
>model name: (i.e. gpt-3.5-turbo, gpt-4)
> model name: (i.e. gpt-3.5-turbo, gpt-4)
>
>model version: (i.e. 0613)
> model version: (i.e. 0613)
>
>What embeddings model are you using?
> What embeddings model are you using?
**Additional context**
Add any other context about the problem here.

**If the bug is confirmed, would you be willing to submit a PR?**

- [ ] Yes
- [ ] No
- [ ] No
7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

title: ""
labels: ""
assignees: ""
---

**Is your feature request related to a problem? Please describe.**
Expand Down
7 changes: 2 additions & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"recommendations": [
"ms-azuretools.vscode-azurefunctions",
"ms-python.python"
]
}
"recommendations": ["ms-azuretools.vscode-azurefunctions", "ms-python.python"]
}
Loading

0 comments on commit 3218f88

Please sign in to comment.