Skip to content

Commit

Permalink
Merge branch 'master' into docs-typos-and-mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiebergman authored Jan 9, 2025
2 parents 05b0976 + 72a9315 commit 2e52061
Show file tree
Hide file tree
Showing 283 changed files with 12,933 additions and 22,065 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/pr-conventional-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: PR Conventional Commit Validation

on:
pull_request:
types: [opened, synchronize, reopened, edited]

jobs:
validate-pr-title:
runs-on: ubuntu-latest
steps:
- name: PR Conventional Commit Validation
uses: ytanikin/[email protected]
with:
task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert"]'
add_label: 'false'
17 changes: 11 additions & 6 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: install the latest version uv
uses: astral-sh/setup-uv@v3
with:
python-version: 3.8
- run: pip install pre-commit
- run: pre-commit install
- run: pre-commit run --all-files

version: latest
- name: create virtual environment
run: uv venv --python '3.10'
- name: install pre-commit
run: uv pip install pre-commit
- name: install pre-commit hooks
run: uv run pre-commit install
- name: Run pre-commit hooks
run: uv run pre-commit run --all-files
20 changes: 11 additions & 9 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
python-version: ['3.10', '3.11', '3.12']
os: [ubuntu-latest, macos-latest, windows-latest]
defaults:
run:
Expand All @@ -25,12 +25,14 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: pipx install poetry
- uses: actions/setup-python@v5
- name: install the latest version uv
uses: astral-sh/setup-uv@v3
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
cache-dependency-path: '**/pyproject.toml'
- run: poetry install
- run: poetry run pytest -m "" # Run all markers

version: latest
- name: create venv
run: uv venv --python ${{ matrix.python-version }}
- name: install dependencies
run: uv pip install -e ".[dev]"
- name: run tests
run: uv run pytest -m "" # Run all markers

10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Python
# False Python
__pycache__
dist
**/*.egg-info
uv.lock

# Log files
*.out
Expand All @@ -19,9 +21,6 @@ site/*
.vscode/
.idea/

# Poetry
poetry.lock

# Misc
*.sh
*.model
Expand All @@ -47,3 +46,6 @@ jahs_bench_data/

# Yaml tests
path

# From example that uses MNIST
.data
9 changes: 5 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ files: |
)/.*\.py$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-added-large-files
files: ".*"
Expand All @@ -27,7 +27,7 @@ repos:
files: '^src/.*\.py$'

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.1
rev: v1.14.1
hooks:
- id: mypy
files: |
Expand All @@ -36,13 +36,14 @@ repos:
)/.*\.py$
additional_dependencies:
- "types-pyyaml"
- "types-requests"
args:
- "--no-warn-return-any" # Disable this because it doesn't know about 3rd party imports
- "--ignore-missing-imports"
- "--show-traceback"

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.1
rev: 0.31.0
hooks:
- id: check-github-workflows
files: '^github/workflows/.*\.ya?ml$'
Expand All @@ -51,7 +52,7 @@ repos:
files: '^\.github/dependabot\.ya?ml$'

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.5.5
rev: v0.8.6
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --no-cache]
Expand Down
8 changes: 2 additions & 6 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,9 @@ authors:
given-names: Carl
- family-names: Binxin
given-names: Ru
- family-names: Kober
given-names: Nils
- family-names: Vallaeys
given-names: Théophane
- family-names: Hutter
given-names: Frank
title: "Neural Pipeline Search (NePS)"
version: 0.12.1
date-released: 2024-07-03
version: 0.12.2
date-released: 2024-07-09
url: "https://github.com/automl/neps"
Loading

0 comments on commit 2e52061

Please sign in to comment.