From 8ed173c36d7cfb058a558d54e6eb3594a54ba39b Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Thu, 4 Jan 2024 21:15:15 +0400 Subject: [PATCH] Remove linting scripts --- .github/CONTRIBUTING.md | 1 - .github/workflows/lint.yml | 35 ----------------------------------- README.md | 11 ----------- bin/lint.sh | 24 ------------------------ pyproject.toml | 1 - 5 files changed, 72 deletions(-) delete mode 100644 .github/workflows/lint.yml delete mode 100755 bin/lint.sh diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 92c94806..700744ea 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -26,7 +26,6 @@ pip install -e '.[dev]' # or use: pipenv install --dev ### Running Tests ```bash -./bin/lint.sh ./bin/test.sh ``` diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 5a402b25..00000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Run linters - -on: - workflow_dispatch: - push: - -env: - MAX_LINE_LENGTH: 110 - -jobs: - lint: - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v2 - with: - submodules: true - fetch-depth: 1 - - - name: Set up Python - uses: actions/setup-python@v1 - with: - python-version: 3.9 - architecture: x64 - - - name: Install flake8 - run: | - pip install flake8 - - - name: Lint with flake8 - run: | - cd archivebox - # one pass for show-stopper syntax errors or undefined names - flake8 . --count --show-source --statistics - # one pass for small stylistic things - flake8 . --count --max-line-length="$MAX_LINE_LENGTH" --statistics diff --git a/README.md b/README.md index ac98259c..068310fc 100644 --- a/README.md +++ b/README.md @@ -937,17 +937,6 @@ archivebox init --setup -#### Run the linters - -
Click to expand... - -```bash -./bin/lint.sh -``` -(uses `flake8` and `mypy`) - -
- #### Run the integration tests
Click to expand... diff --git a/bin/lint.sh b/bin/lint.sh deleted file mode 100755 index bd8beef8..00000000 --- a/bin/lint.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -### Bash Environment Setup -# http://redsymbol.net/articles/unofficial-bash-strict-mode/ -# https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html -# set -o xtrace -set -o errexit -set -o errtrace -set -o nounset -set -o pipefail -IFS=$'\n' - -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && cd .. && pwd )" - -source "$DIR/.venv/bin/activate" - -echo "[*] Running flake8..." -cd archivebox -flake8 . && echo "√ No errors found." - -echo - -echo "[*] Running mypy..." -echo "(skipping for now, run 'mypy archivebox' to run it manually)" diff --git a/pyproject.toml b/pyproject.toml index cb3a0c36..b4d6aab2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -87,7 +87,6 @@ dev = [ ] [tool.pdm.scripts] -lint = "./bin/lint.sh" test = "./bin/test.sh" # all = {composite = ["lint mypackage/", "test -v tests/"]}