Skip to content

Commit

Permalink
Update to latest version of prospector (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
benkonrath authored Jan 2, 2025
1 parent cff7cb9 commit 274c397
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.12'
architecture: x64
- name: Install tox
run: |
Expand Down
5 changes: 5 additions & 0 deletions .prospector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ pylint:
- import-outside-toplevel
- no-else-return
- no-else-raise
- consider-using-f-string
- raise-missing-from
# The Django settings module is only needed for finding foreign-key relationships from strings which we don't need.
- django-not-configured
- consider-using-generator

pep8:
options:
Expand Down
9 changes: 9 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,12 @@ def make_translations(c, locale='en'):
@task
def docs(c):
c.run('cd docs; make html; cd ..')

@task
def prospector(c):
c.run('prospector --profile .prospector.yaml localflavor')

@task
def prospector_pylint(c):
""" Outputs warnings in pylint format which is useful for getting clickable links to files in some IDEs. """
c.run('prospector --profile .prospector.yaml --output pylint localflavor')
5 changes: 2 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ commands =

[testenv:prospector]
deps =
prospector==1.3.0
pylint>=2.5.2,<2.6.0
prospector~=1.13.0
-r{toxinidir}/tests/requirements.txt
basepython = python3.9
basepython = python3.12
commands = prospector --profile .prospector.yaml {toxinidir}

0 comments on commit 274c397

Please sign in to comment.