Skip to content

Commit

Permalink
space out a bit for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed Oct 8, 2024
1 parent a697cc4 commit f3e3ef6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,36 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-ci.txt --quiet
- name: mypy
run: |
mypy --namespace-packages --explicit-package-bases pymatgen
- name: black
run: |
black --version
black --check --diff --color pymatgen
- name: flake8
run: |
flake8 --count --show-source --statistics pymatgen
# exit-zero treats all errors as warnings.
flake8 --count --exit-zero --max-complexity=20 --statistics pymatgen
- name: pydocstyle
run: |
pydocstyle --count pymatgen
- name: pylint
run: |
pylint pymatgen
3 changes: 3 additions & 0 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --quiet -r requirements.txt -r requirements-ci.txt
pip install -e .
- name: pytest
run: |
pytest --cov=pymatgen.analysis.diffusion --durations=30 pymatgen

0 comments on commit f3e3ef6

Please sign in to comment.