From 02eb87b1f4d84722375a80f518ab140065c9282b Mon Sep 17 00:00:00 2001 From: Emmanuel Rondan Date: Tue, 6 Feb 2024 15:38:04 -0300 Subject: [PATCH] making suggested changes to config files --- .github/workflows/build.yml | 8 +------- .pre-commit-config.yaml | 8 ++++---- pyproject.toml | 16 ---------------- tox.ini | 16 +--------------- 4 files changed, 6 insertions(+), 42 deletions(-) delete mode 100644 pyproject.toml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7d84305..547559e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,18 +18,12 @@ jobs: - python-version: "3.8" env: TOXENV: docs - - python-version: "3.8" - env: - TOXENV: pre-commit - python-version: "3.12" env: - TOXENV: flake8 + TOXENV: pre-commit - python-version: "3.12" env: TOXENV: pylint - - python-version: "3.12" - env: - TOXENV: security - python-version: "3.12" env: TOXENV: typing diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 98834c2..7bd6bc6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,22 +1,22 @@ repos: - repo: https://github.com/PyCQA/bandit - rev: 1.7.4 + rev: 1.7.7 hooks: - id: bandit args: [-r, -c, .bandit.yml] language_version: python3.8 - repo: https://github.com/PyCQA/flake8 - rev: 5.0.4 + rev: 7.0.0 hooks: - id: flake8 language_version: python3.8 - repo: https://github.com/psf/black.git - rev: 23.1.0 + rev: 24.1.1 hooks: - id: black language_version: python3.8 - repo: https://github.com/pycqa/isort - rev: 5.11.5 + rev: 5.13.2 hooks: - id: isort language_version: python3.8 diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index 02d4b0c..0000000 --- a/pyproject.toml +++ /dev/null @@ -1,16 +0,0 @@ -[tool.black] -line-length = 100 -include = '\.pyi?$' -exclude = ''' -/( - \.git - | \.hg - | \.mypy_cache - | \.tox - | \.venv - | _build - | buck-out - | build - | dist -)/ -''' \ No newline at end of file diff --git a/tox.ini b/tox.ini index bc89340..e97b62f 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ # and then run "tox" from this directory. [tox] -envlist = py38, py39, py310, py311, py312, pypy3, docs, security, flake8, pylint, black, typing, pre-commit +envlist = py38, py39, py310, py311, py312, pypy3, docs, pylint, typing, pre-commit [testenv] deps = @@ -16,12 +16,6 @@ commands = --cov=w3lib --cov-report=term --cov-report=xml \ {posargs:w3lib tests} -[testenv:security] -deps = - bandit -commands = - bandit -r -c .bandit.yml {posargs:w3lib} - [testenv:typing] basepython = python3 deps = @@ -31,14 +25,6 @@ deps = commands = mypy --strict {posargs: w3lib tests} -[testenv:flake8] -basepython = python3 -deps = - flake8==6.1.0 -commands = - flake8 \ - {posargs:w3lib tests setup.py} - [testenv:pylint] deps = {[testenv]deps}