mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-12 16:10:57 +00:00
repin flake8 and misc updates (#79)
* repin flake8, bump tox to >=4.0.0 as that's where whitelist was deprecated, misc updates
This commit is contained in:
@ -102,6 +102,7 @@ jobs:
|
|||||||
- image: cimg/python:3.11
|
- image: cimg/python:3.11
|
||||||
environment:
|
environment:
|
||||||
TOXENV: py311-core
|
TOXENV: py311-core
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
test:
|
test:
|
||||||
|
|||||||
@ -7,7 +7,7 @@ from pathlib import Path
|
|||||||
|
|
||||||
|
|
||||||
def _find_files(project_root):
|
def _find_files(project_root):
|
||||||
path_exclude_pattern = r"\.git($|\/)|venv|_build"
|
path_exclude_pattern = r"\.git($|\/)|venv|_build|\.tox"
|
||||||
file_exclude_pattern = r"fill_template_vars\.py|\.swp$"
|
file_exclude_pattern = r"fill_template_vars\.py|\.swp$"
|
||||||
filepaths = []
|
filepaths = []
|
||||||
for dir_path, _dir_names, file_names in os.walk(project_root):
|
for dir_path, _dir_names, file_names in os.walk(project_root):
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
include LICENSE
|
include LICENSE
|
||||||
include README.md
|
include README.md
|
||||||
include requirements-docs.txt
|
|
||||||
|
|
||||||
global-include *.pyi
|
global-include *.pyi
|
||||||
|
|
||||||
|
|||||||
6
setup.py
6
setup.py
@ -11,8 +11,8 @@ extras_require = {
|
|||||||
"pytest-xdist>=2.4.0",
|
"pytest-xdist>=2.4.0",
|
||||||
],
|
],
|
||||||
"lint": [
|
"lint": [
|
||||||
"flake8>=5.0.0",
|
"flake8==6.0.0",
|
||||||
"flake8-bugbear>=22.0.0",
|
"flake8-bugbear==23.3.23",
|
||||||
"isort>=5.10.1",
|
"isort>=5.10.1",
|
||||||
"mypy==0.971",
|
"mypy==0.971",
|
||||||
"pydocstyle>=5.0.0",
|
"pydocstyle>=5.0.0",
|
||||||
@ -26,7 +26,7 @@ extras_require = {
|
|||||||
"dev": [
|
"dev": [
|
||||||
"bumpversion>=0.5.3",
|
"bumpversion>=0.5.3",
|
||||||
"pytest-watch>=4.1.0",
|
"pytest-watch>=4.1.0",
|
||||||
"tox>=3.18.0",
|
"tox>=4.0.0",
|
||||||
"wheel",
|
"wheel",
|
||||||
"twine",
|
"twine",
|
||||||
"ipython",
|
"ipython",
|
||||||
|
|||||||
8
tox.ini
8
tox.ini
@ -14,16 +14,16 @@ multi_line_output=3
|
|||||||
profile=black
|
profile=black
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
max-line-length= 88
|
max-line-length=88
|
||||||
exclude= venv*,.tox,docs,build
|
exclude=venv*,.tox,docs,build
|
||||||
extend-ignore= E203
|
extend-ignore=E203
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
usedevelop=True
|
usedevelop=True
|
||||||
commands=
|
commands=
|
||||||
core: pytest {posargs:tests/core}
|
core: pytest {posargs:tests/core}
|
||||||
docs: make check-docs
|
docs: make check-docs
|
||||||
basepython =
|
basepython=
|
||||||
docs: python
|
docs: python
|
||||||
py37: python3.7
|
py37: python3.7
|
||||||
py38: python3.8
|
py38: python3.8
|
||||||
|
|||||||
Reference in New Issue
Block a user