From ed89816e98b09656763995d5937ce96f1cf4ba17 Mon Sep 17 00:00:00 2001 From: tarcisiobruni Date: Sun, 24 Oct 2021 15:42:05 -0300 Subject: [PATCH 01/18] feat: creates math calculations for financials --- financials/ABOUT.md | 12 ++++++++++++ financials/average.py | 5 +++++ financials/interest.py | 8 ++++++++ 3 files changed, 25 insertions(+) create mode 100644 financials/ABOUT.md create mode 100644 financials/average.py create mode 100644 financials/interest.py diff --git a/financials/ABOUT.md b/financials/ABOUT.md new file mode 100644 index 000000000000..f41c79bb48f4 --- /dev/null +++ b/financials/ABOUT.md @@ -0,0 +1,12 @@ +## About math calculations + +### Interest + +* Compound Interest: "Compound interest is calculated by multiplying the initial principal amount by one plus the annual interest rate raised to the number of compound periods minus one." [Compound Interest](https://www.investopedia.com/) +* Simple Interest: "Simple interest paid or received over a certain period is a fixed percentage of the principal amount that was borrowed or lent. " [Simple Interest](https://www.investopedia.com/) +* + +### Average + +//todo + diff --git a/financials/average.py b/financials/average.py new file mode 100644 index 000000000000..3e7c7f1fd693 --- /dev/null +++ b/financials/average.py @@ -0,0 +1,5 @@ +def weighted(ratio,rates): + result = 0 + for index in range(len(ratio)): + result = result + ratio[index]*rates[index] + return result diff --git a/financials/interest.py b/financials/interest.py new file mode 100644 index 000000000000..51a44905b2f0 --- /dev/null +++ b/financials/interest.py @@ -0,0 +1,8 @@ +def simple_interest(principle, daily_interest_rate, number_of_days_between_payment): + result = principle * daily_interest_rate * number_of_days_between_payment + return result + +def compound_interest(principle, nominal_annual_interest_rate_percentage , number_of_compounding_periods): + result = principle * ((1 + nominal_annual_interest_rate_percentage) ** number_of_compounding_periods - 1) + return result + From ff0cde76e69efb1ee36b258d633009dce1fceeac Mon Sep 17 00:00:00 2001 From: tarcisiobruni Date: Sun, 24 Oct 2021 15:57:11 -0300 Subject: [PATCH 02/18] refactor: make pull request items requirements --- financials/ABOUT.md | 7 ------- financials/__init__.py | 0 financials/average.py | 5 ----- financials/interest.py | 19 +++++++++++++++++-- 4 files changed, 17 insertions(+), 14 deletions(-) create mode 100644 financials/__init__.py delete mode 100644 financials/average.py diff --git a/financials/ABOUT.md b/financials/ABOUT.md index f41c79bb48f4..d7dc1daf1d31 100644 --- a/financials/ABOUT.md +++ b/financials/ABOUT.md @@ -1,12 +1,5 @@ -## About math calculations - ### Interest * Compound Interest: "Compound interest is calculated by multiplying the initial principal amount by one plus the annual interest rate raised to the number of compound periods minus one." [Compound Interest](https://www.investopedia.com/) * Simple Interest: "Simple interest paid or received over a certain period is a fixed percentage of the principal amount that was borrowed or lent. " [Simple Interest](https://www.investopedia.com/) * - -### Average - -//todo - diff --git a/financials/__init__.py b/financials/__init__.py new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/financials/average.py b/financials/average.py deleted file mode 100644 index 3e7c7f1fd693..000000000000 --- a/financials/average.py +++ /dev/null @@ -1,5 +0,0 @@ -def weighted(ratio,rates): - result = 0 - for index in range(len(ratio)): - result = result + ratio[index]*rates[index] - return result diff --git a/financials/interest.py b/financials/interest.py index 51a44905b2f0..291044966854 100644 --- a/financials/interest.py +++ b/financials/interest.py @@ -1,8 +1,23 @@ -def simple_interest(principle, daily_interest_rate, number_of_days_between_payment): +from __future__ import annotations + +def simple_interest(principle, daily_interest_rate, number_of_days_between_payment) -> float: + """ + >>> simple_interest(18000,0.06,3) + 3240.0 + """ result = principle * daily_interest_rate * number_of_days_between_payment return result -def compound_interest(principle, nominal_annual_interest_rate_percentage , number_of_compounding_periods): +def compound_interest(principle, nominal_annual_interest_rate_percentage , number_of_compounding_periods)-> float: + """ + >>> compound_interest(10000,0.05,3) + 1576.2500000000014 + """ result = principle * ((1 + nominal_annual_interest_rate_percentage) ** number_of_compounding_periods - 1) return result + +if __name__ == "__main__": + import doctest + + doctest.testmod() \ No newline at end of file From e00a8750012f61ee3194449a7d2a42b3b525c714 Mon Sep 17 00:00:00 2001 From: tarcisiobruni Date: Sun, 24 Oct 2021 16:01:33 -0300 Subject: [PATCH 03/18] refactor: provides type hint for parameters --- financials/interest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/financials/interest.py b/financials/interest.py index 291044966854..4bba7bcd1be6 100644 --- a/financials/interest.py +++ b/financials/interest.py @@ -1,6 +1,6 @@ from __future__ import annotations -def simple_interest(principle, daily_interest_rate, number_of_days_between_payment) -> float: +def simple_interest(principle:float, daily_interest_rate:float, number_of_days_between_payment:int) -> float: """ >>> simple_interest(18000,0.06,3) 3240.0 @@ -8,7 +8,7 @@ def simple_interest(principle, daily_interest_rate, number_of_days_between_payme result = principle * daily_interest_rate * number_of_days_between_payment return result -def compound_interest(principle, nominal_annual_interest_rate_percentage , number_of_compounding_periods)-> float: +def compound_interest(principle:float, nominal_annual_interest_rate_percentage:float, number_of_compounding_periods:int)-> float: """ >>> compound_interest(10000,0.05,3) 1576.2500000000014 From 1e5cc3043ce7daae90cf83ba4bad21624861bfa2 Mon Sep 17 00:00:00 2001 From: tarcisiobruni Date: Sun, 24 Oct 2021 16:13:06 -0300 Subject: [PATCH 04/18] refactor: applies code review suggestions --- financials/interest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/financials/interest.py b/financials/interest.py index 4bba7bcd1be6..1921ac919c22 100644 --- a/financials/interest.py +++ b/financials/interest.py @@ -1,11 +1,11 @@ from __future__ import annotations -def simple_interest(principle:float, daily_interest_rate:float, number_of_days_between_payment:int) -> float: +def simple_interest(principle:float, daily_interest_rate:float, number_of_days_between_payments:int) -> float: """ >>> simple_interest(18000,0.06,3) 3240.0 """ - result = principle * daily_interest_rate * number_of_days_between_payment + result = principle * daily_interest_rate * number_of_days_between_payments return result def compound_interest(principle:float, nominal_annual_interest_rate_percentage:float, number_of_compounding_periods:int)-> float: @@ -20,4 +20,4 @@ def compound_interest(principle:float, nominal_annual_interest_rate_percentage:f if __name__ == "__main__": import doctest - doctest.testmod() \ No newline at end of file + doctest.testmod() From 522dcbfa8dd9789a7bf63cd3be6dc4a479d146f5 Mon Sep 17 00:00:00 2001 From: tarcisiobruni Date: Sun, 24 Oct 2021 18:52:30 -0300 Subject: [PATCH 05/18] refactor: adds more examples tests --- financials/interest.py | 54 +++++++++++++++++++++++++++++++++++++----- 1 file changed, 48 insertions(+), 6 deletions(-) diff --git a/financials/interest.py b/financials/interest.py index 1921ac919c22..fc5f56ad1a68 100644 --- a/financials/interest.py +++ b/financials/interest.py @@ -2,19 +2,61 @@ def simple_interest(principle:float, daily_interest_rate:float, number_of_days_between_payments:int) -> float: """ - >>> simple_interest(18000,0.06,3) + >>> simple_interest(18000.0,0.06,3) 3240.0 + >>> simple_interest(0.0,0.06,3) + 0.0 + >>> simple_interest(18000.0,0.01,10) + 1800.0 + >>> simple_interest(18000.0,0.0,3) + 0.0 + >>> simple_interest(5500.0,0.01,100) + 5500.0 + >>> simple_interest(10000.0,-0.06,3) + Traceback (most recent call last): + Exception: daily_interest_rate must be a positive value + >>> simple_interest(-10000.0,0.06,3) + Traceback (most recent call last): + Exception: principle must be a positive value + >>> simple_interest(5500.0,0.01,-5) + Traceback (most recent call last): + Exception: number_of_days_between_payments must be a positive value """ - result = principle * daily_interest_rate * number_of_days_between_payments - return result + if(number_of_days_between_payments < 0): + raise Exception("number_of_days_between_payments must be a positive value") + if(daily_interest_rate < 0.0): + raise Exception("daily_interest_rate must be a positive value") + if(principle < 0.0): + raise Exception("principle must be a positive value") + return principle * daily_interest_rate * number_of_days_between_payments def compound_interest(principle:float, nominal_annual_interest_rate_percentage:float, number_of_compounding_periods:int)-> float: """ - >>> compound_interest(10000,0.05,3) + >>> compound_interest(10000.0,0.05,3) 1576.2500000000014 + >>> compound_interest(10000.0,0.05,0) + 0.0 + >>> compound_interest(10000.0,0.05,1) + 500.00000000000045 + >>> compound_interest(0.0,0.05,3) + 0.0 + >>> compound_interest(10000.0,0.06,-4) + Traceback (most recent call last): + Exception: number_of_compounding_periods must be a positive value + >>> compound_interest(10000.0,-3.5,3.0) + Traceback (most recent call last): + Exception: nominal_annual_interest_rate_percentage must be a positive value + >>> compound_interest(-5500.0,0.01,5) + Traceback (most recent call last): + Exception: principle must be a positive value """ - result = principle * ((1 + nominal_annual_interest_rate_percentage) ** number_of_compounding_periods - 1) - return result + if(number_of_compounding_periods < 0): + raise Exception("number_of_compounding_periods must be a positive value") + if(nominal_annual_interest_rate_percentage < 0.0): + raise Exception("nominal_annual_interest_rate_percentage must be a positive value") + if(principle < 0.0): + raise Exception("principle must be a positive value") + return principle * ((1 + nominal_annual_interest_rate_percentage) ** number_of_compounding_periods - 1) if __name__ == "__main__": From 5234d8d10ff80dd60eb417cfc005d4aa40833ed9 Mon Sep 17 00:00:00 2001 From: tarcisiobruni Date: Sun, 24 Oct 2021 19:02:40 -0300 Subject: [PATCH 06/18] refactor: throws ValueError instead of Exception --- financials/interest.py | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/financials/interest.py b/financials/interest.py index fc5f56ad1a68..64021be7a05a 100644 --- a/financials/interest.py +++ b/financials/interest.py @@ -14,22 +14,27 @@ def simple_interest(principle:float, daily_interest_rate:float, number_of_days_b 5500.0 >>> simple_interest(10000.0,-0.06,3) Traceback (most recent call last): - Exception: daily_interest_rate must be a positive value + ... + ValueError: daily_interest_rate must be >= 0 >>> simple_interest(-10000.0,0.06,3) Traceback (most recent call last): - Exception: principle must be a positive value + ... + ValueError: principle must be >= 0 >>> simple_interest(5500.0,0.01,-5) Traceback (most recent call last): - Exception: number_of_days_between_payments must be a positive value + ... + ValueError: number_of_days_between_payments must be >= 0 """ if(number_of_days_between_payments < 0): - raise Exception("number_of_days_between_payments must be a positive value") + raise ValueError("number_of_days_between_payments must be >= 0") if(daily_interest_rate < 0.0): - raise Exception("daily_interest_rate must be a positive value") + raise ValueError("daily_interest_rate must be >= 0") if(principle < 0.0): - raise Exception("principle must be a positive value") + raise ValueError("principle must be >= 0") + return principle * daily_interest_rate * number_of_days_between_payments + def compound_interest(principle:float, nominal_annual_interest_rate_percentage:float, number_of_compounding_periods:int)-> float: """ >>> compound_interest(10000.0,0.05,3) @@ -42,20 +47,24 @@ def compound_interest(principle:float, nominal_annual_interest_rate_percentage:f 0.0 >>> compound_interest(10000.0,0.06,-4) Traceback (most recent call last): - Exception: number_of_compounding_periods must be a positive value + ... + ValueError: number_of_compounding_periods must be >= 0 >>> compound_interest(10000.0,-3.5,3.0) Traceback (most recent call last): - Exception: nominal_annual_interest_rate_percentage must be a positive value + ... + ValueError: nominal_annual_interest_rate_percentage must be >= 0 >>> compound_interest(-5500.0,0.01,5) Traceback (most recent call last): - Exception: principle must be a positive value + ... + ValueError: principle must be >= 0 """ if(number_of_compounding_periods < 0): - raise Exception("number_of_compounding_periods must be a positive value") + raise ValueError("number_of_compounding_periods must be >= 0") if(nominal_annual_interest_rate_percentage < 0.0): - raise Exception("nominal_annual_interest_rate_percentage must be a positive value") + raise ValueError("nominal_annual_interest_rate_percentage must be >= 0") if(principle < 0.0): - raise Exception("principle must be a positive value") + raise ValueError("principle must be >= 0") + return principle * ((1 + nominal_annual_interest_rate_percentage) ** number_of_compounding_periods - 1) From 980f40df3f7bdd7da4e804d77dc43a870500dc5f Mon Sep 17 00:00:00 2001 From: tarcisiobruni Date: Sun, 24 Oct 2021 19:16:26 -0300 Subject: [PATCH 07/18] refactor: fix formatting --- financials/interest.py | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/financials/interest.py b/financials/interest.py index 64021be7a05a..d739f0115100 100644 --- a/financials/interest.py +++ b/financials/interest.py @@ -1,6 +1,9 @@ from __future__ import annotations -def simple_interest(principle:float, daily_interest_rate:float, number_of_days_between_payments:int) -> float: + +def simple_interest( + principle: float, daily_interest_rate: float, number_of_days_between_payments: int +) -> float: """ >>> simple_interest(18000.0,0.06,3) 3240.0 @@ -25,17 +28,21 @@ def simple_interest(principle:float, daily_interest_rate:float, number_of_days_b ... ValueError: number_of_days_between_payments must be >= 0 """ - if(number_of_days_between_payments < 0): + if number_of_days_between_payments < 0: raise ValueError("number_of_days_between_payments must be >= 0") - if(daily_interest_rate < 0.0): + if daily_interest_rate < 0.0: raise ValueError("daily_interest_rate must be >= 0") - if(principle < 0.0): + if principle < 0.0: raise ValueError("principle must be >= 0") return principle * daily_interest_rate * number_of_days_between_payments -def compound_interest(principle:float, nominal_annual_interest_rate_percentage:float, number_of_compounding_periods:int)-> float: +def compound_interest( + principle: float, + nominal_annual_interest_rate_percentage: float, + number_of_compounding_periods: int, +) -> float: """ >>> compound_interest(10000.0,0.05,3) 1576.2500000000014 @@ -58,11 +65,11 @@ def compound_interest(principle:float, nominal_annual_interest_rate_percentage:f ... ValueError: principle must be >= 0 """ - if(number_of_compounding_periods < 0): + if number_of_compounding_periods < 0: raise ValueError("number_of_compounding_periods must be >= 0") - if(nominal_annual_interest_rate_percentage < 0.0): + if nominal_annual_interest_rate_percentage < 0.0: raise ValueError("nominal_annual_interest_rate_percentage must be >= 0") - if(principle < 0.0): + if principle < 0.0: raise ValueError("principle must be >= 0") return principle * ((1 + nominal_annual_interest_rate_percentage) ** number_of_compounding_periods - 1) From 3de245776c474942f35590b3829bf4a24431b2f2 Mon Sep 17 00:00:00 2001 From: tarcisiobruni Date: Sun, 24 Oct 2021 19:17:20 -0300 Subject: [PATCH 08/18] refactor: fix formatting --- financials/interest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/financials/interest.py b/financials/interest.py index d739f0115100..d14239827e09 100644 --- a/financials/interest.py +++ b/financials/interest.py @@ -72,7 +72,10 @@ def compound_interest( if principle < 0.0: raise ValueError("principle must be >= 0") - return principle * ((1 + nominal_annual_interest_rate_percentage) ** number_of_compounding_periods - 1) + return principle * ( + (1 + nominal_annual_interest_rate_percentage) ** number_of_compounding_periods + - 1 + ) if __name__ == "__main__": From 110da41b06b0491660a5dac2a699f18db4037104 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 26 Oct 2021 08:59:23 +0200 Subject: [PATCH 09/18] Update interest.py --- financials/interest.py | 67 ++++++++++++++++++++---------------------- 1 file changed, 32 insertions(+), 35 deletions(-) diff --git a/financials/interest.py b/financials/interest.py index d14239827e09..b935dcb1bb1f 100644 --- a/financials/interest.py +++ b/financials/interest.py @@ -2,40 +2,39 @@ def simple_interest( - principle: float, daily_interest_rate: float, number_of_days_between_payments: int + principle: float, daily_interest_rate: float, days_between_payments: int ) -> float: """ - >>> simple_interest(18000.0,0.06,3) + >>> simple_interest(18000.0, 0.06, 3) 3240.0 - >>> simple_interest(0.0,0.06,3) - 0.0 - >>> simple_interest(18000.0,0.01,10) + >>> simple_interest(0.5, 0.06, 3) + 0.09 + >>> simple_interest(18000.0, 0.01, 10) 1800.0 - >>> simple_interest(18000.0,0.0,3) + >>> simple_interest(18000.0, 0.0, 3) 0.0 - >>> simple_interest(5500.0,0.01,100) + >>> simple_interest(5500.0, 0.01, 100) 5500.0 - >>> simple_interest(10000.0,-0.06,3) + >>> simple_interest(10000.0, -0.06, 3) Traceback (most recent call last): ... ValueError: daily_interest_rate must be >= 0 - >>> simple_interest(-10000.0,0.06,3) + >>> simple_interest(-10000.0, 0.06, 3) Traceback (most recent call last): ... - ValueError: principle must be >= 0 - >>> simple_interest(5500.0,0.01,-5) + ValueError: principle must be > 0 + >>> simple_interest(5500.0, 0.01, -5) Traceback (most recent call last): ... - ValueError: number_of_days_between_payments must be >= 0 + ValueError: days_between_payments must be > 0 """ - if number_of_days_between_payments < 0: - raise ValueError("number_of_days_between_payments must be >= 0") - if daily_interest_rate < 0.0: + if days_between_payments <= 0: + raise ValueError("days_between_payments must be > 0") + if daily_interest_rate < 0: raise ValueError("daily_interest_rate must be >= 0") - if principle < 0.0: - raise ValueError("principle must be >= 0") - - return principle * daily_interest_rate * number_of_days_between_payments + if principle <= 0: + raise ValueError("principle must be > 0") + return principle * daily_interest_rate * days_between_payments def compound_interest( @@ -44,33 +43,31 @@ def compound_interest( number_of_compounding_periods: int, ) -> float: """ - >>> compound_interest(10000.0,0.05,3) + >>> compound_interest(10000.0, 0.05, 3) 1576.2500000000014 - >>> compound_interest(10000.0,0.05,0) - 0.0 - >>> compound_interest(10000.0,0.05,1) + >>> compound_interest(10000.0, 0.05, 1) 500.00000000000045 - >>> compound_interest(0.0,0.05,3) - 0.0 - >>> compound_interest(10000.0,0.06,-4) + >>> compound_interest(0.5, 0.05, 3) + 0.07881250000000006 + >>> compound_interest(10000.0, 0.06, -4) Traceback (most recent call last): ... - ValueError: number_of_compounding_periods must be >= 0 - >>> compound_interest(10000.0,-3.5,3.0) + ValueError: number_of_compounding_periods must be > 0 + >>> compound_interest(10000.0, -3.5, 3.0) Traceback (most recent call last): ... ValueError: nominal_annual_interest_rate_percentage must be >= 0 - >>> compound_interest(-5500.0,0.01,5) + >>> compound_interest(-5500.0, 0.01, 5) Traceback (most recent call last): ... - ValueError: principle must be >= 0 + ValueError: principle must be > 0 """ - if number_of_compounding_periods < 0: - raise ValueError("number_of_compounding_periods must be >= 0") - if nominal_annual_interest_rate_percentage < 0.0: + if number_of_compounding_periods <= 0: + raise ValueError("number_of_compounding_periods must be > 0") + if nominal_annual_interest_rate_percentage < 0: raise ValueError("nominal_annual_interest_rate_percentage must be >= 0") - if principle < 0.0: - raise ValueError("principle must be >= 0") + if principle <= 0: + raise ValueError("principle must be > 0") return principle * ( (1 + nominal_annual_interest_rate_percentage) ** number_of_compounding_periods From c3dd88b81f13b752b1485ca34226fb525e486f60 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 26 Oct 2021 09:06:06 +0200 Subject: [PATCH 10/18] Update and rename financials/ABOUT.md to financial/ABOUT.md --- {financials => financial}/ABOUT.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) rename {financials => financial}/ABOUT.md (88%) diff --git a/financials/ABOUT.md b/financial/ABOUT.md similarity index 88% rename from financials/ABOUT.md rename to financial/ABOUT.md index d7dc1daf1d31..f6b0647f8201 100644 --- a/financials/ABOUT.md +++ b/financial/ABOUT.md @@ -1,5 +1,4 @@ ### Interest -* Compound Interest: "Compound interest is calculated by multiplying the initial principal amount by one plus the annual interest rate raised to the number of compound periods minus one." [Compound Interest](https://www.investopedia.com/) +* Compound Interest: "Compound interest is calculated by multiplying the initial principal amount by one plus the annual interest rate raised to the number of compound periods minus one." [Compound Interest](https://www.investopedia.com/) * Simple Interest: "Simple interest paid or received over a certain period is a fixed percentage of the principal amount that was borrowed or lent. " [Simple Interest](https://www.investopedia.com/) -* From c1fb8d0323f624dd6799c8f76d58156c903be6fd Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 26 Oct 2021 09:06:30 +0200 Subject: [PATCH 11/18] Rename financials/__init__.py to financial/__init__.py --- financial/__init__.py | 1 + financials/__init__.py | 0 2 files changed, 1 insertion(+) create mode 100644 financial/__init__.py delete mode 100644 financials/__init__.py diff --git a/financial/__init__.py b/financial/__init__.py new file mode 100644 index 000000000000..d3f5a12faa99 --- /dev/null +++ b/financial/__init__.py @@ -0,0 +1 @@ + diff --git a/financials/__init__.py b/financials/__init__.py deleted file mode 100644 index e69de29bb2d1..000000000000 From 4807cac3ef906fd01d76e8cd7f3e2e534408fb7d Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 26 Oct 2021 09:06:53 +0200 Subject: [PATCH 12/18] Rename financials/interest.py to financial/interest.py --- {financials => financial}/interest.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {financials => financial}/interest.py (100%) diff --git a/financials/interest.py b/financial/interest.py similarity index 100% rename from financials/interest.py rename to financial/interest.py From bc6304ec15b8822bf0eaf2670e6d80bd635b056a Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 26 Oct 2021 09:07:58 +0200 Subject: [PATCH 13/18] https://www.investopedia.com --- financial/interest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/financial/interest.py b/financial/interest.py index b935dcb1bb1f..394da2bc9511 100644 --- a/financial/interest.py +++ b/financial/interest.py @@ -1,3 +1,5 @@ +# https://www.investopedia.com + from __future__ import annotations From d953fa383220959ed73543f82e089bc9efc8c334 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 26 Oct 2021 09:24:05 +0200 Subject: [PATCH 14/18] Update __init__.py From f6e740859b6a44107dba3234a1fc4c653ea35082 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 26 Oct 2021 09:28:29 +0200 Subject: [PATCH 15/18] pre-commit: Disable end-of-file-fixer --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b666e88aa162..bf7fddd4f390 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,8 +4,8 @@ repos: hooks: - id: check-executables-have-shebangs - id: check-yaml - - id: end-of-file-fixer - types: [python] + #- id: end-of-file-fixer + # types: [python] - id: trailing-whitespace exclude: | (?x)^( From d551e4e9b7a2fc032784e41fe28b2468dd1106f0 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 26 Oct 2021 09:32:16 +0200 Subject: [PATCH 16/18] Revert change to pre-commit --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bf7fddd4f390..b666e88aa162 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,8 +4,8 @@ repos: hooks: - id: check-executables-have-shebangs - id: check-yaml - #- id: end-of-file-fixer - # types: [python] + - id: end-of-file-fixer + types: [python] - id: trailing-whitespace exclude: | (?x)^( From 787a9b5fc9db6d2deac39702a10c4a117af04f80 Mon Sep 17 00:00:00 2001 From: John Law Date: Wed, 27 Oct 2021 00:03:52 +0800 Subject: [PATCH 17/18] Update __init__.py From 34a2b728050944796f01401898010a9a3e63680d Mon Sep 17 00:00:00 2001 From: John Law Date: Wed, 27 Oct 2021 00:11:50 +0800 Subject: [PATCH 18/18] __init__.py --- financial/__init__.py | 1 - 1 file changed, 1 deletion(-) diff --git a/financial/__init__.py b/financial/__init__.py index d3f5a12faa99..e69de29bb2d1 100644 --- a/financial/__init__.py +++ b/financial/__init__.py @@ -1 +0,0 @@ -