-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from AutoResearch/ci/update-pre-commit-hooks-a…
…nd-add-workflow ci: update pre-commit hooks and add workflow
- Loading branch information
Showing
11 changed files
with
805 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: Test pre-commit-hooks | ||
|
||
on: | ||
pull_request: | ||
merge_group: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.8' | ||
cache: 'pip' | ||
- run: pip install pre-commit | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: pre-commit-3|${{ env.pythonLocation }}|${{ runner.os }}|${{ hashFiles('.pre-commit-config.yaml') }} | ||
- run: pre-commit run --all-files --show-diff-on-failure --color=always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,37 @@ | ||
repos: | ||
- repo: https://github.com/ambv/black | ||
rev: 22.12.0 | ||
rev: 23.7.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
args: | ||
- "--profile=black" | ||
- "--filter-files" | ||
- "--project=autora" | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 6.0.0 | ||
rev: 6.1.0 | ||
hooks: | ||
- id: flake8 | ||
args: | ||
- "--max-line-length=100" | ||
- "--extend-ignore=E203" | ||
- "--per-file-ignores=__init__.py:F401" | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: "v0.991" | ||
rev: "v1.5.1" | ||
hooks: | ||
- id: mypy | ||
additional_dependencies: [types-requests] | ||
additional_dependencies: [types-requests,types-tqdm,autora-core,scipy,pytest] | ||
language_version: python3.8 | ||
args: | ||
- "--namespace-packages" | ||
- "--explicit-package-bases" | ||
- repo: https://github.com/srstevenson/nb-clean | ||
rev: 2.4.0 | ||
hooks: | ||
- id: nb-clean | ||
args: | ||
- --preserve-cell-outputs | ||
default_language_version: | ||
python: python3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from .model_search import DARTSType | ||
from .operations import PRIMITIVES | ||
from .regressor import DARTSRegressor, DARTSExecutionMonitor | ||
from .regressor import DARTSExecutionMonitor, DARTSRegressor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.