Skip to content

Commit

Permalink
Update pre-commit, fix two pylint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeage committed Mar 28, 2024
1 parent 410ed33 commit a5f8c29
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
repos:
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.34.0
rev: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/psf/black
rev: 24.2.0
rev: 24.3.0
hooks:
- id: black
files: ^Support/
Expand All @@ -16,7 +16,7 @@ repos:
- id: flake8
files: ^Support/
- repo: https://github.com/PyCQA/pylint.git
rev: v3.0.3
rev: v3.1.0
hooks:
- id: pylint
name: pylint
Expand Down
3 changes: 1 addition & 2 deletions Support/Python/tbdata/printing.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,7 @@ def calculate_pos_error(cp0, cp1, middle_cps):
t = (cp._dist - cp0._dist) / strip_length
pos_interpolated = t * cp0._pos + (1 - t) * cp1._pos
pos_error = np.linalg.norm((pos_interpolated - cp._pos))
if pos_error > max_pos_error:
max_pos_error = pos_error
max_pos_error = max(max_pos_error, pos_error)

return max_pos_error

Expand Down
3 changes: 1 addition & 2 deletions Support/bin/analyze_refgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ def iter_desired_guids():
except LookupError as e:
print(e)
continue
for guid in guids:
yield guid
yield from guids

for guid in iter_desired_guids():
name = rg.guid_to_name.get(guid, guid)
Expand Down

0 comments on commit a5f8c29

Please sign in to comment.