do not run linters through tox (#344)

Signed-off-by: NilashishC <nilashishchakraborty8@gmail.com>
pull/345/head
Nilashish Chakraborty 2024-03-28 19:29:13 +05:30 committed by GitHub
parent bd78088e9d
commit 8c852d0272
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 31 deletions

13
.flake8
View File

@ -39,16 +39,11 @@ extend-exclude =
# IMPORTANT: avoid using ignore option, always use extend-ignore instead # IMPORTANT: avoid using ignore option, always use extend-ignore instead
# Completely and unconditionally ignore the following errors: # Completely and unconditionally ignore the following errors:
extend-ignore = 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, F841,
# line-length
E501,
# module level import not at top of file
E402
# Accessibility/large fonts and PEP8 unfriendly: # Accessibility/large fonts and PEP8 unfriendly:
max-line-length = 100 max-line-length = 100

View File

@ -39,3 +39,8 @@ repos:
rev: 23.12.1 rev: 23.12.1
hooks: hooks:
- id: black - id: black
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8

22
tox.ini
View File

@ -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}