Skip to content

Commit

Permalink
Replace flake8 with pylint (#3)
Browse files Browse the repository at this point in the history
* Add CLI command to pyproject.toml

* Replace flake8 with pylint

* Fix rebase error

* Add pylint installation step to pre-commit workflow

* Open devnull in binary mode in tests

* Use an identity function instead of lambda
  • Loading branch information
Iain-S authored Apr 13, 2023
1 parent b934ae1 commit 7cd19b9
Show file tree
Hide file tree
Showing 6 changed files with 620 additions and 53 deletions.
3 changes: 0 additions & 3 deletions .flake8

This file was deleted.

4 changes: 4 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ jobs:
shell: bash
run: |
python -m pip install pre-commit
- name: Install Pylint
shell: bash
run: |
python -m pip install pylint
- name: Cache Pre-Commit Hooks
id: pre-commit-cache
uses: actions/cache@v3
Expand Down
9 changes: 6 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ repos:
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
- repo: local
hooks:
- id: flake8
- id: pylint
name: Pylint
entry: poetry run pylint
language: system
types: ['python']
Loading

0 comments on commit 7cd19b9

Please sign in to comment.