Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to latest version of prospector #513

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}
Loading