do not run linters through tox (#344)
Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>pull/345/head
parent
bd78088e9d
commit
8c852d0272
13
.flake8
13
.flake8
|
@ -39,16 +39,11 @@ extend-exclude =
|
|||
# IMPORTANT: avoid using ignore option, always use extend-ignore instead
|
||||
# Completely and unconditionally ignore the following errors:
|
||||
extend-ignore =
|
||||
# Safeguard neutering of flake8-quotes : https://github.com/zheller/flake8-quotes/issues/105
|
||||
Q,
|
||||
# annoy black by allowing white space before : https://github.com/psf/black/issues/315
|
||||
E203,
|
||||
# duplicate of pylint W0611 (unused-import)
|
||||
F401,
|
||||
# duplicate of pylint E0602 (undefined-variable)
|
||||
F821,
|
||||
# duplicate of pylint W0612 (unused-variable)
|
||||
F841,
|
||||
# line-length
|
||||
E501,
|
||||
# module level import not at top of file
|
||||
E402
|
||||
|
||||
# Accessibility/large fonts and PEP8 unfriendly:
|
||||
max-line-length = 100
|
||||
|
|
|
@ -39,3 +39,8 @@ repos:
|
|||
rev: 23.12.1
|
||||
hooks:
|
||||
- id: black
|
||||
|
||||
- repo: https://github.com/pycqa/flake8
|
||||
rev: 7.0.0
|
||||
hooks:
|
||||
- id: flake8
|
||||
|
|
22
tox.ini
22
tox.ini
|
@ -1,22 +0,0 @@
|
|||
[tox]
|
||||
minversion = 1.4.2
|
||||
envlist = linters
|
||||
skipsdist = True
|
||||
|
||||
[testenv]
|
||||
deps = -r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
|
||||
[testenv:black]
|
||||
install_command = pip install {opts} {packages}
|
||||
commands =
|
||||
black -v {toxinidir}
|
||||
|
||||
[testenv:linters]
|
||||
install_command = pip install {opts} {packages}
|
||||
commands =
|
||||
black -v --check {toxinidir}
|
||||
flake8 {posargs}
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
Loading…
Reference in New Issue