Skip to content

Commit

Permalink
Add ruff linter to github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Bonkowski committed Feb 24, 2023
1 parent bb6dc2d commit ef6d43a
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,17 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
pip install pylint
pip install ruff
- name: black
run: |
black --version
black --check --diff --color $(find . -name "*.py" | xargs)
- name: mypy
continue-on-error: true
run: |
mypy --version
rm -rf .mypy_cache
mypy $(find . -name "*.py" | xargs)
- name: pydocstyle
run: |
pydocstyle --count pymatgen
- name: pylint
run: |
pylint --exit-zero -d W0511,C0415,E0611,E0401 $(find . -name "*.py" | xargs)
- name: black
run: |
black --version
black --check --diff --color $(find . -name "*.py" | xargs)
- name: flake8
- name: ruff
run: |
flake8 --version
flake8 --max-line-length 100 --ignore=F841 --count --show-source --statistics $(find . -name "*.py" | xargs)
# exit-zero treats all errors as warnings.
flake8 --count --exit-zero --max-complexity=20 --statistics $(find . -name "*.py" | xargs)
pylint check . --line-length=100 --ignore=F841

0 comments on commit ef6d43a

Please sign in to comment.