Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for cli_main (0.07 seconds)

  1. fastapi/cli.py

    except ImportError:  # pragma: no cover
        cli_main = None  # type: ignore
    
    
    def main() -> None:
        if not cli_main:  # type: ignore[truthy-function]  # ty: ignore[unused-ignore-comment]
            message = 'To use the fastapi command, please install "fastapi[standard]":\n\n\tpip install "fastapi[standard]"\n'
            print(message)
            raise RuntimeError(message)  # noqa: B904
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 15 11:44:39 GMT 2026
    - 455 bytes
    - Click Count (0)
  2. tests/test_fastapi_cli.py

        )
        assert result.returncode == 1, result.stdout
        assert "Path does not exist non_existent_file.py" in result.stdout
    
    
    def test_fastapi_cli_not_installed():
        with patch.object(fastapi.cli, "cli_main", None):
            with pytest.raises(RuntimeError) as exc_info:
                fastapi.cli.main()
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Dec 02 04:02:38 GMT 2025
    - 866 bytes
    - Click Count (0)
  3. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ThirdPartyAuditTask.java

        private static final int SIG_KILL_EXIT_VALUE = 137;
        private static final List<Integer> EXPECTED_EXIT_CODES = Arrays.asList(
            CliMain.EXIT_SUCCESS,
            CliMain.EXIT_VIOLATION,
            CliMain.EXIT_UNSUPPORTED_JDK
        );
        private static final String JDK_JAR_HELL_MAIN_CLASS = "org.elasticsearch.jdk.JdkJarHellCheck";
    
        private Set<String> missingClassExcludes = new TreeSet<>();
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Jun 17 08:59:22 GMT 2021
    - 16.2K bytes
    - Click Count (0)
  4. pyproject.toml

        "uvicorn[standard] >=0.12.0",
        # Settings management
        "pydantic-settings >=2.0.0",
        # Extra Pydantic data types
        "pydantic-extra-types >=2.0.0",
    ]
    
    [project.scripts]
    fastapi = "fastapi.cli:main"
    
    [dependency-groups]
    dev = [
        { include-group = "tests" },
        { include-group = "docs" },
        { include-group = "translations" },
        "playwright >=1.57.0",
        "prek >=0.2.22",
    ]
    docs = [
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 23 12:36:49 GMT 2026
    - 10.3K bytes
    - Click Count (0)
Back to Top