diff --git a/.changes/1.1.0.json b/.changes/1.1.0.json index 2ca4f97417..0a6ce72b54 100644 --- a/.changes/1.1.0.json +++ b/.changes/1.1.0.json @@ -1,7 +1,7 @@ [ { "category": "``EC2.Vpc.filter``", - "description": "Fix issue with clobbering of ``Filtering`` paramter. (`issue 154 `__)", + "description": "Fix issue with clobbering of ``Filtering`` parameter. (`issue 154 `__)", "type": "bugfix" } ] diff --git a/.changes/1.13.8.json b/.changes/1.13.8.json index 915ddead88..d9a7b71ef7 100644 --- a/.changes/1.13.8.json +++ b/.changes/1.13.8.json @@ -12,6 +12,6 @@ { "category": "Endpoints", "description": "[``botocore``] Improved endpoint resolution for clients with unknown regions", - "type": "enchancement" + "type": "enhancement" } ] \ No newline at end of file diff --git a/.changes/1.18.18.json b/.changes/1.18.18.json index 76923ab13c..ecd3e2d978 100644 --- a/.changes/1.18.18.json +++ b/.changes/1.18.18.json @@ -7,6 +7,6 @@ { "category": "Client", "description": "[``botocore``] Improve client performance by caching _alias_event_name on EventAliaser", - "type": "enchancement" + "type": "enhancement" } ] \ No newline at end of file diff --git a/.changes/1.18.64.json b/.changes/1.18.64.json index d1dfd78663..9c279a7e8e 100644 --- a/.changes/1.18.64.json +++ b/.changes/1.18.64.json @@ -7,7 +7,7 @@ { "category": "AWSCRT", "description": "[``botocore``] Upgrade awscrt extra to 0.12.5", - "type": "enchancement" + "type": "enhancement" }, { "category": "``ivs``", diff --git a/.changes/1.19.5.json b/.changes/1.19.5.json index 104f2825e3..775a6c45d8 100644 --- a/.changes/1.19.5.json +++ b/.changes/1.19.5.json @@ -37,6 +37,6 @@ { "category": "``s3``", "description": "TransferConfig now supports the `max_bandwidth` argument.", - "type": "enchancement" + "type": "enhancement" } ] \ No newline at end of file diff --git a/.changes/1.20.53.json b/.changes/1.20.53.json index fb6fe38e2b..d1847857e7 100644 --- a/.changes/1.20.53.json +++ b/.changes/1.20.53.json @@ -11,7 +11,7 @@ }, { "category": "``pinpoint``", - "description": "[``botocore``] This SDK release adds a new paramater creation date for GetApp and GetApps Api call", + "description": "[``botocore``] This SDK release adds a new parameter creation date for GetApp and GetApps Api call", "type": "api-change" }, { diff --git a/.changes/1.26.1.json b/.changes/1.26.1.json index be4b5c2d84..0fe88523bf 100644 --- a/.changes/1.26.1.json +++ b/.changes/1.26.1.json @@ -6,7 +6,7 @@ }, { "category": "``s3control``", - "description": "[``botocore``] S3 on Outposts launches support for Lifecycle configuration for Outposts buckets. With S3 Lifecycle configuration, you can mange objects so they are stored cost effectively. You can manage objects using size-based rules and specify how many noncurrent versions bucket will retain.", + "description": "[``botocore``] S3 on Outposts launches support for Lifecycle configuration for Outposts buckets. With S3 Lifecycle configuration, you can manage objects so they are stored cost effectively. You can manage objects using size-based rules and specify how many noncurrent versions bucket will retain.", "type": "api-change" }, { diff --git a/.changes/1.26.10.json b/.changes/1.26.10.json index a165583959..9126a7a197 100644 --- a/.changes/1.26.10.json +++ b/.changes/1.26.10.json @@ -16,7 +16,7 @@ }, { "category": "``greengrassv2``", - "description": "[``botocore``] Adds new parent target ARN paramater to CreateDeployment, GetDeployment, and ListDeployments APIs for the new subdeployments feature.", + "description": "[``botocore``] Adds new parent target ARN parameter to CreateDeployment, GetDeployment, and ListDeployments APIs for the new subdeployments feature.", "type": "api-change" }, { diff --git a/.changes/1.26.81.json b/.changes/1.26.81.json index bd6ff53303..55652f7eb1 100644 --- a/.changes/1.26.81.json +++ b/.changes/1.26.81.json @@ -36,7 +36,7 @@ }, { "category": "``omics``", - "description": "[``botocore``] Minor model changes to accomodate batch imports feature", + "description": "[``botocore``] Minor model changes to accommodate batch imports feature", "type": "api-change" } ] \ No newline at end of file diff --git a/.changes/1.28.64.json b/.changes/1.28.64.json index f1a50ef598..501bb946cd 100644 --- a/.changes/1.28.64.json +++ b/.changes/1.28.64.json @@ -6,7 +6,7 @@ }, { "category": "``drs``", - "description": "[``botocore``] Updated exsiting API to allow AWS Elastic Disaster Recovery support of launching recovery into existing EC2 instances.", + "description": "[``botocore``] Updated existing API to allow AWS Elastic Disaster Recovery support of launching recovery into existing EC2 instances.", "type": "api-change" }, { diff --git a/.changes/1.33.3.json b/.changes/1.33.3.json index 0d40efdde6..15612225ec 100644 --- a/.changes/1.33.3.json +++ b/.changes/1.33.3.json @@ -16,7 +16,7 @@ }, { "category": "``opensearch``", - "description": "[``botocore``] Launching Amazon OpenSearch Service support for new zero-ETL integration with Amazon S3. Customers can now manage their direct query data sources to Amazon S3 programatically", + "description": "[``botocore``] Launching Amazon OpenSearch Service support for new zero-ETL integration with Amazon S3. Customers can now manage their direct query data sources to Amazon S3 programmatically", "type": "api-change" }, { diff --git a/.changes/1.34.43.json b/.changes/1.34.43.json index 3bb81f79f0..3309b29765 100644 --- a/.changes/1.34.43.json +++ b/.changes/1.34.43.json @@ -36,7 +36,7 @@ }, { "category": "``sagemaker``", - "description": "[``botocore``] This release adds a new API UpdateClusterSoftware for SageMaker HyperPod. This API allows users to patch HyperPod clusters with latest platform softwares.", + "description": "[``botocore``] This release adds a new API UpdateClusterSoftware for SageMaker HyperPod. This API allows users to patch HyperPod clusters with latest platform software.", "type": "api-change" }, { diff --git a/.changes/1.5.21.json b/.changes/1.5.21.json index 8c2cca7c62..e9a6616035 100644 --- a/.changes/1.5.21.json +++ b/.changes/1.5.21.json @@ -32,6 +32,6 @@ { "category": "Paginator", "description": "[``botocore``] Added paginators for a number of services where the result key is unambiguous.", - "type": "enhancment" + "type": "enhancement" } ] \ No newline at end of file diff --git a/.changes/1.7.66.json b/.changes/1.7.66.json index 428a6b4734..7bbcf17961 100644 --- a/.changes/1.7.66.json +++ b/.changes/1.7.66.json @@ -32,7 +32,7 @@ { "category": "Timestamp Serialization", "description": "[``botocore``] Support explicit timestamp serialization per timestamp shape.", - "type": "enhancment" + "type": "enhancement" }, { "category": "``glacier``", diff --git a/.changes/1.9.0.json b/.changes/1.9.0.json index 28352df5bc..ad2ef31e79 100644 --- a/.changes/1.9.0.json +++ b/.changes/1.9.0.json @@ -11,12 +11,12 @@ }, { "category": "Events", - "description": "[``botocore``] This migrates the event system to using sevice ids instead of either client name or endpoint prefix. This prevents issues that might arise when a service changes their endpoint prefix, also fixes a long-standing bug where you could not register an event to a particular service if it happened to share its endpoint prefix with another service (e.g. ``autoscaling`` and ``application-autoscaling`` both use the endpoint prefix ``autoscaling``). Please see the `upgrade notes `_ to determine if you are impacted and how to proceed if you are.", + "description": "[``botocore``] This migrates the event system to using service ids instead of either client name or endpoint prefix. This prevents issues that might arise when a service changes their endpoint prefix, also fixes a long-standing bug where you could not register an event to a particular service if it happened to share its endpoint prefix with another service (e.g. ``autoscaling`` and ``application-autoscaling`` both use the endpoint prefix ``autoscaling``). Please see the `upgrade notes `_ to determine if you are impacted and how to proceed if you are.", "type": "feature" }, { "category": "Events", - "description": "This migrates the event system to using sevice ids instead of either client name or endpoint prefix. This prevents issues that might arise when a service changes their endpoint prefix, also fixes a long-standing bug where you could not register an event to a particular service if it happened to share its endpoint prefix with another service (e.g. ``autoscaling`` and ``application-autoscaling`` both use the endpoint prefix ``autoscaling``). Please see the `upgrade notes `_ to determine if you are impacted and how to proceed if you are.", + "description": "This migrates the event system to using service ids instead of either client name or endpoint prefix. This prevents issues that might arise when a service changes their endpoint prefix, also fixes a long-standing bug where you could not register an event to a particular service if it happened to share its endpoint prefix with another service (e.g. ``autoscaling`` and ``application-autoscaling`` both use the endpoint prefix ``autoscaling``). Please see the `upgrade notes `_ to determine if you are impacted and how to proceed if you are.", "type": "feature" } ] \ No newline at end of file diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 0000000000..f2af4f7080 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,23 @@ +# Codespell configuration is within pyproject.toml +--- +name: Codespell + +on: + push: + branches: [develop] + pull_request: + branches: [develop] + +permissions: + contents: read + +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Codespell + uses: codespell-project/actions-codespell@v2 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9733081bd3..b81b71c843 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,3 +24,10 @@ repos: rev: 6.1.0 hooks: - id: flake8 + - repo: https://github.com/codespell-project/codespell + # Configuration for codespell is in pyproject.toml + rev: v2.2.6 + hooks: + - id: codespell + additional_dependencies: + - tomli diff --git a/CHANGELOG.rst b/CHANGELOG.rst index a37fb0a369..3bc08c68e4 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -76,7 +76,7 @@ CHANGELOG * api-change:``healthlake``: [``botocore``] This release adds a new response parameter, JobProgressReport, to the DescribeFHIRImportJob and ListFHIRImportJobs API operation. JobProgressReport provides details on the progress of the import job on the server. * api-change:``opensearch``: [``botocore``] Adds additional supported instance types. * api-change:``polly``: [``botocore``] Amazon Polly adds 1 new voice - Burcu (tr-TR) -* api-change:``sagemaker``: [``botocore``] This release adds a new API UpdateClusterSoftware for SageMaker HyperPod. This API allows users to patch HyperPod clusters with latest platform softwares. +* api-change:``sagemaker``: [``botocore``] This release adds a new API UpdateClusterSoftware for SageMaker HyperPod. This API allows users to patch HyperPod clusters with latest platform software. * api-change:``secretsmanager``: [``botocore``] Doc only update for Secrets Manager * api-change:``endpoint-rules``: [``botocore``] Update endpoint-rules client to latest version @@ -595,7 +595,7 @@ CHANGELOG * api-change:``application-autoscaling``: [``botocore``] Amazon SageMaker customers can now use Application Auto Scaling to automatically scale the number of Inference Component copies across an endpoint to meet the varying demand of their workloads. * api-change:``cleanrooms``: [``botocore``] AWS Clean Rooms now provides differential privacy to protect against user-identification attempts and machine learning modeling to allow two parties to identify similar users in their data. * api-change:``cleanroomsml``: [``botocore``] Public Preview SDK release of AWS Clean Rooms ML APIs -* api-change:``opensearch``: [``botocore``] Launching Amazon OpenSearch Service support for new zero-ETL integration with Amazon S3. Customers can now manage their direct query data sources to Amazon S3 programatically +* api-change:``opensearch``: [``botocore``] Launching Amazon OpenSearch Service support for new zero-ETL integration with Amazon S3. Customers can now manage their direct query data sources to Amazon S3 programmatically * api-change:``opensearchserverless``: [``botocore``] Amazon OpenSearch Serverless collections support an additional attribute called standby-replicas. This allows to specify whether a collection should have redundancy enabled. * api-change:``sagemaker-runtime``: [``botocore``] Update sagemaker-runtime client to latest version * api-change:``sagemaker``: [``botocore``] This release adds following support 1/ Improved SDK tooling for model deployment. 2/ New Inference Component based features to lower inference costs and latency 3/ SageMaker HyperPod management. 4/ Additional parameters for FM Fine Tuning in Autopilot @@ -1078,7 +1078,7 @@ CHANGELOG ======= * api-change:``cloudformation``: [``botocore``] SDK and documentation updates for UpdateReplacePolicy -* api-change:``drs``: [``botocore``] Updated exsiting API to allow AWS Elastic Disaster Recovery support of launching recovery into existing EC2 instances. +* api-change:``drs``: [``botocore``] Updated existing API to allow AWS Elastic Disaster Recovery support of launching recovery into existing EC2 instances. * api-change:``entityresolution``: [``botocore``] This launch expands our matching techniques to include provider-based matching to help customer match, link, and enhance records with minimal data movement. With data service providers, we have removed the need for customers to build bespoke integrations,. * api-change:``managedblockchain-query``: [``botocore``] This release introduces two new APIs: GetAssetContract and ListAssetContracts. This release also adds support for Bitcoin Testnet. * api-change:``mediapackagev2``: [``botocore``] This release allows customers to manage MediaPackage v2 resource using CloudFormation. @@ -2727,7 +2727,7 @@ CHANGELOG * api-change:``kms``: [``botocore``] AWS KMS is deprecating the RSAES_PKCS1_V1_5 wrapping algorithm option in the GetParametersForImport API that is used in the AWS KMS Import Key Material feature. AWS KMS will end support for this wrapping algorithm by October 1, 2023. * api-change:``lightsail``: [``botocore``] This release adds Lightsail for Research feature support, such as GUI session access, cost estimates, stop instance on idle, and disk auto mount. * api-change:``managedblockchain``: [``botocore``] This release adds support for tagging to the accessor resource in Amazon Managed Blockchain -* api-change:``omics``: [``botocore``] Minor model changes to accomodate batch imports feature +* api-change:``omics``: [``botocore``] Minor model changes to accommodate batch imports feature 1.26.80 @@ -3508,7 +3508,7 @@ CHANGELOG * bugfix:s3: [``botocore``] fixes missing x-amz-content-sha256 header for s3 on outpost * enhancement:sso: [``botocore``] Add support for loading sso-session profiles from the aws config * api-change:``connect``: [``botocore``] This release updates the APIs: UpdateInstanceAttribute, DescribeInstanceAttribute, and ListInstanceAttributes. You can use it to programmatically enable/disable enhanced contact monitoring using attribute type ENHANCED_CONTACT_MONITORING on the specified Amazon Connect instance. -* api-change:``greengrassv2``: [``botocore``] Adds new parent target ARN paramater to CreateDeployment, GetDeployment, and ListDeployments APIs for the new subdeployments feature. +* api-change:``greengrassv2``: [``botocore``] Adds new parent target ARN parameter to CreateDeployment, GetDeployment, and ListDeployments APIs for the new subdeployments feature. * api-change:``route53``: [``botocore``] Amazon Route 53 now supports the Europe (Spain) Region (eu-south-2) for latency records, geoproximity records, and private DNS for Amazon VPCs in that region. * api-change:``ssmsap``: [``botocore``] AWS Systems Manager for SAP provides simplified operations and management of SAP applications such as SAP HANA. With this release, SAP customers and partners can automate and simplify their SAP system administration tasks such as backup/restore of SAP HANA. * api-change:``workspaces``: [``botocore``] This release introduces ModifyCertificateBasedAuthProperties, a new API that allows control of certificate-based auth properties associated with a WorkSpaces directory. The DescribeWorkspaceDirectories API will now additionally return certificate-based auth properties in its responses. @@ -3613,7 +3613,7 @@ CHANGELOG ====== * api-change:``iotsitewise``: [``botocore``] This release adds the ListAssetModelProperties and ListAssetProperties APIs. You can list all properties that belong to a single asset model or asset using these two new APIs. -* api-change:``s3control``: [``botocore``] S3 on Outposts launches support for Lifecycle configuration for Outposts buckets. With S3 Lifecycle configuration, you can mange objects so they are stored cost effectively. You can manage objects using size-based rules and specify how many noncurrent versions bucket will retain. +* api-change:``s3control``: [``botocore``] S3 on Outposts launches support for Lifecycle configuration for Outposts buckets. With S3 Lifecycle configuration, you can manage objects so they are stored cost effectively. You can manage objects using size-based rules and specify how many noncurrent versions bucket will retain. * api-change:``sagemaker``: [``botocore``] This release updates Framework model regex for ModelPackage to support new Framework version xgboost, sklearn. * api-change:``ssm-incidents``: [``botocore``] Adds support for tagging replication-set on creation. @@ -5291,7 +5291,7 @@ CHANGELOG * api-change:``cloudformation``: [``botocore``] This SDK release adds AWS CloudFormation Hooks HandlerErrorCodes * api-change:``lookoutvision``: [``botocore``] This release makes CompilerOptions in Lookout for Vision's StartModelPackagingJob's Configuration object optional. -* api-change:``pinpoint``: [``botocore``] This SDK release adds a new paramater creation date for GetApp and GetApps Api call +* api-change:``pinpoint``: [``botocore``] This SDK release adds a new parameter creation date for GetApp and GetApps Api call * api-change:``sns``: [``botocore``] Customer requested typo fix in API documentation. * api-change:``wafv2``: [``botocore``] Adds support for AWS WAF Fraud Control account takeover prevention (ATP), with configuration options for the new managed rule group AWSManagedRulesATPRuleSet and support for application integration SDKs for Android and iOS mobile apps. @@ -5946,7 +5946,7 @@ CHANGELOG * api-change:``sagemaker``: [``botocore``] This release allows customers to describe one or more versioned model packages through BatchDescribeModelPackage, update project via UpdateProject, modify and read customer metadata properties using Create, Update and Describe ModelPackage and enables cross account registration of model packages. * enhancement:Session: [``botocore``] Added `get_partition_for_region` allowing partition lookup by region name. * api-change:``textract``: [``botocore``] This release adds support for asynchronously analyzing invoice and receipt documents through two new APIs: StartExpenseAnalysis and GetExpenseAnalysis -* enchancement:``s3``: TransferConfig now supports the `max_bandwidth` argument. +* enhancement:``s3``: TransferConfig now supports the `max_bandwidth` argument. 1.19.4 @@ -6004,7 +6004,7 @@ CHANGELOG ======= * api-change:``quicksight``: [``botocore``] AWS QuickSight Service Features - Add IP Restriction UI and public APIs support. -* enchancement:AWSCRT: [``botocore``] Upgrade awscrt extra to 0.12.5 +* enhancement:AWSCRT: [``botocore``] Upgrade awscrt extra to 0.12.5 * api-change:``ivs``: [``botocore``] Bug fix: remove unsupported maxResults and nextToken pagination parameters from ListTagsForResource @@ -6450,7 +6450,7 @@ CHANGELOG ======= * api-change:``chime``: [``botocore``] Add support for "auto" in Region field of StartMeetingTranscription API request. -* enchancement:Client: [``botocore``] Improve client performance by caching _alias_event_name on EventAliaser +* enhancement:Client: [``botocore``] Improve client performance by caching _alias_event_name on EventAliaser 1.18.17 @@ -9408,7 +9408,7 @@ CHANGELOG * api-change:``workmail``: [``botocore``] Update workmail client to latest version * api-change:``iotsitewise``: [``botocore``] Update iotsitewise client to latest version -* enchancement:Endpoints: [``botocore``] Improved endpoint resolution for clients with unknown regions +* enhancement:Endpoints: [``botocore``] Improved endpoint resolution for clients with unknown regions 1.13.7 @@ -12772,8 +12772,8 @@ CHANGELOG * api-change:``logs``: [``botocore``] Update logs client to latest version * api-change:``config``: [``botocore``] Update config client to latest version -* feature:Events: [``botocore``] This migrates the event system to using sevice ids instead of either client name or endpoint prefix. This prevents issues that might arise when a service changes their endpoint prefix, also fixes a long-standing bug where you could not register an event to a particular service if it happened to share its endpoint prefix with another service (e.g. ``autoscaling`` and ``application-autoscaling`` both use the endpoint prefix ``autoscaling``). Please see the `upgrade notes `_ to determine if you are impacted and how to proceed if you are. -* feature:Events: This migrates the event system to using sevice ids instead of either client name or endpoint prefix. This prevents issues that might arise when a service changes their endpoint prefix, also fixes a long-standing bug where you could not register an event to a particular service if it happened to share its endpoint prefix with another service (e.g. ``autoscaling`` and ``application-autoscaling`` both use the endpoint prefix ``autoscaling``). Please see the `upgrade notes `_ to determine if you are impacted and how to proceed if you are. +* feature:Events: [``botocore``] This migrates the event system to using service ids instead of either client name or endpoint prefix. This prevents issues that might arise when a service changes their endpoint prefix, also fixes a long-standing bug where you could not register an event to a particular service if it happened to share its endpoint prefix with another service (e.g. ``autoscaling`` and ``application-autoscaling`` both use the endpoint prefix ``autoscaling``). Please see the `upgrade notes `_ to determine if you are impacted and how to proceed if you are. +* feature:Events: This migrates the event system to using service ids instead of either client name or endpoint prefix. This prevents issues that might arise when a service changes their endpoint prefix, also fixes a long-standing bug where you could not register an event to a particular service if it happened to share its endpoint prefix with another service (e.g. ``autoscaling`` and ``application-autoscaling`` both use the endpoint prefix ``autoscaling``). Please see the `upgrade notes `_ to determine if you are impacted and how to proceed if you are. 1.8.9 @@ -13005,7 +13005,7 @@ CHANGELOG * api-change:``cloudhsmv2``: [``botocore``] Update cloudhsmv2 client to latest version * api-change:``sagemaker``: [``botocore``] Update sagemaker client to latest version * api-change:``mq``: [``botocore``] Update mq client to latest version -* enhancment:Timestamp Serialization: [``botocore``] Support explicit timestamp serialization per timestamp shape. +* enhancement:Timestamp Serialization: [``botocore``] Support explicit timestamp serialization per timestamp shape. * api-change:``glacier``: [``botocore``] Update glacier client to latest version @@ -13839,7 +13839,7 @@ CHANGELOG * bugfix:Presign: [``botocore``] Fix issue where some events were not fired during the presigning of a request thus not including a variety of customizations (`#1340 `__) * enhancement:Credentials: [``botocore``] Improved error message when the source profile for an assume role is misconfigured. Fixes aws/aws-cli`#2763 `__ * api-change:``guardduty``: [``botocore``] Update guardduty client to latest version -* enhancment:Paginator: [``botocore``] Added paginators for a number of services where the result key is unambiguous. +* enhancement:Paginator: [``botocore``] Added paginators for a number of services where the result key is unambiguous. 1.5.20 @@ -14143,7 +14143,7 @@ CHANGELOG 1.1.0 ===== -* bugfix:``EC2.Vpc.filter``: Fix issue with clobbering of ``Filtering`` paramter. (`issue 154 `__) +* bugfix:``EC2.Vpc.filter``: Fix issue with clobbering of ``Filtering`` parameter. (`issue 154 `__) 0.0.22 diff --git a/README.rst b/README.rst index eb91aca8fc..3b3f6be345 100644 --- a/README.rst +++ b/README.rst @@ -148,3 +148,4 @@ More Resources * `NOTICE `__ * `Changelog `__ * `License `__ +enchancement diff --git a/boto3/docs/__init__.py b/boto3/docs/__init__.py index ebd112c672..d6ab12fab3 100644 --- a/boto3/docs/__init__.py +++ b/boto3/docs/__init__.py @@ -24,7 +24,7 @@ def generate_docs(root_dir, session): text files documenting each service. :param root_dir: The directory to write the reference files to. Each - service's reference documentation is loacated at + service's reference documentation is located at root_dir/reference/services/service-name.rst :param session: The boto3 session diff --git a/boto3/resources/factory.py b/boto3/resources/factory.py index 4cdd2f01dd..7774daf0cf 100644 --- a/boto3/resources/factory.py +++ b/boto3/resources/factory.py @@ -458,7 +458,7 @@ def _create_reference( Creates a new property on the resource to lazy-load a reference. """ # References are essentially an action with no request - # or response, so we can re-use the response handlers to + # or response, so we can reuse the response handlers to # build up resources from identifiers and data members. handler = ResourceHandler( search_path=reference_model.resource.path, diff --git a/docs/source/_static/js/custom.js b/docs/source/_static/js/custom.js index 03bbd2fee6..a3a32a71f8 100644 --- a/docs/source/_static/js/custom.js +++ b/docs/source/_static/js/custom.js @@ -72,7 +72,7 @@ function isValidResource(name, serviceDocName) { window.location.assign(newPath); } }()); -// Given a service name, we apply the html classes which indicate a current page to the corresponsing list item. +// Given a service name, we apply the html classes which indicate a current page to the corresponding list item. // Before:
  • ACM
  • // After:
  • ACM
  • function makeServiceLinkCurrent(serviceName) { @@ -115,7 +115,7 @@ function determineVisibleTocOpenMenu() { return mediaQuery.matches ? 'toc-menu-open-sm' : 'toc-menu-open-md'; } -// A mapping of current to next focus id's. For example, We want a corresponsing +// A mapping of current to next focus id's. For example, We want a corresponding // menu's close button to be highlighted after a menu is opened with a keyboard. const NEXT_FOCUS_ID_MAP = { 'nav-menu-open': 'nav-menu-close', diff --git a/pyproject.toml b/pyproject.toml index 969cbc2a10..e8cfdd675d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,3 +12,10 @@ src_paths = ["boto3", "tests"] [tool.black] line-length = 79 skip_string_normalization = true + +[tool.codespell] +# Ref: https://github.com/codespell-project/codespell#using-a-config-file +skip = '.git,*.svg,*.css,shortbreadv1.js' +check-hidden = true +ignore-regex = '\b(KAKFA|MAPE)\b' +ignore-words-list = 'braket' diff --git a/tests/unit/resources/test_collection.py b/tests/unit/resources/test_collection.py index b9a88cc6b1..877d8f872b 100644 --- a/tests/unit/resources/test_collection.py +++ b/tests/unit/resources/test_collection.py @@ -158,7 +158,7 @@ def get_collection(self): # the collection is expecting to be required from its # definition. This saves a bunch of repetitive typing # and lets you just define a collection in the tests - # below. Any identifiers you expect to be availabe in + # below. Any identifiers you expect to be available in # the resource definition will automatically be there. resource_def = self.collection_def.get('resource', {}) for identifier in resource_def.get('identifiers', []): diff --git a/tests/unit/resources/test_params.py b/tests/unit/resources/test_params.py index cac4b2a04e..288ea55a00 100644 --- a/tests/unit/resources/test_params.py +++ b/tests/unit/resources/test_params.py @@ -201,7 +201,7 @@ def test_service_action_params_reuse(self): item2 = mock.Mock() item2.meta = ResourceMeta('test', data={'Key': 'item2'}) - # Here we create params and then re-use it to build up a more + # Here we create params and then reuse it to build up a more # complex structure over multiple calls. params = create_request_parameters(item1, request_model) create_request_parameters(item2, request_model, params=params)