Skip to content

Commit 274c397

Browse files
authored
Update to latest version of prospector (#513)
1 parent cff7cb9 commit 274c397

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Set up Python
3131
uses: actions/setup-python@v4
3232
with:
33-
python-version: '3.9'
33+
python-version: '3.12'
3434
architecture: x64
3535
- name: Install tox
3636
run: |

.prospector.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ pylint:
1111
- import-outside-toplevel
1212
- no-else-return
1313
- no-else-raise
14+
- consider-using-f-string
15+
- raise-missing-from
16+
# The Django settings module is only needed for finding foreign-key relationships from strings which we don't need.
17+
- django-not-configured
18+
- consider-using-generator
1419

1520
pep8:
1621
options:

tasks.py

+9
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,12 @@ def make_translations(c, locale='en'):
6464
@task
6565
def docs(c):
6666
c.run('cd docs; make html; cd ..')
67+
68+
@task
69+
def prospector(c):
70+
c.run('prospector --profile .prospector.yaml localflavor')
71+
72+
@task
73+
def prospector_pylint(c):
74+
""" Outputs warnings in pylint format which is useful for getting clickable links to files in some IDEs. """
75+
c.run('prospector --profile .prospector.yaml --output pylint localflavor')

tox.ini

+2-3
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ commands =
4343

4444
[testenv:prospector]
4545
deps =
46-
prospector==1.3.0
47-
pylint>=2.5.2,<2.6.0
46+
prospector~=1.13.0
4847
-r{toxinidir}/tests/requirements.txt
49-
basepython = python3.9
48+
basepython = python3.12
5049
commands = prospector --profile .prospector.yaml {toxinidir}

0 commit comments

Comments
 (0)