Skip to content
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
7 changes: 7 additions & 0 deletions packages/http-client-python/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log - @typespec/http-client-python

## 0.11.2

### Other Changes

- Bump typespec and typespec-azure to latest version


## 0.11.1

### Bug Fixes
Expand Down
22 changes: 21 additions & 1 deletion packages/http-client-python/emitter/src/emitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,27 @@ async function onEmitMain(context: EmitContext<PythonEmitterOptions>) {
.join(" ");
const command = `${venvPath} ${root}/eng/scripts/setup/run_tsp.py ${commandFlags}`;
execSync(command, { stdio: [process.stdin, process.stdout] });
const blackExcludeDirs = ["__pycache__/*", "node_modules/*", "venv/*", "env/*"];
const blackExcludeDirs = [
"__pycache__/*",
"node_modules/*",
"venv/*",
"env/*",
".direnv",
".eggs",
".git",
".hg",
".tox",
".venv",
".eggs",
".mypy_cache",
".pytest_cache",
".vscode",
"_build",
"build",
"dist",
".nox",
".svn",
];
execSync(
`${venvPath} -m black --line-length=120 --fast ${outputDir} --exclude "${blackExcludeDirs.join("|")}"`,
{
Expand Down
5 changes: 4 additions & 1 deletion packages/http-client-python/eng/scripts/ci/mypy.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# global configurations
[mypy]
python_version = 3.9

# Exclude mypy check for sub client tests
exclude = (azure/clientgenerator/core/clientinitialization/operations/_operations\.py|azure/clientgenerator/core/clientinitialization/aio/operations/_operations\.py)

# module level configurations
[mypy-jsonrpc.*]
Expand Down Expand Up @@ -36,3 +37,5 @@ ignore_missing_imports = True

[mypy-yaml.*]
ignore_missing_imports = True


3 changes: 3 additions & 0 deletions packages/http-client-python/eng/scripts/ci/regenerate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ const AZURE_EMITTER_OPTIONS: Record<string, Record<string, string> | Record<stri
"azure/client-generator-core/client-initialization": {
namespace: "specs.azure.clientgenerator.core.clientinitialization",
},
"azure/client-generator-core/deserialize-empty-string-as-null": {
namespace: "specs.azure.clientgenerator.core.emptystring",
},
"azure/client-generator-core/flatten-property": {
namespace: "specs.azure.clientgenerator.core.flattenproperty",
},
Expand Down
Loading
Loading