pyupgrade --py310-plus and run mypy in precommit, not build (#5996) · csvila/TheAlgorithms-Python@885580b · GitHub
Skip to content

Commit 885580b

Browse files
authored
pyupgrade --py310-plus and run mypy in precommit, not build (TheAlgorithms#5996)
* pyupgrade --py310-plus and run mypy in precommit, not build * pyupgrade --py310-plus web_programming/fetch_well_rx_price.py * pyupgrade --py310-plus web_programming/fetch_well_rx_price.py * Fix arithmetic_analysis/in_static_equilibrium.py * Fix arithmetic_analysis/in_static_equilibrium.py
1 parent f707f6d commit 885580b

4 files changed

Lines changed: 6 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 4 deletions

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ repos:
3030
hooks:
3131
- id: pyupgrade
3232
args:
33-
- --py39-plus
33+
- --py310-plus
3434

3535
- repo: https://gitlab.com/pycqa/flake8
3636
rev: 3.9.2

arithmetic_analysis/in_static_equilibrium.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ def polar_force(
1313
Resolves force along rectangular components.
1414
(force, angle) => (force_x, force_y)
1515
>>> polar_force(10, 45)
16-
[7.0710678118654755, 7.071067811865475]
16+
[7.071067811865477, 7.0710678118654755]
1717
>>> polar_force(10, 3.14, radian_mode=True)
18-
[-9.999987317275394, 0.01592652916486828]
18+
[-9.999987317275396, 0.01592652916486828]
1919
"""
2020
if radian_mode:
2121
return [magnitude * cos(angle), magnitude * sin(angle)]

web_programming/fetch_well_rx_price.py

Lines changed: 2 additions & 3 deletions

0 commit comments

Comments
 (0)