Skip to content

Commit

Permalink
Pre-commit: move pylint conf to pyproject.toml
Browse files Browse the repository at this point in the history
Also update the requirement `pylint~=2.6`.
  • Loading branch information
sphuber committed Oct 15, 2020
1 parent bfe6d34 commit 2156b45
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,10 @@ repos:
args: ['-i']

- repo: https://github.com/PyCQA/pylint
rev: pylint-2.5.2
rev: pylint-2.6.0
hooks:
- id: pylint
language: system
args: [
'--max-line-length=120',
'--disable=import-outside-toplevel'
]

- repo: https://github.com/PyCQA/pydocstyle
rev: 5.0.2
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
[build-system]
requires = ['setuptools>=40.8.0', 'wheel', 'reentry~=1.3', 'fastentrypoints~=0.12']
build-backend = 'setuptools.build_meta:__legacy__'

[tool.pylint.format]
max-line-length = 120

[tool.pylint.messages_control]
disable = [
'import-outside-toplevel',
]
2 changes: 1 addition & 1 deletion setup.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"extras_require": {
"pre-commit": [
"pre-commit~=2.2",
"pylint~=2.5"
"pylint~=2.6"
],
"tests": [
"pgtest~=1.3",
Expand Down

0 comments on commit 2156b45

Please sign in to comment.