Skip to content

Commit

Permalink
chore: pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
crismunoz committed Nov 8, 2024
1 parent 4d4b36c commit feb68e5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 29 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: Deploy Documentation to GitHub Pages

on:
push:
branches:
- main # Cambia a la rama principal de tu proyecto si es diferente
paths:
- 'docs/**' # Si tus archivos de documentación están en una carpeta específica, ajústalo
workflow_dispatch:

jobs:
build-and-deploy:
Expand Down Expand Up @@ -33,5 +29,5 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html # Ajusta al directorio donde se genera tu documentación
publish_branch: gh-pages # La rama donde se publicará, por defecto es gh-pages
publish_dir: ./docs/build
publish_branch: gh-pages
41 changes: 19 additions & 22 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["hatchling"]
build-backend = "hatchling.build"

[project]
name = "holisticai"
name = "holistic"
dynamic = ["version"]
description = ''
readme = "README.md"
Expand All @@ -22,39 +22,34 @@ classifiers = [
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"scikit-learn>=1.0.2",
"pandas",
"matplotlib",
"networkx>=3.1",
"seaborn",
"numpy>=1.25",
"pybind11>=2.12",
]
dependencies = [
"requests==2.31.0",
"dill==0.3.6"
]

[project.optional-dependencies]
bias = ["networkx>=3.1", "pygad==3.3.1", "jax>=0.4.30", "jaxopt>=0.8.3", "optax>=0.2.3", "flax>=0.8.5"]
bias = ["scikit-learn>=1.0.2", "pygad==3.3.1", "jax>=0.4.30", "optax>=0.2.3", "flax>=0.8.5", "pandas", "matplotlib", "seaborn", "numpy>=1.25"]
explainability = ["lime>=0.2.0.1", "shap>=0.42.1"]
security = ["jax>=0.4.30", "jaxopt>=0.8.3"]
all = ["networkx>=3.1", "pygad==3.3.1", "lime>=0.2.0.1", "shap>=0.42.1", "jax>=0.4.30", "jaxopt>=0.8.3", "optax>=0.2.3", "flax>=0.8.5"]
security = ["jax>=0.4.30"]
all = ["networkx>=3.1", "pygad==3.3.1", "lime>=0.2.0.1", "shap>=0.42.1", "jax>=0.4.30", "optax>=0.2.3", "flax>=0.8.5"]

[project.urls]
Documentation = "https://github.com/holistic-ai/holisticai#readme"
Issues = "https://github.com/holistic-ai/holisticai/issues"
Source = "https://github.com/holistic-ai/holisticai"

[tool.hatch.version]
path = "src/holisticai/__about__.py"
path = "src/holistic/__about__.py"

[tool.coverage.run]
source_pkgs = ["holisticai", "tests"]
source_pkgs = ["holistic", "tests"]
branch = true
parallel = true
omit = ["src/holisticai/__about__.py"]
omit = ["src/holistic/__about__.py"]

[tool.coverage.paths]
holistic_ai = ["src/holisticai", "*/holisticai/src/holisticai"]
tests = ["tests", "*/holisticai/tests"]
holistic_ai = ["src/holistic", "*/holisticai-sdk/src/holistic"]
tests = ["tests", "*/holistic/tests"]

[tool.coverage.report]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]
Expand All @@ -64,7 +59,7 @@ config-path = "ruff_default.toml"

[tool.ruff]
extend = "ruff_default.toml"
exclude = ["docs/**", "tests/**", "tutorials/**", "src/holisticai/utils/trade_off_analysers/**"]
exclude = ["docs/**", "tests/**", "tutorials/**", "src/holistic/utils/trade_off_analysers/**"]

[tool.hatch.envs.sphinx]
inherit = ["all"]
Expand All @@ -83,7 +78,8 @@ dependencies = [
"pandas",
"numpy==1.26",
"pybind11>=2.12",

"matplotlib",
"seaborn",
"jax",
"jaxopt",
"optax",
Expand Down Expand Up @@ -116,7 +112,8 @@ dependencies = [
"jax",
"jaxopt",
"optax",
"flax"
"flax",
"requests"
]
env-vars = { PYTHONPATH = "src" }

Expand All @@ -128,4 +125,4 @@ foo = ["which python"]
env-vars = { PYTHONPATH = "src" }

[tool.hatch.build.targets.wheel]
packages = ["src/holisticai"]
packages = ["src/holistic"]

0 comments on commit feb68e5

Please sign in to comment.