Skip to content

Commit

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

updates:
- [github.com/sondrelg/pep585-upgrade: v1.0.1 → v1](snok/pep585-upgrade@v1.0.1...v1)
- [github.com/psf/black: 21.12b0 → 22.1.0](psf/black@21.12b0...22.1.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jan 31, 2022
1 parent 2cc7b20 commit 2c348c5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ repos:
exclude: devtools/conda.recipe/meta.yaml # doesn't play nice with jinja
# - id: no-commit-to-branch # only makes sense for local pre-commit hooks
- repo: https://github.com/sondrelg/pep585-upgrade
rev: v1.0.1
rev: v1
hooks:
- id: upgrade-type-hints
args: [ '--futures=true' ]
- repo: https://github.com/psf/black
rev: 21.12b0
rev: 22.1.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
Expand Down
2 changes: 1 addition & 1 deletion weldx/tests/asdf_tests/test_weldx_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def get_mem_info():
diff = after - before
# pytest increases memory a bit, but not as much as our large array would
# occupy in memory.
assert diff <= large_array.nbytes * 1.1, diff / 1024 ** 2
assert diff <= large_array.nbytes * 1.1, diff / 1024**2
assert np.all(WeldxFile(fn)["x"] == large_array)

@staticmethod
Expand Down
2 changes: 1 addition & 1 deletion weldx/welding/groove/iso_9692_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def to_profile(self, width_default: pint.Quantity = None) -> geo.Profile:
# calculations:
x_1 = np.tan(alpha / 2) * h
# Center of the circle [0, y_m]
y_circle = np.sqrt(R ** 2 - x_1 ** 2) # skipcq: PTC-W0028
y_circle = np.sqrt(R**2 - x_1**2) # skipcq: PTC-W0028
y_m = h + y_circle
# From next point to circle center is the vector (x,y)
x = R * np.cos(beta)
Expand Down

0 comments on commit 2c348c5

Please sign in to comment.