Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): bump black from 23.12.1 to 24.1.1 in /requirements #611

Merged
merged 3 commits into from
Jan 30, 2024
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
1 change: 1 addition & 0 deletions aws_lambda_builders/architecture.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""
Enum for determining type of architectures for Lambda Function.
"""

X86_64 = "x86_64"
ARM64 = "arm64"
1 change: 1 addition & 0 deletions aws_lambda_builders/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Common utilities for the library
"""

import locale
import logging
import os
Expand Down
1 change: 1 addition & 0 deletions aws_lambda_builders/workflow.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Implementation of a base workflow
"""

import functools
import logging
import os
Expand Down
1 change: 0 additions & 1 deletion aws_lambda_builders/workflows/custom_make/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@


class CustomMakeAction(BaseAction):

"""
A Lambda Builder Action that builds and packages a provided runtime project using Make.
"""
Expand Down
3 changes: 1 addition & 2 deletions aws_lambda_builders/workflows/custom_make/make.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Wrapper around calling make through a subprocess.
"""

import io
import logging
import shutil
Expand All @@ -11,7 +12,6 @@


class MakeExecutionError(Exception):

"""
Exception raised in case Make execution fails.
It will pass on the standard error output from the Make console.
Expand All @@ -24,7 +24,6 @@ def __init__(self, **kwargs):


class SubProcessMake(object):

"""
Wrapper around the Make command line utility, making it
easy to consume execution results.
Expand Down
1 change: 0 additions & 1 deletion aws_lambda_builders/workflows/custom_make/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@


class OSUtils(object):

"""
Wrapper around file system functions, to make it easy to
unit test actions in memory
Expand Down
2 changes: 1 addition & 1 deletion aws_lambda_builders/workflows/custom_make/workflow.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
ProvidedMakeWorkflow
"""

from aws_lambda_builders.actions import CopySourceAction
from aws_lambda_builders.path_resolver import PathResolver
from aws_lambda_builders.workflow import BaseWorkflow, BuildDirectory, BuildInSourceSupport, Capability
Expand All @@ -13,7 +14,6 @@


class CustomMakeWorkflow(BaseWorkflow):

"""
A Lambda builder workflow for provided runtimes based on make.
"""
Expand Down
1 change: 1 addition & 0 deletions aws_lambda_builders/workflows/dotnet_clipackage/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Commonly used utilities
"""

import logging
import os
import platform
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
.NET Core CLI Package Workflow
"""

from aws_lambda_builders.workflow import BaseWorkflow, BuildDirectory, BuildInSourceSupport, Capability

from .actions import GlobalToolInstallAction, RunPackageAction
Expand All @@ -10,7 +11,6 @@


class DotnetCliPackageWorkflow(BaseWorkflow):

"""
A Lambda builder workflow that knows to build and package .NET Core Lambda functions
"""
Expand Down
1 change: 1 addition & 0 deletions aws_lambda_builders/workflows/go_modules/builder.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Build a Go project using standard Go tooling
"""

import logging
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions aws_lambda_builders/workflows/go_modules/workflow.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Go Modules Workflow
"""

from aws_lambda_builders.workflow import BaseWorkflow, BuildDirectory, BuildInSourceSupport, Capability

from .actions import GoModulesBuildAction
Expand Down
1 change: 1 addition & 0 deletions aws_lambda_builders/workflows/java_gradle/workflow.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Java Gradle Workflow
"""

import hashlib
import os

Expand Down
1 change: 1 addition & 0 deletions aws_lambda_builders/workflows/java_maven/workflow.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Java Maven Workflow
"""

from aws_lambda_builders.actions import CleanUpAction, CopySourceAction
from aws_lambda_builders.workflow import BaseWorkflow, BuildDirectory, BuildInSourceSupport, Capability
from aws_lambda_builders.workflows.java.actions import JavaCopyDependenciesAction, JavaMoveDependenciesAction
Expand Down
5 changes: 0 additions & 5 deletions aws_lambda_builders/workflows/nodejs_npm/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@


class NodejsNpmPackAction(BaseAction):

"""
A Lambda Builder Action that packages a Node.js package using NPM to extract the source and remove test resources
"""
Expand Down Expand Up @@ -151,7 +150,6 @@ def execute(self):


class NodejsNpmCIAction(BaseAction):

"""
A Lambda Builder Action that installs NPM project dependencies
using the CI method - which is faster and better reproducible
Expand Down Expand Up @@ -201,7 +199,6 @@ def execute(self):


class NodejsNpmrcAndLockfileCopyAction(BaseAction):

"""
A Lambda Builder Action that copies lockfile and NPM config file .npmrc
"""
Expand Down Expand Up @@ -247,7 +244,6 @@ def execute(self):


class NodejsNpmrcCleanUpAction(BaseAction):

"""
A Lambda Builder Action that cleans NPM config file .npmrc
"""
Expand Down Expand Up @@ -288,7 +284,6 @@ def execute(self):


class NodejsNpmLockFileCleanUpAction(BaseAction):

"""
A Lambda Builder Action that cleans up garbage lockfile left by 7 in node_modules
"""
Expand Down
1 change: 0 additions & 1 deletion aws_lambda_builders/workflows/nodejs_npm/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Exceptions for the Node.js workflow
"""


from aws_lambda_builders.exceptions import LambdaBuilderError


Expand Down
1 change: 0 additions & 1 deletion aws_lambda_builders/workflows/nodejs_npm/npm.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@


class SubprocessNpm(object):

"""
Wrapper around the NPM command line utility, making it
easy to consume execution results.
Expand Down
1 change: 0 additions & 1 deletion aws_lambda_builders/workflows/nodejs_npm/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@


class OSUtils(object):

"""
Wrapper around file system functions, to make it easy to
unit test actions in memory
Expand Down
1 change: 0 additions & 1 deletion aws_lambda_builders/workflows/nodejs_npm/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@


class NodejsNpmWorkflow(BaseWorkflow):

"""
A Lambda builder workflow that knows how to pack
NodeJS projects using NPM.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Actions specific to the esbuild bundler
"""

import logging
from typing import Any, Dict

Expand All @@ -17,7 +18,6 @@


class EsbuildBundleAction(BaseAction):

"""
A Lambda Builder Action that packages a Node.js package using esbuild into a single file
optionally transpiling TypeScript
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Wrapper around calling esbuild through a subprocess.
"""

import logging
from pathlib import Path
from typing import Any, Callable, Dict, List, Union
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Esbuild specific exceptions
"""

from aws_lambda_builders.actions import ActionFailedError
from aws_lambda_builders.exceptions import LambdaBuilderError

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


class NodejsNpmEsbuildWorkflow(BaseWorkflow):

"""
A Lambda builder workflow that uses esbuild to bundle Node.js and transpile TS
NodeJS projects using NPM with esbuild.
Expand Down
1 change: 1 addition & 0 deletions aws_lambda_builders/workflows/python_pip/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Python pip specific workflow exceptions.
"""

from aws_lambda_builders.exceptions import LambdaBuilderError


Expand Down
1 change: 1 addition & 0 deletions aws_lambda_builders/workflows/python_pip/workflow.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Python PIP Workflow
"""

import logging

from aws_lambda_builders.actions import CleanUpAction, CopySourceAction, LinkSourceAction
Expand Down
1 change: 0 additions & 1 deletion aws_lambda_builders/workflows/ruby_bundler/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@


class RubyBundlerInstallAction(BaseAction):

"""
A Lambda Builder Action which runs bundle install in order to build a full Gemfile.lock
"""
Expand Down
1 change: 0 additions & 1 deletion aws_lambda_builders/workflows/ruby_bundler/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


class OSUtils(object):

"""
Wrapper around file system functions, to make it easy to
unit test actions in memory
Expand Down
2 changes: 1 addition & 1 deletion aws_lambda_builders/workflows/ruby_bundler/workflow.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Ruby Bundler Workflow
"""

import logging

from aws_lambda_builders.actions import CleanUpAction, CopyDependenciesAction, CopySourceAction
Expand All @@ -14,7 +15,6 @@


class RubyBundlerWorkflow(BaseWorkflow):

"""
A Lambda builder workflow that knows how to build
Ruby projects using Bundler.
Expand Down
1 change: 1 addition & 0 deletions aws_lambda_builders/workflows/rust_cargo/cargo_lambda.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Wrapper around calling Cargo Lambda through a subprocess.
"""

import io
import logging
import os
Expand Down
2 changes: 1 addition & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ pyelftools~=0.30 # Used to verify the generated Go binary architecture in integr

# formatter
black==22.6.0; python_version < "3.8"
black==23.12.1; python_version >= "3.8"
black==24.1.1; python_version >= "3.8"
ruff==0.1.14
1 change: 0 additions & 1 deletion tests/unit/workflows/custom_make/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class TestProvidedMakeWorkflow(TestCase):

"""
the workflow requires an external utility (make) to run, so it is extensively tested in integration tests.
this is just a quick wiring test to provide fast feedback if things are badly broken
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/workflows/java_gradle/test_gradlew_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def test_gradlew_exists_returns_gradlew(self):

def test_gradlew_not_exists_returns_gradle_on_path(self):
gradle_path = "/path/to/gradle"
self.mock_os_utils.which.side_effect = (
lambda executable, executable_search_paths: [] if executable == "gradlew" else [gradle_path]
self.mock_os_utils.which.side_effect = lambda executable, executable_search_paths: (
[] if executable == "gradlew" else [gradle_path]
)

resolver = GradleResolver(os_utils=self.mock_os_utils)
Expand Down
1 change: 0 additions & 1 deletion tests/unit/workflows/nodejs_npm/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def communicate(self):


class TestNodejsNpmWorkflow(TestCase):

"""
the workflow requires an external utility (npm) to run, so it is extensively tested in integration tests.
this is just a quick wiring test to provide fast feedback if things are badly broken
Expand Down
1 change: 0 additions & 1 deletion tests/unit/workflows/nodejs_npm_esbuild/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def communicate(self):


class TestNodejsNpmEsbuildWorkflow(TestCase):

"""
the workflow requires an external utility (npm) to run, so it is extensively tested in integration tests.
this is just a quick wiring test to provide fast feedback if things are badly broken
Expand Down
Loading