-
Notifications
You must be signed in to change notification settings - Fork 37
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 #96 from aiidateam/tutorial_2019_05
add tutorial 2019-05 on writing reproducible workflows
- Loading branch information
Showing
164 changed files
with
43,050 additions
and
974 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 |
---|---|---|
@@ -1,3 +1,10 @@ | ||
*~ | ||
.DS_Store | ||
*.swp | ||
*.pyc | ||
|
||
.vscode | ||
docs/build | ||
docs/_build | ||
|
||
.ipynb_checkpoints |
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,38 @@ | ||
# # Install pre-commit hooks via | ||
# pre-commit install | ||
|
||
# modernizer: make sure our code-base is Python 3 ready | ||
- repo: https://github.com/python-modernize/python-modernize.git | ||
sha: 5650894e684250b8dd7a7d552adeea98eb8663ba | ||
hooks: | ||
- id: python-modernize | ||
exclude: &exclude_files > | ||
(?x)^( | ||
docs/pages/2019_molsim_school_Amsterdam/assets/raspa_loading.py| | ||
docs/assets/2018_PRACE_MaX/latex/de-macro.py| | ||
docs/pages/2019_MARVEL_Psik_MaX/sections/include/snippets/.*| | ||
docs/pages/2019_molsim_school_Amsterdam/assets/multiply_unitcell.py | ||
)$ | ||
args: | ||
- --write | ||
- --nobackups | ||
|
||
- repo: local | ||
hooks: | ||
# yapf = yet another python formatter | ||
- id: yapf | ||
name: yapf | ||
entry: yapf | ||
language: system | ||
types: [python] | ||
args: ["-i"] | ||
exclude: *exclude_files | ||
|
||
# prospector: collection of linters | ||
- id: prospector | ||
language: system | ||
types: [file, python] | ||
name: prospector | ||
description: "This hook runs Prospector: https://github.com/landscapeio/prospector" | ||
entry: prospector | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[MESSAGES CONTROL] | ||
|
||
# Disable the message, report, category or checker with the given id(s). You | ||
# can either give multiple identifiers separated by comma (,) or put this | ||
# option multiple times (only on the command line, not in the configuration | ||
# file where it should appear only once). You can also use "--disable=all" to | ||
# disable everything first and then reenable specific checks. For example, if | ||
# you want to run only the similarities checker, you can use "--disable=all | ||
# --enable=similarities". If you want to run only the classes checker, but have | ||
# no Warning level messages displayed, use "--disable=all --enable=classes | ||
# --disable=W". | ||
disable=import-error, | ||
locally-disabled, | ||
invalid-name, | ||
relative-beyond-top-level | ||
|
||
|
||
[FORMAT] | ||
|
||
# Maximum number of characters on a single line. | ||
max-line-length=120 |
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,14 +1,44 @@ | ||
language: python | ||
python: | ||
- "2.7" | ||
- "3.6" | ||
sudo: required | ||
- "3.6" | ||
|
||
before_install: | ||
- sudo apt-get install pandoc | ||
addons: | ||
apt: | ||
packages: | ||
# for jupyter notebook rendering | ||
- pandoc | ||
# for building latex/pdf | ||
- texlive-base | ||
- texlive-generic-recommended | ||
- texlive-fonts-recommended | ||
- texlive-latex-base | ||
- texlive-latex-recommended | ||
- texlive-latex-extra | ||
- latexmk | ||
- latex-xcolor | ||
- dvipng | ||
- dvidvi | ||
|
||
env: | ||
matrix: | ||
- BUILD: docs | ||
TARGET: html | ||
SPHINXOPTS: -W | ||
- BUILD: docs | ||
TARGET: latexpdf | ||
- BUILD: pre-commit | ||
|
||
install: | ||
- pip install --upgrade pip | ||
- pip install -r docs/requirements.txt | ||
- pip install -r requirements.txt | ||
|
||
script: cd docs; make | ||
script: | ||
- > | ||
if [ "$BUILD" == "docs" ]; then | ||
# -C docs: switch to docs/ directory | ||
make -C docs pre-docs | ||
make -C docs $TARGET | ||
else | ||
pre-commit install | ||
pre-commit run --all-files || ( git status --short; git diff ; exit 1 ) | ||
fi |
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
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,8 @@ | ||
div.highlight-console div.highlight { | ||
background-color: aliceblue; | ||
} | ||
|
||
div.highlight-bash div.highlight { | ||
background-color: aliceblue; | ||
} | ||
|
Oops, something went wrong.