-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into multi-head-interface
- Loading branch information
Showing
35 changed files
with
911 additions
and
406 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Pre-Commit Checks | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
cache: "pip" | ||
- name: Install requirements | ||
run: | | ||
pip install -U pip | ||
pip install pylint | ||
pip install -U black | ||
pip install .[dev] | ||
pip install wandb | ||
pip install tqdm | ||
- name: Run black | ||
run: | | ||
python -m black . | ||
- uses: pre-commit/[email protected] |
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,36 @@ | ||
name: Release on tag | ||
|
||
on: | ||
push: | ||
tags: | ||
# After vMajor.Minor.Patch _anything_ is allowed (without "/") ! | ||
- v[0-9]+.[0-9]+.[0-9]+* | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'ACEsuit/mace' && startsWith(github.ref, 'refs/tags/v') | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
cache: "pip" | ||
|
||
- name: Build project for distribution | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install build | ||
python -m build | ||
- name: Create Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "dist/*" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
draft: false | ||
skipIfReleaseExists: true |
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,50 +1,58 @@ | ||
exclude: &exclude_files > | ||
(?x)^( | ||
docs/.*| | ||
tests/.*| | ||
.github/.*| | ||
LICENSE.md| | ||
README.md| | ||
)$ | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
rev: v2.5.0 | ||
hooks: | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: mixed-line-ending | ||
- id: trailing-whitespace | ||
exclude: *exclude_files | ||
|
||
- repo: https://github.com/psf/black-pre-commit-mirror | ||
rev: 23.12.1 | ||
rev: 24.4.0 | ||
hooks: | ||
- id: black | ||
name: Black Formating | ||
exclude: *exclude_files | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.13.2 | ||
hooks: | ||
- id: isort | ||
name: Sort imports | ||
exclude: *exclude_files | ||
|
||
# Failing - to be investigated separately | ||
# - repo: local | ||
# hooks: | ||
# - id: pylint | ||
# name: Pylint Checks | ||
# entry: pylint | ||
# language: system | ||
# types: [python] | ||
# args: | ||
# [ | ||
# "--rcfile=pyproject.toml", | ||
# "mace", | ||
# "tests", | ||
# "scripts" | ||
# ] | ||
|
||
# - repo: local | ||
# hooks: | ||
# - id: mypy | ||
# name: mypy type checks | ||
# entry: mypy | ||
# language: system | ||
# types: [python] | ||
# args: | ||
# [ | ||
# --config-file=.mypy.ini, | ||
# mace, | ||
# tests, | ||
# scripts | ||
# ] | ||
|
||
- repo: https://github.com/PyCQA/pylint | ||
rev: pylint-2.5.2 | ||
hooks: | ||
- id: pylint | ||
language: system | ||
args: [ | ||
'--disable=line-too-long', | ||
'--disable=no-member', | ||
'--disable=missing-module-docstring', | ||
'--disable=missing-class-docstring', | ||
'--disable=missing-function-docstring', | ||
'--disable=too-many-arguments', | ||
'--disable=too-many-locals', | ||
'--disable=not-callable', | ||
'--disable=logging-fstring-interpolation', | ||
'--disable=logging-not-lazy', | ||
'--disable=invalid-name', | ||
'--disable=too-few-public-methods', | ||
'--disable=too-many-instance-attributes', | ||
'--disable=too-many-statements', | ||
'--disable=too-many-branches', | ||
'--disable=import-outside-toplevel', | ||
'--disable=cell-var-from-loop', | ||
'--disable=duplicate-code', | ||
'--disable=use-dict-literal', | ||
] | ||
exclude: *exclude_files |
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 +1 @@ | ||
__version__ = "0.3.5" | ||
__version__ = "0.3.6" |
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.