Skip to content

Commit 86584bf

Browse files
authored
Add Prospector linting step to CI and fix linting errors (#84)
1 parent fe93c11 commit 86584bf

20 files changed

+310
-86
lines changed

.circleci/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ jobs:
2727
name: Run Type Checks
2828
command: |
2929
make typecheck
30+
- run:
31+
name: Run Linter
32+
command: |
33+
make lint
3034
- run:
3135
name: Run Tests with Coverage
3236
command: |

.prospector.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
output-format: text
2+
3+
strictness: medium
4+
test-warnings: true
5+
doc-warnings: false
6+
7+
ignore-paths:
8+
- tests
9+
10+
pep8:
11+
disable:
12+
- E741
13+
options:
14+
max-line-length: 120
15+
16+
pylint:
17+
disable:
18+
- len-as-condition
19+
- no-else-return
20+
- protected-access
21+
- unsubscriptable-object
22+
- useless-import-alias

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ format:
77
.PHONY: lint
88
lint:
99
@pipenv install --dev
10-
@pipenv run python -m pyflakes .
10+
@pipenv run python -m prospector > lintout.txt
1111

1212

1313
.PHONY: repl

Pipfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ name = "pypi"
55

66
[dev-packages]
77
coveralls = "*"
8-
pyflakes = "*"
9-
pytest = "*"
10-
yapf = "*"
118
mypy = "*"
12-
autoflake = "*"
9+
prospector = "*"
10+
pytest = "*"
1311
pytest-cov = "*"
12+
yapf = "*"
1413

1514
[packages]
1615
astor = "*"

Pipfile.lock

Lines changed: 212 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

basilisp/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

0 commit comments

Comments
 (0)