Skip to content

Commit

Permalink
Fix circle and travis to just check PMG.
Browse files Browse the repository at this point in the history
  • Loading branch information
shyuep committed Sep 14, 2019
1 parent d4b942c commit a94cb85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
echo "--- Done ---"
pytest --ignore=pymatgen/analysis/tests/test_pourbaix_diagram.py --cov=pymatgen --cov-report html:coverage_reports pymatgen
# Docstyle checks are enforced for files that have been modified since the v2019.9.12 tagged release.
export MODIFIED_FILES=`git diff --diff-filter=ACMRTUXB --name-only HEAD v2019.9.12 | grep -E '\.(py)' | sed '/test_/d' | sed 'post_processors_abc/d' | tr '\n' ' '`
export MODIFIED_FILES=`git diff --diff-filter=ACMRTUXB --name-only HEAD v2019.9.12 | grep -E 'pymatgen.*\.(py)$' | sed '/test_/d' | sed 'post_processors_abc/d' | tr '\n' ' '`
echo "pydocstyle checks for $MODIFIED_FILES..."
pydocstyle --count pymatgen/core $MODIFIED_FILES
echo "--- Done ---"
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ script:
- echo "It is highly recommended that you use the pre-commit hook provided in pymatgen (simply copy pre-commit to .git/hooks) to check before pushing your code."
- travis_wait 28800 pycodestyle pymatgen && mypy pymatgen && pytest $EXCLUDE_TESTS pymatgen
# Docstyle checks are enforced for files that have been modified since the v2019.9.12 tagged release.
- export MODIFIED_FILES=`git diff --diff-filter=ACMRTUXB --name-only HEAD v2019.9.12 | grep -E '\.(py)' | sed '/test_/d' | sed 'post_processors_abc/d' | tr '\n' ' '`
- export MODIFIED_FILES=`git diff --diff-filter=ACMRTUXB --name-only HEAD v2019.9.12 | grep -E 'pymatgen.*\.(py)$' | sed '/test_/d' | sed 'post_processors_abc/d' | tr '\n' ' '`
- pydocstyle --count pymatgen/core $MODIFIED_FILES

notifications:
Expand Down

0 comments on commit a94cb85

Please sign in to comment.