1
0
Fork 0

Remove linting scripts

This commit is contained in:
Alex Kotov 2024-01-04 21:15:15 +04:00
parent 1d1f3602bf
commit 8ed173c36d
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
5 changed files with 0 additions and 72 deletions

View File

@ -26,7 +26,6 @@ pip install -e '.[dev]' # or use: pipenv install --dev
### Running Tests
```bash
./bin/lint.sh
./bin/test.sh
```

View File

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

View File

@ -937,17 +937,6 @@ archivebox init --setup
</details>
#### Run the linters
<details><summary><i>Click to expand...</i></summary>
```bash
./bin/lint.sh
```
(uses `flake8` and `mypy`)
</details>
#### Run the integration tests
<details><summary><i>Click to expand...</i></summary>

View File

@ -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)"

View File

@ -87,7 +87,6 @@ dev = [
]
[tool.pdm.scripts]
lint = "./bin/lint.sh"
test = "./bin/test.sh"
# all = {composite = ["lint mypackage/", "test -v tests/"]}