Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#777)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/asottile/pyupgrade: v3.16.0 → v3.17.0](asottile/pyupgrade@v3.16.0...v3.17.0)
- [github.com/astral-sh/ruff-pre-commit: v0.4.10 → v0.6.1](astral-sh/ruff-pre-commit@v0.4.10...v0.6.1)
- [github.com/PyCQA/flake8: 7.1.0 → 7.1.1](PyCQA/flake8@7.1.0...7.1.1)
- [github.com/pycontribs/mirrors-prettier: v3.3.2 → v3.3.3](pycontribs/mirrors-prettier@v3.3.2...v3.3.3)

* Remove dict comprehension

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kiran Jonnalagadda <kiran@hasgeek.com>
  • Loading branch information
pre-commit-ci[bot] and jace authored Aug 20, 2024
1 parent 193821e commit f6bf857
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ ci:
skip: ['yesqa', 'no-commit-to-branch']
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.16.0
rev: v3.17.0
hooks:
- id: pyupgrade
args: ['--keep-runtime-typing', '--py311-plus']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.10
rev: v0.6.1
hooks:
- id: ruff
args: ['--fix', '--exit-non-zero-on-fix']
Expand Down Expand Up @@ -38,7 +38,7 @@ repos:
additional_dependencies:
- toml
- repo: https://github.com/PyCQA/flake8
rev: 7.1.0
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies: *flake8deps
Expand All @@ -57,7 +57,7 @@ repos:
additional_dependencies:
- bandit[toml]
- repo: https://github.com/pycontribs/mirrors-prettier
rev: v3.3.2
rev: v3.3.3
hooks:
- id: prettier
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down
2 changes: 1 addition & 1 deletion hasjob/views/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ def make_pay_graph(currency, posts, rmin=None, rmax=None, minposts=5):
for bucket in pay_graph_buckets[currency]
if (bucket >= rmin and bucket <= rmax)
]
buckets = {bucket: 0 for bucket in rbuckets}
buckets = dict.fromkeys(rbuckets, 0)
for pmin, pmax in pay_data:
for bucket in rbuckets:
if bucket >= pmin and bucket <= pmax:
Expand Down

0 comments on commit f6bf857

Please sign in to comment.