├── .github └── workflows │ └── ci.yaml ├── .gitignore ├── README.md ├── cog_safe_push ├── __init__.py ├── ai.py ├── cog.py ├── config.py ├── deployment.py ├── exceptions.py ├── lint.py ├── log.py ├── main.py ├── match_outputs.py ├── official_model.py ├── output_checkers.py ├── predict.py ├── schema.py ├── task_context.py ├── tasks.py └── utils.py ├── ellipsis.yaml ├── end-to-end-test ├── fixtures │ ├── additive-schema-fuzz-error │ │ ├── .dockerignore │ │ ├── cog.yaml │ │ └── predict.py │ ├── base │ │ ├── .dockerignore │ │ ├── cog.yaml │ │ └── predict.py │ ├── image-base-seed │ │ ├── .dockerignore │ │ ├── cog.yaml │ │ └── predict.py │ ├── image-base │ │ ├── .dockerignore │ │ ├── cog.yaml │ │ └── predict.py │ ├── incompatible-schema │ │ ├── .dockerignore │ │ ├── cog.yaml │ │ └── predict.py │ ├── outputs-dont-match │ │ ├── .dockerignore │ │ ├── cog.yaml │ │ └── predict.py │ ├── same-schema │ │ ├── .dockerignore │ │ ├── cog.yaml │ │ └── predict.py │ ├── schema-lint-error │ │ ├── .dockerignore │ │ ├── cog.yaml │ │ └── predict.py │ └── train │ │ ├── .dockerignore │ │ ├── cog.yaml │ │ ├── predict.py │ │ └── train.py └── test_end_to_end.py ├── integration-test ├── assets │ └── images │ │ ├── negative │ │ ├── 100x100 png image of a formula one car.png │ │ ├── 100x100 png image.png │ │ ├── 480x320px image of a bicycle.png │ │ ├── A blue bird.webp │ │ ├── A cat.webp │ │ ├── A png image of a formula one car.jpg │ │ ├── A png image.jpg │ │ ├── A webp image of a blue bird.webp │ │ ├── A webp image of a cat.webp │ │ ├── Motorcycle.jpg │ │ ├── a jpg image of a formula one car.png │ │ ├── a train.jpg │ │ ├── a webp image of a road.jpg │ │ ├── a wheel.png │ │ └── horse.jpg │ │ └── positive │ │ ├── 480x320 png image of a formula one car.png │ │ ├── 480x320 png image.png │ │ ├── 480x320px image of a formula one car.png │ │ ├── A bird.webp │ │ ├── A jpg image of a formula one car.jpg │ │ ├── A jpg image.jpg │ │ ├── A red bird.webp │ │ ├── A webp image of a bird.webp │ │ ├── A webp image of a red bird.webp │ │ ├── Formula 1 car.jpg │ │ ├── a formula one car.jpg │ │ ├── a png image of a formula one car.png │ │ ├── a png image.png │ │ ├── a webp image of a car.jpg │ │ └── car.jpg ├── pytest.ini ├── test_non_matching_images.py └── test_output_matches_prompt.py ├── pyrightconfig.json ├── requirements-test.txt ├── ruff.toml ├── script ├── end-to-end-test ├── format ├── generate-readme ├── integration-test ├── lint └── unit-test ├── setup.py └── test ├── pytest.ini ├── test_deployment.py ├── test_main.py ├── test_match_outputs.py ├── test_output_checkers.py ├── test_predict.py └── test_schema.py /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/.github/workflows/ci.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/README.md -------------------------------------------------------------------------------- /cog_safe_push/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cog_safe_push/ai.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/cog_safe_push/ai.py -------------------------------------------------------------------------------- /cog_safe_push/cog.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/cog_safe_push/cog.py -------------------------------------------------------------------------------- /cog_safe_push/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/cog_safe_push/config.py -------------------------------------------------------------------------------- /cog_safe_push/deployment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/cog_safe_push/deployment.py -------------------------------------------------------------------------------- /cog_safe_push/exceptions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/cog_safe_push/exceptions.py -------------------------------------------------------------------------------- /cog_safe_push/lint.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/cog_safe_push/lint.py -------------------------------------------------------------------------------- /cog_safe_push/log.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/cog_safe_push/log.py -------------------------------------------------------------------------------- /cog_safe_push/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/cog_safe_push/main.py -------------------------------------------------------------------------------- /cog_safe_push/match_outputs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/cog_safe_push/match_outputs.py -------------------------------------------------------------------------------- /cog_safe_push/official_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/cog_safe_push/official_model.py -------------------------------------------------------------------------------- /cog_safe_push/output_checkers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/cog_safe_push/output_checkers.py -------------------------------------------------------------------------------- /cog_safe_push/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/cog_safe_push/predict.py -------------------------------------------------------------------------------- /cog_safe_push/schema.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/cog_safe_push/schema.py -------------------------------------------------------------------------------- /cog_safe_push/task_context.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/cog_safe_push/task_context.py -------------------------------------------------------------------------------- /cog_safe_push/tasks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/cog_safe_push/tasks.py -------------------------------------------------------------------------------- /cog_safe_push/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/cog_safe_push/utils.py -------------------------------------------------------------------------------- /ellipsis.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/ellipsis.yaml -------------------------------------------------------------------------------- /end-to-end-test/fixtures/additive-schema-fuzz-error/.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/additive-schema-fuzz-error/.dockerignore -------------------------------------------------------------------------------- /end-to-end-test/fixtures/additive-schema-fuzz-error/cog.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/additive-schema-fuzz-error/cog.yaml -------------------------------------------------------------------------------- /end-to-end-test/fixtures/additive-schema-fuzz-error/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/additive-schema-fuzz-error/predict.py -------------------------------------------------------------------------------- /end-to-end-test/fixtures/base/.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/base/.dockerignore -------------------------------------------------------------------------------- /end-to-end-test/fixtures/base/cog.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/base/cog.yaml -------------------------------------------------------------------------------- /end-to-end-test/fixtures/base/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/base/predict.py -------------------------------------------------------------------------------- /end-to-end-test/fixtures/image-base-seed/.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/image-base-seed/.dockerignore -------------------------------------------------------------------------------- /end-to-end-test/fixtures/image-base-seed/cog.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/image-base-seed/cog.yaml -------------------------------------------------------------------------------- /end-to-end-test/fixtures/image-base-seed/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/image-base-seed/predict.py -------------------------------------------------------------------------------- /end-to-end-test/fixtures/image-base/.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/image-base/.dockerignore -------------------------------------------------------------------------------- /end-to-end-test/fixtures/image-base/cog.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/image-base/cog.yaml -------------------------------------------------------------------------------- /end-to-end-test/fixtures/image-base/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/image-base/predict.py -------------------------------------------------------------------------------- /end-to-end-test/fixtures/incompatible-schema/.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/incompatible-schema/.dockerignore -------------------------------------------------------------------------------- /end-to-end-test/fixtures/incompatible-schema/cog.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/incompatible-schema/cog.yaml -------------------------------------------------------------------------------- /end-to-end-test/fixtures/incompatible-schema/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/incompatible-schema/predict.py -------------------------------------------------------------------------------- /end-to-end-test/fixtures/outputs-dont-match/.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/outputs-dont-match/.dockerignore -------------------------------------------------------------------------------- /end-to-end-test/fixtures/outputs-dont-match/cog.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/outputs-dont-match/cog.yaml -------------------------------------------------------------------------------- /end-to-end-test/fixtures/outputs-dont-match/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/outputs-dont-match/predict.py -------------------------------------------------------------------------------- /end-to-end-test/fixtures/same-schema/.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/same-schema/.dockerignore -------------------------------------------------------------------------------- /end-to-end-test/fixtures/same-schema/cog.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/same-schema/cog.yaml -------------------------------------------------------------------------------- /end-to-end-test/fixtures/same-schema/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/same-schema/predict.py -------------------------------------------------------------------------------- /end-to-end-test/fixtures/schema-lint-error/.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/schema-lint-error/.dockerignore -------------------------------------------------------------------------------- /end-to-end-test/fixtures/schema-lint-error/cog.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/schema-lint-error/cog.yaml -------------------------------------------------------------------------------- /end-to-end-test/fixtures/schema-lint-error/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/schema-lint-error/predict.py -------------------------------------------------------------------------------- /end-to-end-test/fixtures/train/.dockerignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/train/.dockerignore -------------------------------------------------------------------------------- /end-to-end-test/fixtures/train/cog.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/train/cog.yaml -------------------------------------------------------------------------------- /end-to-end-test/fixtures/train/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/train/predict.py -------------------------------------------------------------------------------- /end-to-end-test/fixtures/train/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/fixtures/train/train.py -------------------------------------------------------------------------------- /end-to-end-test/test_end_to_end.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/end-to-end-test/test_end_to_end.py -------------------------------------------------------------------------------- /integration-test/assets/images/negative/100x100 png image of a formula one car.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/negative/100x100 png image of a formula one car.png -------------------------------------------------------------------------------- /integration-test/assets/images/negative/100x100 png image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/negative/100x100 png image.png -------------------------------------------------------------------------------- /integration-test/assets/images/negative/480x320px image of a bicycle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/negative/480x320px image of a bicycle.png -------------------------------------------------------------------------------- /integration-test/assets/images/negative/A blue bird.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/negative/A blue bird.webp -------------------------------------------------------------------------------- /integration-test/assets/images/negative/A cat.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/negative/A cat.webp -------------------------------------------------------------------------------- /integration-test/assets/images/negative/A png image of a formula one car.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/negative/A png image of a formula one car.jpg -------------------------------------------------------------------------------- /integration-test/assets/images/negative/A png image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/negative/A png image.jpg -------------------------------------------------------------------------------- /integration-test/assets/images/negative/A webp image of a blue bird.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/negative/A webp image of a blue bird.webp -------------------------------------------------------------------------------- /integration-test/assets/images/negative/A webp image of a cat.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/negative/A webp image of a cat.webp -------------------------------------------------------------------------------- /integration-test/assets/images/negative/Motorcycle.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/negative/Motorcycle.jpg -------------------------------------------------------------------------------- /integration-test/assets/images/negative/a jpg image of a formula one car.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/negative/a jpg image of a formula one car.png -------------------------------------------------------------------------------- /integration-test/assets/images/negative/a train.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/negative/a train.jpg -------------------------------------------------------------------------------- /integration-test/assets/images/negative/a webp image of a road.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/negative/a webp image of a road.jpg -------------------------------------------------------------------------------- /integration-test/assets/images/negative/a wheel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/negative/a wheel.png -------------------------------------------------------------------------------- /integration-test/assets/images/negative/horse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/negative/horse.jpg -------------------------------------------------------------------------------- /integration-test/assets/images/positive/480x320 png image of a formula one car.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/positive/480x320 png image of a formula one car.png -------------------------------------------------------------------------------- /integration-test/assets/images/positive/480x320 png image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/positive/480x320 png image.png -------------------------------------------------------------------------------- /integration-test/assets/images/positive/480x320px image of a formula one car.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/positive/480x320px image of a formula one car.png -------------------------------------------------------------------------------- /integration-test/assets/images/positive/A bird.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/positive/A bird.webp -------------------------------------------------------------------------------- /integration-test/assets/images/positive/A jpg image of a formula one car.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/positive/A jpg image of a formula one car.jpg -------------------------------------------------------------------------------- /integration-test/assets/images/positive/A jpg image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/positive/A jpg image.jpg -------------------------------------------------------------------------------- /integration-test/assets/images/positive/A red bird.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/positive/A red bird.webp -------------------------------------------------------------------------------- /integration-test/assets/images/positive/A webp image of a bird.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/positive/A webp image of a bird.webp -------------------------------------------------------------------------------- /integration-test/assets/images/positive/A webp image of a red bird.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/positive/A webp image of a red bird.webp -------------------------------------------------------------------------------- /integration-test/assets/images/positive/Formula 1 car.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/positive/Formula 1 car.jpg -------------------------------------------------------------------------------- /integration-test/assets/images/positive/a formula one car.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/positive/a formula one car.jpg -------------------------------------------------------------------------------- /integration-test/assets/images/positive/a png image of a formula one car.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/positive/a png image of a formula one car.png -------------------------------------------------------------------------------- /integration-test/assets/images/positive/a png image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/positive/a png image.png -------------------------------------------------------------------------------- /integration-test/assets/images/positive/a webp image of a car.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/positive/a webp image of a car.jpg -------------------------------------------------------------------------------- /integration-test/assets/images/positive/car.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/assets/images/positive/car.jpg -------------------------------------------------------------------------------- /integration-test/pytest.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/pytest.ini -------------------------------------------------------------------------------- /integration-test/test_non_matching_images.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/test_non_matching_images.py -------------------------------------------------------------------------------- /integration-test/test_output_matches_prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/integration-test/test_output_matches_prompt.py -------------------------------------------------------------------------------- /pyrightconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/pyrightconfig.json -------------------------------------------------------------------------------- /requirements-test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/requirements-test.txt -------------------------------------------------------------------------------- /ruff.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/ruff.toml -------------------------------------------------------------------------------- /script/end-to-end-test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/script/end-to-end-test -------------------------------------------------------------------------------- /script/format: -------------------------------------------------------------------------------- 1 | #!/bin/bash -eu 2 | 3 | ruff format 4 | -------------------------------------------------------------------------------- /script/generate-readme: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/script/generate-readme -------------------------------------------------------------------------------- /script/integration-test: -------------------------------------------------------------------------------- 1 | #!/bin/bash -eu 2 | 3 | pytest -n8 -s integration-test/ 4 | -------------------------------------------------------------------------------- /script/lint: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/script/lint -------------------------------------------------------------------------------- /script/unit-test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/script/unit-test -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/setup.py -------------------------------------------------------------------------------- /test/pytest.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/test/pytest.ini -------------------------------------------------------------------------------- /test/test_deployment.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/test/test_deployment.py -------------------------------------------------------------------------------- /test/test_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/test/test_main.py -------------------------------------------------------------------------------- /test/test_match_outputs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/test/test_match_outputs.py -------------------------------------------------------------------------------- /test/test_output_checkers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/test/test_output_checkers.py -------------------------------------------------------------------------------- /test/test_predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/test/test_predict.py -------------------------------------------------------------------------------- /test/test_schema.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/replicate/cog-safe-push/HEAD/test/test_schema.py --------------------------------------------------------------------------------