Spaces:
Runtime error
Runtime error
Abhishek Thakur commited on
Commit ·
98cb1cd
1
Parent(s): 42c2745
bump version
Browse filesFiles changed (6)
1223459 unmodified lines1516171819202122CFLAGS += -std=c99 -Wall.PHONY: quality style.PHONY: quality style test
quality: python -m black --check --line-length 119 --target-version py38 .9 unmodified lines docker tag competitions:latest huggingface/competitions:latest docker push huggingface/competitions:latest
test: pytest -sv ./competitions/
socket-kit.so: socket-kit.c gcc $(CFLAGS) -shared -fPIC $^ -o $@ -ldl12344567import os
__version__ = "0.1.3.dev0"__version__ = "0.1.4.dev0"
MOONLANDING_URL = os.getenv("MOONLANDING_URL", "https://huggingface.co")COMPETITION_ID = os.getenv("COMPETITION_ID")28 unmodified lines29303132333235363733343528 unmodified lines exit(1)
command = args.func(args)
# try: command.run() # except Exception as e: # logger.error(e) # sys.exit(1)
if __name__ == "__main__":10 unmodified lines1112131414151718192021222316171810 unmodified lines @staticmethod def register_subcommand(parser: ArgumentParser): create_project_parser = parser.add_parser("run", description="✨ Run competitions app") # create_project_parser.add_argument("--name", type=str, default=None, required=True, help="The project's name") create_project_parser.set_defaults(func=run_app_command_factory)
# def __init__(self): # self._name = name # self._task = task # self._lang = language # self._max_models = max_models # self._hub_model = hub_model
def run(self): from ..competitions import demo
12def test_dummy(): assert 1 + 1 == 214 unmodified lines15161718192021181920212223242 unmodified lines27282930313233343536303139323334358 unmodified lines444546474849503 unmodified lines54555663575859606162636465666714 unmodified lines LONG_DESCRIPTION = f.read()
QUALITY_REQUIRE = [ "black~=22.0", "isort==5.8.0", "flake8==3.9.2", "mypy==0.901", "black~=23.0", "isort==5.13.2", "flake8==7.0.0", "mypy==1.8.0",]
TEST_REQUIRE = ["pytest", "pytest-cov"]2 unmodified lines "dev": QUALITY_REQUIRE, "quality": QUALITY_REQUIRE, "test": TEST_REQUIRE, "docs": [ "recommonmark", "sphinx==3.1.2", "sphinx-markdown-tables", "sphinx-rtd-theme==0.4.3", "sphinx-copybutton", ],}
with open("requirements.txt") as f:with open("requirements.txt", encoding="utf-8") as f: INSTALL_REQUIRES = f.read().splitlines()
setup(8 unmodified lines install_requires=INSTALL_REQUIRES, extras_require=EXTRAS_REQUIRE, python_requires=">=3.10", license="Apache 2.0", classifiers=[ "Intended Audience :: Developers", "Intended Audience :: Education",3 unmodified lines "Programming Language :: Python :: 3.10", "Topic :: Scientific/Engineering :: Artificial Intelligence", ], keywords="huggingface competitions machine learning ai nlp", keywords="huggingface competitions machine learning ai nlp tabular", data_files=[ ( "templates", [ "competitions/templates/index.html", ], ), ], include_package_data=True,)Makefile+3-1
competitions/__init__.py+1-1
competitions/cli/competitions.py-5
competitions/cli/run.py-8
competitions/tests/test_dummy.pyAdded+2
setup.py+16-13