Skip to content

Commit

Permalink
bump actions, python version
Browse files Browse the repository at this point in the history
  • Loading branch information
pfistfl committed Apr 3, 2024
1 parent d518912 commit 8fe61a8
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.10
- name: Install dependencies
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/unittests_gym_py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.10
- name: Clone required data
Expand All @@ -18,6 +18,7 @@ jobs:
- name: Prepare [python]
run: |
cd ~/work/yahpo_gym/yahpo_gym/yahpo_gym
pip install --upgrade pip
pip install -e .[test]
printf "data_path: ~/work/yahpo_data\n" >> ~/.config/yahpo_gym
- name: Run yahpo_gym tests [python]
Expand Down
53 changes: 53 additions & 0 deletions yahpo_gym/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "yahpo-gym"
dynamic = ["version"]
description = "Inference module for the YAHPO Gym"
readme = "README.md"
authors = [
{ name = "Florian Pfisterer" },
{ name = "Lennart Schneider" },
]
keywords = [
"module",
"inference",
"yahpo",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"onnxruntime>=1.10.0",
"pyyaml",
"configspace<=0.6.1",
"pandas"
]

[project.urls]
Homepage = "https://github.com/slds-lmu/yahpo_gym"


[tool.ruff]
line-length = 200
include = ["pyproject.toml", "yahpo_gym/*.py"]
indent-width = 4
target-version = "py310"
fix = true
unsafe-fixes = true

[tool.isort]
profile = "black"
multi_line_output = 3

[tool.mypy]
check_untyped_defs = true
ignore_missing_imports = true
67 changes: 67 additions & 0 deletions yahpo_train/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "yahpo-train"
dynamic = ["version"]
description = "Train surrogate models for the YAHPO Gym"
readme = "README.md"
authors = [
{ name = "Florian Pfisterer" },
{ name = "Lennart Schneider" },
]
keywords = [
"module",
"train",
"yahpo",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"fastai",
"numpy",
"onnx>=1.14.0",
"optuna",
"pandas",
"scikit-learn",
"scipy",
"torch>=1.0.0",
"yahpo_gym @ git+https://github.com/slds-lmu/yahpo_gym#egg=yahpo_gym&subdirectory=yahpo_gym",
]

[project.urls]
Homepage = "https://github.com/slds-lmu/yahpo_gym"

[tool.ruff]
line-length = 200
include = ["pyproject.toml", "yahpo_train/*.py"]
indent-width = 4
target-version = "py310"
fix = true
unsafe-fixes = true


[tool.ruff.lint]
select = ["E", "F", "W", "PLC", "PLE", "PLW", "I"]
ignore = []
fixable = ["ALL"]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"


[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"

[tool.isort]
profile = "black"

0 comments on commit 8fe61a8

Please sign in to comment.