Skip to content

Commit 79d7a78

Browse files
Update tox/pre-commit
1 parent ac9fe8a commit 79d7a78

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ repos:
1111
rev: 21.6b0
1212
hooks:
1313
- id: black
14-
- repo: https://github.com/pycqa/pylint
15-
rev: v2.8.3
16-
hooks:
17-
- id: pylint
1814
- repo: https://gitlab.com/pycqa/flake8
1915
rev: 3.9.2
2016
hooks:
@@ -47,6 +43,14 @@ repos:
4743
- repo: meta
4844
hooks:
4945
- id: check-useless-excludes
46+
- repo: local
47+
hooks:
48+
- id: pylint
49+
name: pylint
50+
entry: tox -e pylint --
51+
language: system
52+
require_serial: true
53+
types: [python]
5054

5155
default_language_version:
5256
python: python3

src/lithium/docs/examples/crash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ int main ()
22
{
33
*((char *)0) = 'a';
44
return 0;
5-
}
5+
}

tox.ini

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,16 @@ skip_install = true
2828

2929
[testenv:lint]
3030
commands =
31-
isort {toxinidir}
32-
black {toxinidir}
33-
pylint {toxinidir}/src/lithium
34-
flake8 {toxinidir}
31+
pre-commit run -a
3532
deps =
36-
black
37-
flake8
38-
isort
39-
pylint
33+
pre-commit
34+
skip_install = true
35+
36+
[testenv:pylint]
37+
commands =
38+
pylint {posargs}
39+
deps =
40+
pylint==2.8.3
4041
usedevelop = true
4142

4243
[testenv:pypi]

0 commit comments

Comments
 (0)