Skip to content

Commit 5f119ec

Browse files
committed
chore: remove old linter
1 parent 5492c30 commit 5f119ec

4 files changed

Lines changed: 5 additions & 90 deletions

File tree

.github/workflows/test.yaml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,6 @@ concurrency:
77
cancel-in-progress: true
88

99
jobs:
10-
lint:
11-
name: Linter
12-
runs-on: ubuntu-latest
13-
strategy:
14-
matrix:
15-
python:
16-
- "3.9"
17-
- "3.10"
18-
steps:
19-
- name: Check out code
20-
uses: actions/checkout@v4
21-
- name: Setup Python
22-
uses: actions/setup-python@v5
23-
with:
24-
python-version: ${{ matrix.python }}
25-
- name: Install dependencies
26-
run: pip install tox
27-
- name: Run linter
28-
run: |
29-
tox -e lint
30-
./scripts/copyright.sh
31-
3210
build-test:
3311
name: Build test
3412
runs-on: ubuntu-latest
@@ -67,7 +45,6 @@ jobs:
6745
run: tox -e validate
6846

6947
unit-tests:
70-
needs: lint
7148
name: Unit tests
7249
runs-on: ubuntu-latest
7350
strategy:
@@ -161,7 +138,7 @@ jobs:
161138

162139
integration-quarantine:
163140
name: Quarantined Integration Tests
164-
needs: [lint, unit-tests]
141+
needs: [unit-tests]
165142
timeout-minutes: 150
166143
runs-on: ubuntu-latest
167144
strategy:

Makefile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,21 @@ clean:
1616

1717
.PHONY: client
1818
client:
19-
tox -r --notest -e lint,py3
19+
tox -r --notest -e py3
2020
$(PY) -m juju.client.facade -s "juju/client/schemas*" -o juju/client/
2121
pre-commit run --files $(shell echo juju/client/_[cd]*.py)
2222

2323
.PHONY: run-unit-tests
24-
run-unit-tests: .tox lint
24+
run-unit-tests: .tox
2525
tox -e py3
2626

2727
.PHONY: run-integration-tests
28-
run-integration-tests: .tox lint
28+
run-integration-tests: .tox
2929
tox -e integration
3030

3131
.PHONY: run-all-tests
3232
test: run-unit-tests run-integration-tests
3333

34-
.PHONY: lint
35-
lint:
36-
@./scripts/copyright.sh
37-
@echo "==> Running flake8 linter"
38-
tox -e lint
39-
4034
.PHONY: docs
4135
docs:
4236
tox -e docs

scripts/copyright.sh

Lines changed: 0 additions & 50 deletions
This file was deleted.

tox.ini

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# and then run "tox" from this directory.
66

77
[tox]
8-
envlist = lint,py3,py38,py39,py310,py311,docs
8+
envlist = py3,py38,py39,py310,py311,docs
99
skipsdist=True
1010

1111
[pytest]
@@ -53,12 +53,6 @@ commands =
5353
rm -rf docs/_build/
5454
sphinx-build -b html docs/ docs/_build/
5555

56-
[testenv:lint]
57-
commands =
58-
flake8 {posargs} juju tests examples
59-
deps =
60-
flake8
61-
6256
[testenv:integration]
6357
envdir = {toxworkdir}/py3
6458
commands =

0 commit comments

Comments
 (0)