Spaces:
Runtime error
Runtime error
update project
Browse files- .pre-commit-config.yaml +34 -0
- .python-version +1 -0
- poetry.lock +0 -0
- poetry.toml +2 -0
- pyproject.toml +53 -0
.pre-commit-config.yaml
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# See https://pre-commit.com for more information
|
2 |
+
# See https://pre-commit.com/hooks.html for more hooks
|
3 |
+
repos:
|
4 |
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
5 |
+
rev: v4.4.0
|
6 |
+
hooks:
|
7 |
+
- id: trailing-whitespace
|
8 |
+
- id: end-of-file-fixer
|
9 |
+
- id: check-yaml
|
10 |
+
# - id: check-added-large-files
|
11 |
+
- repo: https://github.com/psf/black
|
12 |
+
rev: 23.3.0
|
13 |
+
hooks:
|
14 |
+
# - id: black
|
15 |
+
- id: black-jupyter
|
16 |
+
- repo: https://github.com/pycqa/isort
|
17 |
+
rev: 5.12.0
|
18 |
+
hooks:
|
19 |
+
- id: isort
|
20 |
+
name: isort (python)
|
21 |
+
- repo: https://github.com/asottile/pyupgrade
|
22 |
+
rev: v3.3.1
|
23 |
+
hooks:
|
24 |
+
- id: pyupgrade
|
25 |
+
args: [--py311-plus]
|
26 |
+
- repo: https://github.com/nbQA-dev/nbQA
|
27 |
+
rev: 1.7.0
|
28 |
+
hooks:
|
29 |
+
- id: nbqa-isort
|
30 |
+
- id: nbqa-black
|
31 |
+
- id: nbqa-pyupgrade
|
32 |
+
args: [--py311-plus]
|
33 |
+
default_language_version:
|
34 |
+
python: python3.11
|
.python-version
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
3.11.1
|
poetry.lock
ADDED
The diff for this file is too large to render.
See raw diff
|
|
poetry.toml
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
[virtualenvs]
|
2 |
+
in-project = true
|
pyproject.toml
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[tool.poetry]
|
2 |
+
name = "sklearn-decision-tree-regression"
|
3 |
+
version = "0.1.0"
|
4 |
+
description = "Hugging Face Scikit Learn Demos"
|
5 |
+
authors = ["Niels van Galen Last <nvangalenlast@gmail.com>"]
|
6 |
+
license = "MIT"
|
7 |
+
readme = "README.md"
|
8 |
+
# packages = [{ include = "huggingface_sklearn" }]
|
9 |
+
|
10 |
+
[tool.poetry.dependencies]
|
11 |
+
python = ">=3.8.9,<3.12"
|
12 |
+
numpy = "^1.24.2"
|
13 |
+
scikit-learn = "^1.2.2"
|
14 |
+
matplotlib = "^3.7.1"
|
15 |
+
plotly = "^5.14.0"
|
16 |
+
gradio = "^3.24.1"
|
17 |
+
|
18 |
+
|
19 |
+
[tool.poetry.group.dev.dependencies]
|
20 |
+
black = { extras = ["jupyter"], version = "^23.3.0" }
|
21 |
+
isort = "^5.12.0"
|
22 |
+
pre-commit = "^3.2.1"
|
23 |
+
pylint = "^2.17.1"
|
24 |
+
pytest = "^7.2.2"
|
25 |
+
jupyterlab = "^3.6.3"
|
26 |
+
jupyterlab-widgets = "^3.0.7"
|
27 |
+
ipywidgets = "^8.0.6"
|
28 |
+
|
29 |
+
[build-system]
|
30 |
+
requires = ["poetry-core"]
|
31 |
+
build-backend = "poetry.core.masonry.api"
|
32 |
+
|
33 |
+
[tool.black]
|
34 |
+
line-length = 100
|
35 |
+
target_version = ['py311']
|
36 |
+
include = '\.py$'
|
37 |
+
|
38 |
+
[tool.isort]
|
39 |
+
profile = "black"
|
40 |
+
# force_single_line = "false"
|
41 |
+
force_sort_within_sections = "true"
|
42 |
+
line_length = 100
|
43 |
+
|
44 |
+
[tool.pylint]
|
45 |
+
[tool.pylint.messages_control]
|
46 |
+
#line-too-long='off'
|
47 |
+
disable = """
|
48 |
+
invalid-name,
|
49 |
+
logging-fstring-interpolation,
|
50 |
+
missing-class-docstring,
|
51 |
+
missing-function-docstring,
|
52 |
+
missing-module-docstring,
|
53 |
+
"""
|