Enable ruff RUF001 rule (#11378) · foo123/The-Algorithms-Python@79dc7c9 · GitHub
Skip to content

Commit 79dc7c9

Browse files
Enable ruff RUF001 rule (TheAlgorithms#11378)
* Enable ruff RUF001 rule * Fix * Fix
1 parent dbfa218 commit 79dc7c9

4 files changed

Lines changed: 7 additions & 8 deletions

File tree

fuzzy_logic/fuzzy_operations.py

Lines changed: 3 additions & 3 deletions

physics/basic_orbital_capture.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
"""
66
These two functions will return the radii of impact for a target object
7-
of mass M and radius R as well as it's effective cross sectional area σ(sigma).
8-
That is to say any projectile with velocity v passing within σ, will impact the
7+
of mass M and radius R as well as it's effective cross sectional area sigma.
8+
That is to say any projectile with velocity v passing within sigma, will impact the
99
target object with mass M. The derivation of which is given at the bottom
1010
of this file.
1111
1212
The derivation shows that a projectile does not need to aim directly at the target
1313
body in order to hit it, as R_capture>R_target. Astronomers refer to the effective
14-
cross section for capture as σ=π*R_capture**2.
14+
cross section for capture as sigma=π*R_capture**2.
1515
1616
This algorithm does not account for an N-body problem.
1717

physics/malus_law.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
Real polarizers are also not perfect blockers of the polarization orthogonal to
3232
their polarization axis; the ratio of the transmission of the unwanted component
3333
to the wanted component is called the extinction ratio, and varies from around
34-
1:500 for Polaroid to about 1:106 for GlanTaylor prism polarizers.
34+
1:500 for Polaroid to about 1:106 for Glan-Taylor prism polarizers.
3535
3636
Reference : "https://en.wikipedia.org/wiki/Polarizer#Malus's_law_and_other_properties"
3737
"""

pyproject.toml

Lines changed: 0 additions & 1 deletion

0 commit comments

Comments
 (0)