Remove linting scripts
This commit is contained in:
parent
1d1f3602bf
commit
8ed173c36d
5 changed files with 0 additions and 72 deletions
1
.github/CONTRIBUTING.md
vendored
1
.github/CONTRIBUTING.md
vendored
|
@ -26,7 +26,6 @@ pip install -e '.[dev]' # or use: pipenv install --dev
|
|||
### Running Tests
|
||||
|
||||
```bash
|
||||
./bin/lint.sh
|
||||
./bin/test.sh
|
||||
```
|
||||
|
||||
|
|
35
.github/workflows/lint.yml
vendored
35
.github/workflows/lint.yml
vendored
|
@ -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
|
11
README.md
11
README.md
|
@ -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>
|
||||
|
|
24
bin/lint.sh
24
bin/lint.sh
|
@ -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)"
|
|
@ -87,7 +87,6 @@ dev = [
|
|||
]
|
||||
|
||||
[tool.pdm.scripts]
|
||||
lint = "./bin/lint.sh"
|
||||
test = "./bin/test.sh"
|
||||
# all = {composite = ["lint mypackage/", "test -v tests/"]}
|
||||
|
||||
|
|
Loading…
Reference in a new issue