Skip to content
Closed
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions .chronus/changes/py1-2026-3-14-15-3-10.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
changeKind: internal
packages:
- "@autorest/python"
- "@azure-tools/typespec-python"
---

bumping pylint/mypy versions
22 changes: 6 additions & 16 deletions eng/pipelines/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,15 @@ jobs:

strategy:
matrix:
Linux_Python3.9:
Linux_Python3.10:
OSName: "Linux"
Pool: ${{ variables.LINUXPOOL }}
OSVmImage: ${{ variables.LINUXVMIMAGE}}
PythonVersion: "3.9"
Windows_Python3.9:
PythonVersion: "3.10"
Windows_Python3.10:
OSName: "Windows"
Pool: ${{ variables.WINDOWSPOOL }}
OSVmImage: ${{ variables.WINDOWSVMIMAGE}}
PythonVersion: "3.9"
Linux_Python3.10:
OSName: "Linux"
Pool: ${{ variables.LINUXPOOL }}
OSVmImage: ${{ variables.LINUXVMIMAGE}}
PythonVersion: "3.10"
Linux_Python3.11:
OSName: "Linux"
Expand Down Expand Up @@ -140,20 +135,15 @@ jobs:

strategy:
matrix:
Linux_Python3.9:
Linux_Python310:
OSName: "Linux"
Pool: ${{ variables.LINUXPOOL }}
OSVmImage: ${{ variables.LINUXVMIMAGE}}
PythonVersion: "3.9"
Windows_Python3.9:
PythonVersion: "3.10"
Windows_Python310:
OSName: "Windows"
Pool: ${{ variables.WINDOWSPOOL }}
OSVmImage: ${{ variables.WINDOWSVMIMAGE}}
PythonVersion: "3.9"
Linux_Python310:
OSName: "Linux"
Pool: ${{ variables.LINUXPOOL }}
OSVmImage: ${{ variables.LINUXVMIMAGE}}
PythonVersion: "3.10"
Linux_Python311:
OSName: "Linux"
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/generated-code-checks-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ steps:
- script: npm run test -- --env=lint --flavor=${{ parameters.folderName }}
displayName: Lint ${{ parameters.folderName }} - Python $(PythonVersion)
workingDirectory: $(Build.SourcesDirectory)/autorest.python/packages/${{parameters.package}}
condition: and(eq(variables['PythonVersion'], '3.9'), or(contains('${{ parameters.folderName }}', 'version-tolerant'), eq('${{parameters.package}}', 'typespec-python')))
condition: and(eq(variables['PythonVersion'], '3.10'), or(contains('${{ parameters.folderName }}', 'version-tolerant'), eq('${{parameters.package}}', 'typespec-python')))

- script: npm run test -- --env=mypy --flavor=${{ parameters.folderName }}
displayName: Mypy ${{ parameters.folderName }} - Python $(PythonVersion)
Expand Down
4 changes: 2 additions & 2 deletions eng/pipelines/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ extends:
versionSpec: 3.11
SdkInitializationSteps:
- task: UsePythonVersion@0
displayName: "Use Python 3.9"
displayName: "Use Python 3.10"
inputs:
versionSpec: 3.9
versionSpec: 3.10
- script: |
echo "npm install -g @azure-tools/typespec-client-generator-cli"
npm install -g @azure-tools/typespec-client-generator-cli
Expand Down
6 changes: 3 additions & 3 deletions eng/pipelines/publish-dev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pr: none

variables:
NodeVersion: "20.x"
PythonVersion: "3.9"
PythonVersion: "3.10"
TestFolder: "$(Build.SourcesDirectory)/test/"

pool:
Expand All @@ -16,9 +16,9 @@ steps:
versionSpec: "$(NodeVersion)"

- task: UsePythonVersion@0
displayName: "Use Python 3.9"
displayName: "Use Python 3.10"
inputs:
versionSpec: 3.9
versionSpec: 3.10

- script: |
cd $(Build.SourcesDirectory)
Expand Down
1 change: 0 additions & 1 deletion packages/autorest.python/autorest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from pygen import ReaderAndWriter, Plugin, YamlUpdatePlugin, OptionsDict
from .jsonrpc import AutorestAPI


_LOGGER = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion packages/autorest.python/autorest/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from .jsonrpc import AutorestAPI
from . import PluginAutorest


_LOGGER = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion packages/autorest.python/autorest/jsonrpc/localapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from . import AutorestAPI, Channel


_LOGGER = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion packages/autorest.python/autorest/jsonrpc/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

from .stdstream import read_message, write_message


_LOGGER = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion packages/autorest.python/autorest/jsonrpc/stdstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

from . import AutorestAPI, Channel


_LOGGER = logging.getLogger(__name__)


Expand Down
2 changes: 1 addition & 1 deletion packages/autorest.python/autorest/m2r.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# license information.
# --------------------------------------------------------------------------
"""An autorest MD to RST plugin."""

import logging
from typing import Any, Dict, Set, Union

Expand All @@ -12,7 +13,6 @@

from . import YamlUpdatePluginAutorest


_LOGGER = logging.getLogger(__name__)


Expand Down
4 changes: 2 additions & 2 deletions packages/autorest.python/autorest/m4reformatter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# license information.
# --------------------------------------------------------------------------
"""The modelerfour reformatter autorest plugin."""

import re
import copy
import logging
Expand All @@ -19,7 +20,6 @@
)
from .. import YamlUpdatePluginAutorest


ORIGINAL_ID_TO_UPDATED_TYPE: Dict[int, Dict[str, Any]] = {}
OAUTH_TYPE = "OAuth2"
KEY_TYPE = "Key"
Expand Down Expand Up @@ -748,7 +748,7 @@ def _update_content_type_parameter(
param["language"]["default"]["description"] = description
return param

def _update_parameters_helper(
def _update_parameters_helper( # pylint: disable=too-many-positional-arguments
self,
parameters: List[Dict[str, Any]],
body_parameter: Optional[Dict[str, Any]],
Expand Down
1 change: 1 addition & 0 deletions packages/autorest.python/autorest/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# license information.
# --------------------------------------------------------------------------
"""The preprocessing autorest plugin."""

from typing import Dict, Any
from pygen.preprocess import PreProcessPlugin
from . import YamlUpdatePluginAutorest
Expand Down
2 changes: 1 addition & 1 deletion packages/autorest.python/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"homepage": "https://github.com/Azure/autorest.python/blob/main/README.md",
"dependencies": {
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjE1ODIzMi9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.3.tgz",
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNjE1OTE5Ny9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.28.3.tgz",
"@autorest/system-requirements": "~1.0.2",
"fs-extra": "~11.2.0",
"tsx": "^4.21.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import re
from setuptools import setup, find_packages


PACKAGE_NAME = "azure-mgmt-test"
PACKAGE_PPRINT_NAME = "Test Management"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

from setuptools import setup, find_packages


PACKAGE_NAME = "azure-key-credential-sample"
version = "0.1.0"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

from setuptools import setup, find_packages


PACKAGE_NAME = "azure-basic-sample"
version = "0.1.0"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""

from typing import List

__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
Expand Down
Loading
Loading