We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
flake8 and/or prettier setup for devcontainer
Per comments in #354 and #340 
We should "just" add flake8 and some type of auto prettier to the devcontainer setup so that those types of things are caught during dev cycle instead of review nits as much as possible.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `mlos_core/setup.py`
Content:
```
1 #
2 # Copyright (c) Microsoft Corporation.
3 # Licensed under the MIT License.
4 #
5 """
6 Setup instructions for the mlos_core package.
7 """
8 
9 from itertools import chain
10 from logging import warning
11 from typing import Dict, List
12 
13 from setuptools import setup, find_packages
14 
15 from _version import _VERSION   # pylint: disable=import-private-name
16 
17 try:
18     from setuptools_scm import get_version
19     version = get_version(root='..', relative_to=__file__)
20     if version is not None:
21         _VERSION = version
22 except ImportError:
23     warning("setuptools_scm not found, using version from _version.py")
24 except LookupError as e:
25     warning(f"setuptools_scm failed to find git version, using version from _version.py: {e}")
26 
27 
28 extra_requires: Dict[str, List[str]] = {
29     'emukit': ['emukit'],
30     'skopt': ['scikit-optimize<=0.9.0'],  # FIXME: temporarily work around some version mismatch issues (PR 850)
31 }
32 
33 # construct special 'full' extra that adds requirements for all built-in
34 # backend integrations and additional extra features.
35 extra_requires['full'] = list(set(chain(*extra_requires.values())))
36 
37 extra_requires['full-tests'] = extra_requires['full'] + [
38     'pytest',
39     'pytest-forked',
40     'pytest-xdist',
41     'pytest-cov',
42     'pytest-local-badge',
43 ]
44 
45 # pylint: disable=duplicate-code
46 MODULE_BASE_NAME = 'mlos_core'
47 setup(
48     name='mlos-core',
49     version=_VERSION,
50     packages=find_packages(exclude=[f"{MODULE_BASE_NAME}.tests", f"{MODULE_BASE_NAME}.tests.*"]),
51     package_data={
52         '': ['py.typed', '**/*.pyi'],
53     },
54     install_requires=[
55         'scikit-learn<1.2', # FIXME: temporarily work around some version mismatch issues (PR 850)
56         'joblib>=1.1.1',    # CVE-2022-21797: scikit-learn dependency, addressed in 1.2.0dev0, which isn't currently released
57         'scipy>=1.3.2',
58         'numpy<1.24',       # FIXME: temporarily work around some version mismatch issues (PR 850)
59         'pandas>=1.0.3',
60         'ConfigSpace>=0.6.1',
61     ],
62     extras_require=extra_requires,
63     author='Microsoft',
64     author_email='mlos-maintainers@service.microsoft.com',
65     description=('MLOS Core Python interface for parameter optimization.'),
66     license='MIT',
67     keywords='',
68     url='https://aka.ms/mlos-core',
69     python_requires='>=3.8',
70 )
71
```

Path: `mlos_bench/setup.py`
Content:
```
1 #
2 # Copyright (c) Microsoft Corporation.
3 # Licensed under the MIT License.
4 #
5 """
6 Setup instructions for the mlos_bench package.
7 """
8 
9 from logging import warning
10 from itertools import chain
11 from typing import Dict, List
12 
13 from setuptools import setup, find_packages
14 
15 from _version import _VERSION    # pylint: disable=import-private-name
16 
17 try:
18     from setuptools_scm import get_version
19     version = get_version(root='..', relative_to=__file__)
20     if version is not None:
21         _VERSION = version
22 except ImportError:
23     warning("setuptools_scm not found, using version from _version.py")
24 except LookupError as e:
25     warning(f"setuptools_scm failed to find git version, using version from _version.py: {e}")
26 
27 
28 extra_requires: Dict[str, List[str]] = {
29     # Additional tools for extra functionality.
30     'azure': ['azure-storage-file-share'],
31     'storage-sql-duckdb': ['sqlalchemy', 'duckdb_engine'],
32     'storage-sql-mysql': ['sqlalchemy', 'mysql-connector-python'],
33     'storage-sql-postgres': ['sqlalchemy', 'psycopg2'],
34     'storage-sql-sqlite': ['sqlalchemy'],   # sqlite3 comes with python, so we don't need to install it.
35     # Transitive extra_requires from mlos-core.
36     'emukit': ['emukit'],
37     'skopt': ['scikit-optimize'],
38 }
39 
40 # construct special 'full' extra that adds requirements for all built-in
41 # backend integrations and additional extra features.
42 extra_requires['full'] = list(set(chain(*extra_requires.values())))
43 
44 extra_requires['full-tests'] = extra_requires['full'] + [
45     'pytest',
46     'pytest-forked',
47     'pytest-xdist',
48     'pytest-cov',
49     'pytest-local-badge',
50 ]
51 
52 # pylint: disable=duplicate-code
53 MODULE_BASE_NAME = 'mlos_bench'
54 setup(
55     name='mlos-bench',
56     version=_VERSION,
57     packages=find_packages(exclude=[f"{MODULE_BASE_NAME}.tests", f"{MODULE_BASE_NAME}.tests.*"]),
58     package_data={
59         '': ['py.typed', '**/*.pyi'],
60         'mlos_bench': [
61             'config/**/*.md',
62             'config/**/*.jsonc',
63             'config/**/*.json',
64             'config/**/*.py',
65             'config/**/*.sh',
66             'config/**/*.cmd',
67             'config/**/*.ps1',
68         ],
69     },
70     entry_points={
71         'console_scripts': [
72             'mlos_bench = mlos_bench.run:_main',
73         ],
74     },
75     install_requires=[
76         'mlos-core==' + _VERSION,
77         'requests',
78         'json5',
79         'jsonschema',
80         'importlib_resources;python_version<"3.10"',
81     ] + extra_requires['storage-sql-sqlite'],   # NOTE: For now sqlite is a fallback storage backend, so we always install it.
82     extras_require=extra_requires,
83     author='Microsoft',
84     author_email='mlos-maintainers@service.microsoft.com',
85     description=('MLOS Bench Python interface for benchmark automation and optimization.'),
86     license='MIT',
87     keywords='',
88     url='https://aka.ms/mlos-core',
89     python_requires='>=3.8',
90 )
91
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/mlos_bench/setup.py b/mlos_bench/setup.py
--- a/mlos_bench/setup.py
+++ b/mlos_bench/setup.py
@@ -18,14 +18,14 @@
     from setuptools_scm import get_version
     version = get_version(root='..', relative_to=__file__)
     if version is not None:
-        _VERSION = version
+        _VERSION = version  # noqa: F811
 except ImportError:
     warning("setuptools_scm not found, using version from _version.py")
 except LookupError as e:
     warning(f"setuptools_scm failed to find git version, using version from _version.py: {e}")
 
 
-extra_requires: Dict[str, List[str]] = {
+extra_requires: Dict[str, List[str]] = {    # pylint: disable=consider-using-namedtuple-or-dataclass
     # Additional tools for extra functionality.
     'azure': ['azure-storage-file-share'],
     'storage-sql-duckdb': ['sqlalchemy', 'duckdb_engine'],
diff --git a/mlos_core/setup.py b/mlos_core/setup.py
--- a/mlos_core/setup.py
+++ b/mlos_core/setup.py
@@ -18,14 +18,14 @@
     from setuptools_scm import get_version
     version = get_version(root='..', relative_to=__file__)
     if version is not None:
-        _VERSION = version
+        _VERSION = version  # noqa: F811
 except ImportError:
     warning("setuptools_scm not found, using version from _version.py")
 except LookupError as e:
     warning(f"setuptools_scm failed to find git version, using version from _version.py: {e}")
 
 
-extra_requires: Dict[str, List[str]] = {
+extra_requires: Dict[str, List[str]] = {  # pylint: disable=consider-using-namedtuple-or-dataclass
     'emukit': ['emukit'],
     'skopt': ['scikit-optimize<=0.9.0'],  # FIXME: temporarily work around some version mismatch issues (PR 850)
 }
@@ -52,10 +52,10 @@
         '': ['py.typed', '**/*.pyi'],
     },
     install_requires=[
-        'scikit-learn<1.2', # FIXME: temporarily work around some version mismatch issues (PR 850)
-        'joblib>=1.1.1',    # CVE-2022-21797: scikit-learn dependency, addressed in 1.2.0dev0, which isn't currently released
+        'scikit-learn<1.2',     # FIXME: temporarily work around some version mismatch issues (PR 850)
+        'joblib>=1.1.1',        # CVE-2022-21797: scikit-learn dependency, addressed in 1.2.0dev0, which isn't currently released
         'scipy>=1.3.2',
-        'numpy<1.24',       # FIXME: temporarily work around some version mismatch issues (PR 850)
+        'numpy<1.24',           # FIXME: temporarily work around some version mismatch issues (PR 850)
         'pandas>=1.0.3',
         'ConfigSpace>=0.6.1',
     ],

{"golden_diff": "diff --git a/mlos_bench/setup.py b/mlos_bench/setup.py\n--- a/mlos_bench/setup.py\n+++ b/mlos_bench/setup.py\n@@ -18,14 +18,14 @@\n     from setuptools_scm import get_version\n     version = get_version(root='..', relative_to=__file__)\n     if version is not None:\n-        _VERSION = version\n+        _VERSION = version  # noqa: F811\n except ImportError:\n     warning(\"setuptools_scm not found, using version from _version.py\")\n except LookupError as e:\n     warning(f\"setuptools_scm failed to find git version, using version from _version.py: {e}\")\n \n \n-extra_requires: Dict[str, List[str]] = {\n+extra_requires: Dict[str, List[str]] = {    # pylint: disable=consider-using-namedtuple-or-dataclass\n     # Additional tools for extra functionality.\n     'azure': ['azure-storage-file-share'],\n     'storage-sql-duckdb': ['sqlalchemy', 'duckdb_engine'],\ndiff --git a/mlos_core/setup.py b/mlos_core/setup.py\n--- a/mlos_core/setup.py\n+++ b/mlos_core/setup.py\n@@ -18,14 +18,14 @@\n     from setuptools_scm import get_version\n     version = get_version(root='..', relative_to=__file__)\n     if version is not None:\n-        _VERSION = version\n+        _VERSION = version  # noqa: F811\n except ImportError:\n     warning(\"setuptools_scm not found, using version from _version.py\")\n except LookupError as e:\n     warning(f\"setuptools_scm failed to find git version, using version from _version.py: {e}\")\n \n \n-extra_requires: Dict[str, List[str]] = {\n+extra_requires: Dict[str, List[str]] = {  # pylint: disable=consider-using-namedtuple-or-dataclass\n     'emukit': ['emukit'],\n     'skopt': ['scikit-optimize<=0.9.0'],  # FIXME: temporarily work around some version mismatch issues (PR 850)\n }\n@@ -52,10 +52,10 @@\n         '': ['py.typed', '**/*.pyi'],\n     },\n     install_requires=[\n-        'scikit-learn<1.2', # FIXME: temporarily work around some version mismatch issues (PR 850)\n-        'joblib>=1.1.1',    # CVE-2022-21797: scikit-learn dependency, addressed in 1.2.0dev0, which isn't currently released\n+        'scikit-learn<1.2',     # FIXME: temporarily work around some version mismatch issues (PR 850)\n+        'joblib>=1.1.1',        # CVE-2022-21797: scikit-learn dependency, addressed in 1.2.0dev0, which isn't currently released\n         'scipy>=1.3.2',\n-        'numpy<1.24',       # FIXME: temporarily work around some version mismatch issues (PR 850)\n+        'numpy<1.24',           # FIXME: temporarily work around some version mismatch issues (PR 850)\n         'pandas>=1.0.3',\n         'ConfigSpace>=0.6.1',\n     ],\n", "issue": "flake8 and/or prettier setup for devcontainer\nPer comments in #354 and #340 \r\nWe should \"just\" add flake8 and some type of auto prettier to the devcontainer setup so that those types of things are caught during dev cycle instead of review nits as much as possible.\n", "before_files": [{"content": "#\n# Copyright (c) Microsoft Corporation.\n# Licensed under the MIT License.\n#\n\"\"\"\nSetup instructions for the mlos_core package.\n\"\"\"\n\nfrom itertools import chain\nfrom logging import warning\nfrom typing import Dict, List\n\nfrom setuptools import setup, find_packages\n\nfrom _version import _VERSION   # pylint: disable=import-private-name\n\ntry:\n    from setuptools_scm import get_version\n    version = get_version(root='..', relative_to=__file__)\n    if version is not None:\n        _VERSION = version\nexcept ImportError:\n    warning(\"setuptools_scm not found, using version from _version.py\")\nexcept LookupError as e:\n    warning(f\"setuptools_scm failed to find git version, using version from _version.py: {e}\")\n\n\nextra_requires: Dict[str, List[str]] = {\n    'emukit': ['emukit'],\n    'skopt': ['scikit-optimize<=0.9.0'],  # FIXME: temporarily work around some version mismatch issues (PR 850)\n}\n\n# construct special 'full' extra that adds requirements for all built-in\n# backend integrations and additional extra features.\nextra_requires['full'] = list(set(chain(*extra_requires.values())))\n\nextra_requires['full-tests'] = extra_requires['full'] + [\n    'pytest',\n    'pytest-forked',\n    'pytest-xdist',\n    'pytest-cov',\n    'pytest-local-badge',\n]\n\n# pylint: disable=duplicate-code\nMODULE_BASE_NAME = 'mlos_core'\nsetup(\n    name='mlos-core',\n    version=_VERSION,\n    packages=find_packages(exclude=[f\"{MODULE_BASE_NAME}.tests\", f\"{MODULE_BASE_NAME}.tests.*\"]),\n    package_data={\n        '': ['py.typed', '**/*.pyi'],\n    },\n    install_requires=[\n        'scikit-learn<1.2', # FIXME: temporarily work around some version mismatch issues (PR 850)\n        'joblib>=1.1.1',    # CVE-2022-21797: scikit-learn dependency, addressed in 1.2.0dev0, which isn't currently released\n        'scipy>=1.3.2',\n        'numpy<1.24',       # FIXME: temporarily work around some version mismatch issues (PR 850)\n        'pandas>=1.0.3',\n        'ConfigSpace>=0.6.1',\n    ],\n    extras_require=extra_requires,\n    author='Microsoft',\n    author_email='mlos-maintainers@service.microsoft.com',\n    description=('MLOS Core Python interface for parameter optimization.'),\n    license='MIT',\n    keywords='',\n    url='https://aka.ms/mlos-core',\n    python_requires='>=3.8',\n)\n", "path": "mlos_core/setup.py"}, {"content": "#\n# Copyright (c) Microsoft Corporation.\n# Licensed under the MIT License.\n#\n\"\"\"\nSetup instructions for the mlos_bench package.\n\"\"\"\n\nfrom logging import warning\nfrom itertools import chain\nfrom typing import Dict, List\n\nfrom setuptools import setup, find_packages\n\nfrom _version import _VERSION    # pylint: disable=import-private-name\n\ntry:\n    from setuptools_scm import get_version\n    version = get_version(root='..', relative_to=__file__)\n    if version is not None:\n        _VERSION = version\nexcept ImportError:\n    warning(\"setuptools_scm not found, using version from _version.py\")\nexcept LookupError as e:\n    warning(f\"setuptools_scm failed to find git version, using version from _version.py: {e}\")\n\n\nextra_requires: Dict[str, List[str]] = {\n    # Additional tools for extra functionality.\n    'azure': ['azure-storage-file-share'],\n    'storage-sql-duckdb': ['sqlalchemy', 'duckdb_engine'],\n    'storage-sql-mysql': ['sqlalchemy', 'mysql-connector-python'],\n    'storage-sql-postgres': ['sqlalchemy', 'psycopg2'],\n    'storage-sql-sqlite': ['sqlalchemy'],   # sqlite3 comes with python, so we don't need to install it.\n    # Transitive extra_requires from mlos-core.\n    'emukit': ['emukit'],\n    'skopt': ['scikit-optimize'],\n}\n\n# construct special 'full' extra that adds requirements for all built-in\n# backend integrations and additional extra features.\nextra_requires['full'] = list(set(chain(*extra_requires.values())))\n\nextra_requires['full-tests'] = extra_requires['full'] + [\n    'pytest',\n    'pytest-forked',\n    'pytest-xdist',\n    'pytest-cov',\n    'pytest-local-badge',\n]\n\n# pylint: disable=duplicate-code\nMODULE_BASE_NAME = 'mlos_bench'\nsetup(\n    name='mlos-bench',\n    version=_VERSION,\n    packages=find_packages(exclude=[f\"{MODULE_BASE_NAME}.tests\", f\"{MODULE_BASE_NAME}.tests.*\"]),\n    package_data={\n        '': ['py.typed', '**/*.pyi'],\n        'mlos_bench': [\n            'config/**/*.md',\n            'config/**/*.jsonc',\n            'config/**/*.json',\n            'config/**/*.py',\n            'config/**/*.sh',\n            'config/**/*.cmd',\n            'config/**/*.ps1',\n        ],\n    },\n    entry_points={\n        'console_scripts': [\n            'mlos_bench = mlos_bench.run:_main',\n        ],\n    },\n    install_requires=[\n        'mlos-core==' + _VERSION,\n        'requests',\n        'json5',\n        'jsonschema',\n        'importlib_resources;python_version<\"3.10\"',\n    ] + extra_requires['storage-sql-sqlite'],   # NOTE: For now sqlite is a fallback storage backend, so we always install it.\n    extras_require=extra_requires,\n    author='Microsoft',\n    author_email='mlos-maintainers@service.microsoft.com',\n    description=('MLOS Bench Python interface for benchmark automation and optimization.'),\n    license='MIT',\n    keywords='',\n    url='https://aka.ms/mlos-core',\n    python_requires='>=3.8',\n)\n", "path": "mlos_bench/setup.py"}], "after_files": [{"content": "#\n# Copyright (c) Microsoft Corporation.\n# Licensed under the MIT License.\n#\n\"\"\"\nSetup instructions for the mlos_core package.\n\"\"\"\n\nfrom itertools import chain\nfrom logging import warning\nfrom typing import Dict, List\n\nfrom setuptools import setup, find_packages\n\nfrom _version import _VERSION   # pylint: disable=import-private-name\n\ntry:\n    from setuptools_scm import get_version\n    version = get_version(root='..', relative_to=__file__)\n    if version is not None:\n        _VERSION = version  # noqa: F811\nexcept ImportError:\n    warning(\"setuptools_scm not found, using version from _version.py\")\nexcept LookupError as e:\n    warning(f\"setuptools_scm failed to find git version, using version from _version.py: {e}\")\n\n\nextra_requires: Dict[str, List[str]] = {  # pylint: disable=consider-using-namedtuple-or-dataclass\n    'emukit': ['emukit'],\n    'skopt': ['scikit-optimize<=0.9.0'],  # FIXME: temporarily work around some version mismatch issues (PR 850)\n}\n\n# construct special 'full' extra that adds requirements for all built-in\n# backend integrations and additional extra features.\nextra_requires['full'] = list(set(chain(*extra_requires.values())))\n\nextra_requires['full-tests'] = extra_requires['full'] + [\n    'pytest',\n    'pytest-forked',\n    'pytest-xdist',\n    'pytest-cov',\n    'pytest-local-badge',\n]\n\n# pylint: disable=duplicate-code\nMODULE_BASE_NAME = 'mlos_core'\nsetup(\n    name='mlos-core',\n    version=_VERSION,\n    packages=find_packages(exclude=[f\"{MODULE_BASE_NAME}.tests\", f\"{MODULE_BASE_NAME}.tests.*\"]),\n    package_data={\n        '': ['py.typed', '**/*.pyi'],\n    },\n    install_requires=[\n        'scikit-learn<1.2',     # FIXME: temporarily work around some version mismatch issues (PR 850)\n        'joblib>=1.1.1',        # CVE-2022-21797: scikit-learn dependency, addressed in 1.2.0dev0, which isn't currently released\n        'scipy>=1.3.2',\n        'numpy<1.24',           # FIXME: temporarily work around some version mismatch issues (PR 850)\n        'pandas>=1.0.3',\n        'ConfigSpace>=0.6.1',\n    ],\n    extras_require=extra_requires,\n    author='Microsoft',\n    author_email='mlos-maintainers@service.microsoft.com',\n    description=('MLOS Core Python interface for parameter optimization.'),\n    license='MIT',\n    keywords='',\n    url='https://aka.ms/mlos-core',\n    python_requires='>=3.8',\n)\n", "path": "mlos_core/setup.py"}, {"content": "#\n# Copyright (c) Microsoft Corporation.\n# Licensed under the MIT License.\n#\n\"\"\"\nSetup instructions for the mlos_bench package.\n\"\"\"\n\nfrom logging import warning\nfrom itertools import chain\nfrom typing import Dict, List\n\nfrom setuptools import setup, find_packages\n\nfrom _version import _VERSION    # pylint: disable=import-private-name\n\ntry:\n    from setuptools_scm import get_version\n    version = get_version(root='..', relative_to=__file__)\n    if version is not None:\n        _VERSION = version  # noqa: F811\nexcept ImportError:\n    warning(\"setuptools_scm not found, using version from _version.py\")\nexcept LookupError as e:\n    warning(f\"setuptools_scm failed to find git version, using version from _version.py: {e}\")\n\n\nextra_requires: Dict[str, List[str]] = {    # pylint: disable=consider-using-namedtuple-or-dataclass\n    # Additional tools for extra functionality.\n    'azure': ['azure-storage-file-share'],\n    'storage-sql-duckdb': ['sqlalchemy', 'duckdb_engine'],\n    'storage-sql-mysql': ['sqlalchemy', 'mysql-connector-python'],\n    'storage-sql-postgres': ['sqlalchemy', 'psycopg2'],\n    'storage-sql-sqlite': ['sqlalchemy'],   # sqlite3 comes with python, so we don't need to install it.\n    # Transitive extra_requires from mlos-core.\n    'emukit': ['emukit'],\n    'skopt': ['scikit-optimize'],\n}\n\n# construct special 'full' extra that adds requirements for all built-in\n# backend integrations and additional extra features.\nextra_requires['full'] = list(set(chain(*extra_requires.values())))\n\nextra_requires['full-tests'] = extra_requires['full'] + [\n    'pytest',\n    'pytest-forked',\n    'pytest-xdist',\n    'pytest-cov',\n    'pytest-local-badge',\n]\n\n# pylint: disable=duplicate-code\nMODULE_BASE_NAME = 'mlos_bench'\nsetup(\n    name='mlos-bench',\n    version=_VERSION,\n    packages=find_packages(exclude=[f\"{MODULE_BASE_NAME}.tests\", f\"{MODULE_BASE_NAME}.tests.*\"]),\n    package_data={\n        '': ['py.typed', '**/*.pyi'],\n        'mlos_bench': [\n            'config/**/*.md',\n            'config/**/*.jsonc',\n            'config/**/*.json',\n            'config/**/*.py',\n            'config/**/*.sh',\n            'config/**/*.cmd',\n            'config/**/*.ps1',\n        ],\n    },\n    entry_points={\n        'console_scripts': [\n            'mlos_bench = mlos_bench.run:_main',\n        ],\n    },\n    install_requires=[\n        'mlos-core==' + _VERSION,\n        'requests',\n        'json5',\n        'jsonschema',\n        'importlib_resources;python_version<\"3.10\"',\n    ] + extra_requires['storage-sql-sqlite'],   # NOTE: For now sqlite is a fallback storage backend, so we always install it.\n    extras_require=extra_requires,\n    author='Microsoft',\n    author_email='mlos-maintainers@service.microsoft.com',\n    description=('MLOS Bench Python interface for benchmark automation and optimization.'),\n    license='MIT',\n    keywords='',\n    url='https://aka.ms/mlos-core',\n    python_requires='>=3.8',\n)\n", "path": "mlos_bench/setup.py"}]}