Skip to content

Commit

Permalink
Merge pull request #330 from microsoft/cleanup-python-artifacts
Browse files Browse the repository at this point in the history
Clean up
  • Loading branch information
aaronpowell authored Jul 15, 2024
2 parents 76eca50 + 5435b7e commit a6b0e25
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 63 deletions.
21 changes: 1 addition & 20 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,13 @@
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"charliermarsh.ruff",
"ms-azuretools.vscode-docker",
"ms-azuretools.vscode-bicep",
"esbenp.prettier-vscode",
"ms-python.black-formatter",
"ms-python.pylint",
"ms-dotnettools.csdevkit",
"cweijan.vscode-postgresql-client2",
"EditorConfig.EditorConfig"
],
// Set *default* container specific settings.json values on container create.
"settings": {
"python.defaultInterpreterPath": "/usr/local/python/current/bin/python",
"python.linting.enabled": true,
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"[python]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": "always"
}
},
"python.formatting.provider": "black"
}
]
}
},

Expand Down
3 changes: 0 additions & 3 deletions .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ services:
network_mode: service:db
command: sleep infinity
environment:
# Connection string for Postgres in the proxy app
POSTGRES_CONNECTION_STRING: postgresql://admin:mypassword123@db:5432/aoai-proxy
POSTGRES_ENCRYPTION_KEY: myencryptionkey123
# Connection string for Postgres in the management app
ConnectionStrings__AoaiProxyContext: Host=db:5432;Username=admin;Password=mypassword123;Database=aoai-proxy
PostgresEncryptionKey: myencryptionkey123
Expand Down
16 changes: 4 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.237
hooks:
- id: ruff
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
21 changes: 0 additions & 21 deletions pyproject.toml

This file was deleted.

7 changes: 0 additions & 7 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
-r src/proxy/requirements.txt
fastapi[all]
black
ruff
pytest
coverage
pytest-cov
pre-commit

0 comments on commit a6b0e25

Please sign in to comment.