Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
620 commits
Select commit Hold shift + click to select a range
14ee3af
test_parallel_plate_capacitance and test_solenoid_inductance added
miguelzaqui Mar 24, 2022
153d01a
Unnecessary line deleted
miguelzaqui Mar 24, 2022
3c888d7
Docstrings updated
miguelzaqui Mar 24, 2022
935d243
Docstring updated
miguelzaqui Mar 25, 2022
c4f76b5
Merge pull request #47 from miguelzaqui/capacitance_inductance_functions
engineerjoe440 Mar 25, 2022
7d55158
include Python 3.10
engineerjoe440 Apr 18, 2022
00e6cd0
updated docsource resource
JoeStanleySEL May 2, 2022
ba0ee49
updated docsource to correct issues with import operations
JoeStanleySEL May 2, 2022
9b5f95e
modernized theme
JoeStanleySEL May 5, 2022
1674fde
Merge pull request #48 from engineerjoe440/dev/autoapi-test
engineerjoe440 May 5, 2022
4cc912c
working on updates to render images
JoeStanleySEL May 6, 2022
b40eba1
corrected path issue
JoeStanleySEL May 6, 2022
dbaa2e1
updated phasor documentation
JoeStanleySEL May 6, 2022
1d7c96b
forgot to add function call
JoeStanleySEL May 6, 2022
64544c4
updated constants usage and rendering
JoeStanleySEL May 6, 2022
73e4291
updated a handful of small things in documentation
JoeStanleySEL May 6, 2022
a3502a2
added renders for a few of the newer plotting functions
JoeStanleySEL May 6, 2022
97f8927
fixed typo
JoeStanleySEL May 6, 2022
4ae4439
cleaned up a few errors, updated some of the visu items
JoeStanleySEL May 6, 2022
58798bd
updated a number of small module details
JoeStanleySEL May 6, 2022
1b17e7f
added call to render_convbar_example
JoeStanleySEL May 6, 2022
45c0f29
adjusted casing for index
JoeStanleySEL May 6, 2022
64b24d2
Merge pull request #50 from engineerjoe440/feature/add-image-renderin…
engineerjoe440 May 6, 2022
07e27f4
cleaned up readme
JoeStanleySEL May 6, 2022
74c79db
Correct NumPy/SciPy/SymPy Casing in README
SohamRatnaparkhi May 6, 2022
a93adb5
Merge pull request #1 from SohamRatnaparkhi/SohamRatnaparkhi-patch-1
SohamRatnaparkhi May 6, 2022
bf37cff
Update CONTRIBUTING.md
SohamRatnaparkhi May 6, 2022
4be1222
Merge pull request #2 from SohamRatnaparkhi/SohamRatnaparkhi-patch-2
SohamRatnaparkhi May 6, 2022
a416ff9
NumPy/SciPy/SymPy Casing in requirements.txt
SohamRatnaparkhi May 6, 2022
481f03c
Merge pull request #52 from SohamRatnaparkhi/master
engineerjoe440 May 6, 2022
7e9f3e6
Added acknowledgement to Soham Ratnaparkhi
engineerjoe440 May 6, 2022
376ddea
Updated version to cut a new release!
engineerjoe440 May 6, 2022
0180c45
fixed #49 issues for different functions
tanvir-riyad May 6, 2022
e33490b
Merge pull request #63 from tanvir-riyad/patch-1
engineerjoe440 May 6, 2022
8ffe5ec
added link of dynamic list of contributors
ankush-0x90 May 6, 2022
5c88047
Merge pull request #65 from asprazz/feature-dynamic-contrib-list
engineerjoe440 May 6, 2022
a0d8dc8
modified rendering process
JoeStanleySEL May 7, 2022
44705a5
improved path handling for cross-tool support
JoeStanleySEL May 7, 2022
ccf48e8
added path to allow better behavior
engineerjoe440 May 7, 2022
5b78970
Added conversion functions for dbw to dbmw and watts, watts to dbw an…
Neidermeyer May 7, 2022
97f359a
Merge pull request #67 from Neidermeyer/master
engineerjoe440 May 7, 2022
dceeaab
corrected docstyle lint errors in conversions.py
engineerjoe440 May 7, 2022
bbb368e
cleaned up some documentation issues
engineerjoe440 May 7, 2022
bb94e8a
corrected test issues
engineerjoe440 May 7, 2022
4d0f452
ignore api auto-generated content
engineerjoe440 May 7, 2022
c7b3354
Merge pull request #73 from engineerjoe440/develop
engineerjoe440 May 7, 2022
b2bbe46
updates to reflect move to readthedocs from ghpages
engineerjoe440 May 7, 2022
a12ab57
updated badges
engineerjoe440 May 7, 2022
134274c
Fix#72 Add Voltage Decibel Functions
khan-asfi-reza May 8, 2022
85719fd
removed traling and leading spaces
Lakshmikanth2001 May 9, 2022
ed703c9
improved `render_images` , added images
Lakshmikanth2001 May 9, 2022
9e7148f
scatter plot, leading spaces correction
Lakshmikanth2001 May 9, 2022
900af89
Merge pull request #77 from Lakshmikanth2001/master
engineerjoe440 May 9, 2022
9651fc6
Fix#72 Remove blank line - pydocstyle
khan-asfi-reza May 9, 2022
3d689be
Merge pull request #76 from khan-asfi-reza/develop
engineerjoe440 May 9, 2022
c79ac6e
Fix#75 Redundant parentheses and comparison to None Fixed
khan-asfi-reza May 9, 2022
1ab3360
Fix#75 Pydocstyle convention followed
khan-asfi-reza May 9, 2022
7cb1aba
Merge pull request #79 from khan-asfi-reza/develop
engineerjoe440 May 9, 2022
4ff5a6a
Fix #80 Use callable() function to check if an object is function
khan-asfi-reza May 9, 2022
927dc22
Merge pull request #81 from khan-asfi-reza/develop
engineerjoe440 May 9, 2022
0ac3f4e
Removed redundant parentheses
khan-asfi-reza May 9, 2022
695cfd6
Added formula #71 LM317 Output Voltage
khan-asfi-reza May 9, 2022
f2ce673
pydocstyle #169 Fix
khan-asfi-reza May 9, 2022
795b029
Add Zener Diode Functions #69
iwayankurniawan May 9, 2022
f434544
#71 LM317 Formulas Return All Possible values
khan-asfi-reza May 9, 2022
8e7f2b8
pydocstyle #172 Fix
khan-asfi-reza May 9, 2022
3107357
Added ref image and attribution credit.
khan-asfi-reza May 9, 2022
0f6f15f
Merge pull request #82 from khan-asfi-reza/lm317
engineerjoe440 May 9, 2022
443cb4a
Merge branch 'lm317' into develop
khan-asfi-reza May 9, 2022
51b02f4
Merge branch 'develop' into develop
engineerjoe440 May 9, 2022
3fd48cb
Merge pull request #83 from iwayankurniawan/develop
engineerjoe440 May 9, 2022
9613315
Remove redundant parentheses and logic fix
khan-asfi-reza May 9, 2022
e43f9c3
updates to reflect move to readthedocs from ghpages
engineerjoe440 May 7, 2022
413c51c
updated badges
engineerjoe440 May 7, 2022
ddf8087
Fix#72 Add Voltage Decibel Functions
khan-asfi-reza May 8, 2022
27ac273
Fix#72 Remove blank line - pydocstyle
khan-asfi-reza May 9, 2022
05334e2
Merge branch 'engineerjoe440:develop' into develop
khan-asfi-reza May 9, 2022
adab5cd
resolved conflicts
JoeStanleySEL May 9, 2022
899bedc
Fix#75 Pydocstyle convention followed
khan-asfi-reza May 9, 2022
7d2bd3a
Fix #80 Use callable() function to check if an object is function
khan-asfi-reza May 9, 2022
bab16e2
Add Zener Diode Functions #69
iwayankurniawan May 9, 2022
6baf23a
Added formula #71 LM317 Output Voltage
khan-asfi-reza May 9, 2022
3ab5b3e
pydocstyle #169 Fix
khan-asfi-reza May 9, 2022
02e0e70
#71 LM317 Formulas Return All Possible values
khan-asfi-reza May 9, 2022
e0c5b6d
pydocstyle #172 Fix
khan-asfi-reza May 9, 2022
6c9c197
Added ref image and attribution credit.
khan-asfi-reza May 9, 2022
f577109
Pydocstyle error #85 Fix
khan-asfi-reza May 9, 2022
8adfadf
addressed a few subtle docstring issues
JoeStanleySEL May 9, 2022
92b678d
addressed a few subtle docstring issues
JoeStanleySEL May 9, 2022
7c73c09
Pydocstyle error #85 Fix
khan-asfi-reza May 9, 2022
5f90fa6
Merge branch 'develop' into mergefix
khan-asfi-reza May 9, 2022
fa4dbd3
Pydocstyle error
khan-asfi-reza May 9, 2022
9934709
Merge pull request #84 from khan-asfi-reza/mergefix
engineerjoe440 May 9, 2022
ac797ff
addressed a few merge messes
JoeStanleySEL May 9, 2022
c22290b
Remove unused parentheses and logic fix
khan-asfi-reza May 9, 2022
3017bc1
Merge pull request #86 from khan-asfi-reza/develop
engineerjoe440 May 9, 2022
f99b811
touched up reference-attribution and math statements
JoeStanleySEL May 9, 2022
926e392
Fix Typo, Fix Outer Space Variable shadowing error, Remove unnecessar…
khan-asfi-reza May 9, 2022
a5bace6
touched up reference-attribution
JoeStanleySEL May 9, 2022
6a1bacb
Merge branch 'engineerjoe440:develop' into develop
khan-asfi-reza May 9, 2022
aefae8d
Update issue templates
engineerjoe440 May 9, 2022
e42dc6b
Typo fix
khan-asfi-reza May 9, 2022
f64b355
Merge branch 'engineerjoe440:develop' into develop
khan-asfi-reza May 9, 2022
c6f1e03
Merge pull request #88 from khan-asfi-reza/develop
engineerjoe440 May 9, 2022
83dbf25
Fix #89 Duplicate Fix
khan-asfi-reza May 9, 2022
013e0f1
Merge remote-tracking branch 'origin/develop' into develop
khan-asfi-reza May 9, 2022
0dbd1fd
Merge pull request #90 from khan-asfi-reza/develop
engineerjoe440 May 9, 2022
2cb082f
add documentation for tcycle and fix bug in tcycle function
iwayankurniawan May 10, 2022
ed5effc
fix section underline
iwayankurniawan May 10, 2022
3c599b1
add try/except in t_cycle function
iwayankurniawan May 11, 2022
1b6a61d
Merge pull request #91 from iwayankurniawan/develop
engineerjoe440 May 11, 2022
91b5b65
bug fix for tcycle method
Lakshmikanth2001 Jun 13, 2022
7b8eea8
test correction
Lakshmikanth2001 Jun 13, 2022
9fa0b74
pydoc correction
Lakshmikanth2001 Jun 13, 2022
27bd689
`exec` ommition in `test`
Lakshmikanth2001 Jun 25, 2022
5966b11
`pydoc` correction
Lakshmikanth2001 Jun 25, 2022
98bfbba
improved `syncspeed`
Lakshmikanth2001 Jul 1, 2022
e679a3f
corrected indentation in README, adjusted file extension
engineerjoe440 Jul 1, 2022
5a99257
added alt-text, converted to myst-parser
engineerjoe440 Jul 1, 2022
840512e
converted to myst-parser
engineerjoe440 Jul 1, 2022
5d14308
changed to include directive
engineerjoe440 Jul 1, 2022
00e6116
enabled myst extensions
engineerjoe440 Jul 1, 2022
f411abd
called out parser
engineerjoe440 Jul 1, 2022
8844e97
added linkify designator
engineerjoe440 Jul 1, 2022
d848257
`rpm` doc correction
Lakshmikanth2001 Jul 2, 2022
2034a2d
reduced `try-expect` block
Lakshmikanth2001 Jul 2, 2022
ef7d1d1
Merge pull request #95 from Lakshmikanth2001/master
engineerjoe440 Jul 2, 2022
f1cadce
Merge pull request #93 from Lakshmikanth2001/develop
engineerjoe440 Jul 2, 2022
cc819d4
fixed `release.yml` workflow
Lakshmikanth2001 Jul 3, 2022
f1b255e
Merge branch 'master' of https://github.com/Lakshmikanth2001/ElectricPy
Lakshmikanth2001 Jul 3, 2022
36034f3
workflow corrections
Lakshmikanth2001 Jul 3, 2022
a9f474c
`setup.py` code changes
Lakshmikanth2001 Jul 3, 2022
dcdae7d
`docsource\config.py` correction
Lakshmikanth2001 Jul 3, 2022
207cf69
Merge branch 'develop' into master
Lakshmikanth2001 Jul 5, 2022
0a4991f
Merge pull request #96 from Lakshmikanth2001/master
engineerjoe440 Jul 5, 2022
d0540a9
test addtion for `Netwon Raphson` and `tcycle`
Lakshmikanth2001 Jul 31, 2022
77aa846
Merge pull request #98 from Lakshmikanth2001/develop
engineerjoe440 Aug 12, 2022
52a9cbe
updated module docs, moved rtd/thermal stuff to thermal module, moved…
engineerjoe440 Aug 26, 2022
8d93738
corrected some image rendering for docs
engineerjoe440 Aug 26, 2022
d828182
added some examples for usage
engineerjoe440 Aug 26, 2022
1e01121
updated (some) documentation
engineerjoe440 Aug 26, 2022
b5c1fbc
updated (some) documentation
engineerjoe440 Aug 26, 2022
37a8779
new compute module
engineerjoe440 Aug 27, 2022
08491a3
added xdoctest
engineerjoe440 Aug 27, 2022
9b53963
touched up tests
engineerjoe440 Aug 27, 2022
431ee80
updated a number of examples to correct their usage
engineerjoe440 Aug 28, 2022
9159cad
resolved a handful of tests
engineerjoe440 Aug 28, 2022
57a25df
resolved a handful of tests
engineerjoe440 Aug 28, 2022
be81f3a
resolved a handful of tests
engineerjoe440 Aug 28, 2022
9ec06b7
Merge pull request #100 from engineerjoe440/enhancements/autumn-2022
engineerjoe440 Aug 28, 2022
93fe835
trying a new icon
engineerjoe440 Aug 28, 2022
1c2ad89
trying a new icon
engineerjoe440 Aug 28, 2022
a40ab42
trying a new icon
engineerjoe440 Aug 28, 2022
faf48a5
trying a new icon
engineerjoe440 Aug 28, 2022
7fc4b5f
updates to sizing
engineerjoe440 Aug 28, 2022
0754aad
added some examples for basic functions, created machines module
engineerjoe440 Aug 28, 2022
2332776
bumped version
engineerjoe440 Aug 28, 2022
d6b7d69
fixed documentation example
engineerjoe440 Aug 28, 2022
fdefb0f
resolved test failures
engineerjoe440 Aug 28, 2022
c3f6966
Merge pull request #101 from engineerjoe440/fixes/autumn-2022
engineerjoe440 Aug 28, 2022
e4a353c
quick update to include Python 3.11
engineerjoe440 Nov 2, 2022
b368fe6
sphinx doesn't like 3.11? eh... we'll deal with that later
engineerjoe440 Nov 2, 2022
71e18a3
touched up some inconsistencies in the fault module
engineerjoe440 Aug 31, 2022
2efcb46
touched up some inconsistencies in the fault module
engineerjoe440 Aug 31, 2022
aa003b5
added a number of minor examples in conversions module
engineerjoe440 Aug 31, 2022
2757e9b
moved power-triangle function to visu, added some more examples
engineerjoe440 Aug 31, 2022
01fcee9
updated icon
engineerjoe440 Sep 1, 2022
0dca6b4
small updates to enhance readme
engineerjoe440 Dec 23, 2022
9a37332
update phasors path
engineerjoe440 Dec 24, 2022
9913205
updated for phasor path and use pyproject.toml
engineerjoe440 Dec 24, 2022
e1f245b
updated for python 3.11, fixed some tests and import
engineerjoe440 Dec 24, 2022
8725b51
added matrix channel
engineerjoe440 Dec 24, 2022
0356847
added matrix links
engineerjoe440 Dec 24, 2022
1370368
clarified variable name
engineerjoe440 Dec 24, 2022
580a4c5
updates to show some sample images
engineerjoe440 Dec 24, 2022
138de4c
Merge pull request #102 from engineerjoe440/fixes/autumn-2022
engineerjoe440 Dec 24, 2022
ca07a00
`Guard Clauses` refactor
Lakshmikanth2001 Dec 28, 2022
f89dff2
Merge pull request #103 from Lakshmikanth2001/develop
engineerjoe440 Dec 28, 2022
11cb0b1
update matrix badge
engineerjoe440 Dec 29, 2022
1abd035
`test` reorganizations
Lakshmikanth2001 Dec 30, 2022
176b056
updated to include authors in pyproject.toml
engineerjoe440 Jan 8, 2023
6fff93d
updated to include authors in pyproject.toml
engineerjoe440 Jan 8, 2023
ff83071
Merge branch 'develop' of https://github.com/Lakshmikanth2001/Electri…
Lakshmikanth2001 Mar 4, 2023
b786a5f
Merge pull request #105 from Lakshmikanth2001/develop
engineerjoe440 Mar 4, 2023
e618992
add config for autoDocstring
engineerjoe440 Mar 7, 2023
60b7e9d
add new resources
engineerjoe440 May 9, 2023
b9e6383
cleanup and addition of .readthedocs.yaml file
engineerjoe440 May 13, 2023
fa5ee7c
additional cleanup
engineerjoe440 May 13, 2023
345dcde
additional cleanup
engineerjoe440 May 13, 2023
9a45e3d
updated readme with installation options
engineerjoe440 May 13, 2023
6ed44b0
Merge pull request #109 from engineerjoe440/dev/explore-#108
engineerjoe440 May 13, 2023
77cb670
`seriesRLC` init
Lakshmikanth2001 May 18, 2023
555834a
typo fix
Lakshmikanth2001 May 18, 2023
d53df72
pydocs fix
Lakshmikanth2001 May 18, 2023
63da128
removing unwanted files and correcting pydoc issue
Lakshmikanth2001 May 18, 2023
3cf4e81
Merge pull request #111 from Lakshmikanth2001/develop
engineerjoe440 May 18, 2023
486d5cd
update to images and documentation
engineerjoe440 May 18, 2023
f6100b9
fix docstring
engineerjoe440 May 18, 2023
5dd32fc
update docstrings to show plots, etc.
engineerjoe440 May 18, 2023
5f04960
fix error and call rendering functions
engineerjoe440 May 18, 2023
2bf263e
update version in preparation of next release
engineerjoe440 May 18, 2023
83dfa5f
update to new actions
engineerjoe440 May 18, 2023
4f6f83a
use regularly-rendered images
engineerjoe440 May 18, 2023
9acc13c
update image to include legend
engineerjoe440 May 18, 2023
6d44b1f
fix iteration issue with plotting legend
engineerjoe440 May 18, 2023
d989e7a
update documentation source for README
engineerjoe440 Jul 27, 2023
5827eb2
remove invalid path option
engineerjoe440 Jul 27, 2023
f3bd935
add pip-audit
engineerjoe440 Oct 4, 2023
7180b20
update pip audit
engineerjoe440 Oct 4, 2023
f3dac4a
update dev env
engineerjoe440 Dec 17, 2023
bfb214c
migrate to sphinx-immaterial
engineerjoe440 Dec 17, 2023
5665a72
Update __init__.py: Fix monostable return, sequence transforms, and g…
marcostfermin Jan 7, 2026
5c874ba
Refactor bode.py for type checking and plotting, among other items
marcostfermin Jan 7, 2026
86b6307
Update compute.py: Fix monostable return, sequence transforms, and ge…
marcostfermin Jan 7, 2026
693a27a
Update constants.py: Fix typos and update constants
marcostfermin Jan 7, 2026
06852a2
Fix monostable return, sequence transforms, and geometry equality, bugs
marcostfermin Jan 7, 2026
2028c35
Update fault.py: Bugfixes
marcostfermin Jan 7, 2026
3f806b9
Update latex.py: Enhance LaTeX formatting for complex numbers and pol…
marcostfermin Jan 7, 2026
88d7699
Fix monostable return, sequence transforms, and geometry equality, bu…
marcostfermin Jan 7, 2026
51b73f6
Update math.py: Fixed bugs and fft logic. Fix monostable return, sequ…
marcostfermin Jan 7, 2026
ff8644c
fix(passive): validate inputs, correct inductive divider math, and ha…
marcostfermin Jan 7, 2026
2dbd8f7
Update phasors.py: Fix monostable return, sequence transforms, and ge…
marcostfermin Jan 7, 2026
a3d390e
fix(sim): harden filter simulation, state-space forcing handling, and…
marcostfermin Jan 7, 2026
66cc3be
Update thermal.py: marcostfermin committed 1 hour ago · Fix monostab…
marcostfermin Jan 7, 2026
ffd9fa5
Update version.py: Bump version from 0.4.0 to 0.5.0
marcostfermin Jan 7, 2026
be92390
fix(visu): harden phasorplot legend handling; correct power-factor ca…
marcostfermin Jan 7, 2026
5c5a129
Update __init__.py: Fix monostable return, sequence transforms, and g…
marcostfermin Jan 7, 2026
6c83712
Enhance circle.py with better type handling and methods
marcostfermin Jan 7, 2026
2b535d5
Update __init__.py: Fix monostable return, sequence transforms, and g…
marcostfermin Jan 7, 2026
7d2581a
Enhance circle.py with better type handling and methods
marcostfermin Jan 7, 2026
abf7a5f
Refactor Triangle class and improve documentation
marcostfermin Jan 7, 2026
89149d6
Create test_bode.py
marcostfermin Jan 7, 2026
625250f
Create test_bugfixes.py: Validate largest_integer numBits
marcostfermin Jan 7, 2026
972e0b0
Update test_circle.py: Expand triangle module tests
marcostfermin Jan 7, 2026
ad1eb83
Create test_compute.py: Fix CRC remainder computation and tests
marcostfermin Jan 7, 2026
a57481d
Create test_constants.py
marcostfermin Jan 7, 2026
109dab5
Create test_conversions.py
marcostfermin Jan 7, 2026
1a0b621
Update test_electricpy.py
marcostfermin Jan 7, 2026
c996dba
Create test_electricpy_init.py
marcostfermin Jan 7, 2026
8ab8c46
Create test_fault.py
marcostfermin Jan 7, 2026
c6e9182
Create test_geometry_init.py
marcostfermin Jan 7, 2026
6b47efb
Create test_latex.py: Add broader tests across plotting and utility m…
marcostfermin Jan 7, 2026
c7e2cc2
Create test_machines.py
marcostfermin Jan 7, 2026
6b396f1
Create test_math.py
marcostfermin Jan 7, 2026
e8698de
Create test_passive.py
marcostfermin Jan 7, 2026
084de0c
Create test_sim.py
marcostfermin Jan 7, 2026
506c463
Create test_thermal.py
marcostfermin Jan 7, 2026
899de1c
Update test_triangle.py
marcostfermin Jan 7, 2026
e14cfd8
Create test_version.py
marcostfermin Jan 7, 2026
d512d57
Refresh contributors
marcostfermin Jan 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[report]
# Regexes for lines to exclude from consideration
exclude_lines =

# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
raise ValueError
296 changes: 296 additions & 0 deletions .gitchangelog.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,296 @@
# -*- coding: utf-8; mode: python -*-
##
## Format
##
## ACTION: [AUDIENCE:] COMMIT_MSG [!TAG ...]
##
## Description
##
## ACTION is one of 'chg', 'fix', 'new'
##
## Is WHAT the change is about.
##
## 'chg' is for refactor, small improvement, cosmetic changes...
## 'fix' is for bug fixes
## 'new' is for new features, big improvement
##
## AUDIENCE is optional and one of 'dev', 'usr', 'pkg', 'test', 'doc'
##
## Is WHO is concerned by the change.
##
## 'dev' is for developpers (API changes, refactors...)
## 'usr' is for final users (UI changes)
## 'pkg' is for packagers (packaging changes)
## 'test' is for testers (test only related changes)
## 'doc' is for doc guys (doc only changes)
##
## COMMIT_MSG is ... well ... the commit message itself.
##
## TAGs are additionnal adjective as 'refactor' 'minor' 'cosmetic'
##
## They are preceded with a '!' or a '@' (prefer the former, as the
## latter is wrongly interpreted in github.) Commonly used tags are:
##
## 'refactor' is obviously for refactoring code only
## 'minor' is for a very meaningless change (a typo, adding a comment)
## 'cosmetic' is for cosmetic driven change (re-indentation, 80-col...)
## 'wip' is for partial functionality but complete subfunctionality.
##
## Example:
##
## new: usr: support of bazaar implemented
## chg: re-indentend some lines !cosmetic
## new: dev: updated code to be compatible with last version of killer lib.
## fix: pkg: updated year of licence coverage.
## new: test: added a bunch of test around user usability of feature X.
## fix: typo in spelling my name in comment. !minor
##
## Please note that multi-line commit message are supported, and only the
## first line will be considered as the "summary" of the commit message. So
## tags, and other rules only applies to the summary. The body of the commit
## message will be displayed in the changelog without reformatting.
def writefile(lines):
# Develop Full String of Log
log = ''
for line in lines:
log += line
import re
log = re.sub(r'\[\w{1,20}\n? {0,8}\w{1,20}\]','', log)
print(log)
with open('source/changelog.rst','w') as changelog:
changelog.write(log)
print("Update CHANGELOG.rst Complete.")

##
## ``ignore_regexps`` is a line of regexps
##
## Any commit having its full commit message matching any regexp listed here
## will be ignored and won't be reported in the changelog.
##
ignore_regexps = [
r'\(private\)',
r'@minor', r'!minor',
r'@cosmetic', r'!cosmetic',
r'@refactor', r'!refactor',
r'@wip', r'!wip',
r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*[p|P]kg:',
r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*[d|D]ev:',
r'^(.{3,3}\s*:)?\s*[fF]irst commit.?\s*$',
r'^$', ## ignore commits with empty messages
]


## ``section_regexps`` is a list of 2-tuples associating a string label and a
## list of regexp
##
## Commit messages will be classified in sections thanks to this. Section
## titles are the label, and a commit is classified under this section if any
## of the regexps associated is matching.
##
## Please note that ``section_regexps`` will only classify commits and won't
## make any changes to the contents. So you'll probably want to go check
## ``subject_process`` (or ``body_process``) to do some changes to the subject,
## whenever you are tweaking this variable.
##
section_regexps = [
('New', [
r'^[nN]ew\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
]),
('Changes', [
r'^[cC]hg\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
]),
('Fix', [
r'^[fF]ix\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
]),

('Other', None ## Match all lines
),

]


## ``body_process`` is a callable
##
## This callable will be given the original body and result will
## be used in the changelog.
##
## Available constructs are:
##
## - any python callable that take one txt argument and return txt argument.
##
## - ReSub(pattern, replacement): will apply regexp substitution.
##
## - Indent(chars=" "): will indent the text with the prefix
## Please remember that template engines gets also to modify the text and
## will usually indent themselves the text if needed.
##
## - Wrap(regexp=r"\n\n"): re-wrap text in separate paragraph to fill 80-Columns
##
## - noop: do nothing
##
## - ucfirst: ensure the first letter is uppercase.
## (usually used in the ``subject_process`` pipeline)
##
## - final_dot: ensure text finishes with a dot
## (usually used in the ``subject_process`` pipeline)
##
## - strip: remove any spaces before or after the content of the string
##
## - SetIfEmpty(msg="No commit message."): will set the text to
## whatever given ``msg`` if the current text is empty.
##
## Additionally, you can `pipe` the provided filters, for instance:
#body_process = Wrap(regexp=r'\n(?=\w+\s*:)') | Indent(chars=" ")
#body_process = Wrap(regexp=r'\n(?=\w+\s*:)')
#body_process = noop
body_process = ReSub(r'((^|\n)[A-Z]\w+(-\w+)*: .*(\n\s+.*)*)+$', r'') | strip


## ``subject_process`` is a callable
##
## This callable will be given the original subject and result will
## be used in the changelog.
##
## Available constructs are those listed in ``body_process`` doc.
subject_process = (strip |
ReSub(r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n@]*)(@[a-z]+\s+)*$', r'\4') |
SetIfEmpty("No commit message.") | ucfirst | final_dot)


## ``tag_filter_regexp`` is a regexp
##
## Tags that will be used for the changelog must match this regexp.
##
tag_filter_regexp = r'^[0-9]+(\.[0-9]+)?$'


## ``unreleased_version_label`` is a string or a callable that outputs a string
##
## This label will be used as the changelog Title of the last set of changes
## between last valid tag and HEAD if any.
unreleased_version_label = "(unreleased)"


## ``output_engine`` is a callable
##
## This will change the output format of the generated changelog file
##
## Available choices are:
##
## - rest_py
##
## Legacy pure python engine, outputs ReSTructured text.
## This is the default.
##
## - mustache(<template_name>)
##
## Template name could be any of the available templates in
## ``templates/mustache/*.tpl``.
## Requires python package ``pystache``.
## Examples:
## - mustache("markdown")
## - mustache("restructuredtext")
##
## - makotemplate(<template_name>)
##
## Template name could be any of the available templates in
## ``templates/mako/*.tpl``.
## Requires python package ``mako``.
## Examples:
## - makotemplate("restructuredtext")
##
output_engine = rest_py
#output_engine = mustache("restructuredtext")
#output_engine = mustache("markdown")
#output_engine = makotemplate("restructuredtext")


## ``include_merge`` is a boolean
##
## This option tells git-log whether to include merge commits in the log.
## The default is to include them.
include_merge = True


## ``log_encoding`` is a string identifier
##
## This option tells gitchangelog what encoding is outputed by ``git log``.
## The default is to be clever about it: it checks ``git config`` for
## ``i18n.logOutputEncoding``, and if not found will default to git's own
## default: ``utf-8``.
#log_encoding = 'utf-8'


## ``publish`` is a callable
##
## Sets what ``gitchangelog`` should do with the output generated by
## the output engine. ``publish`` is a callable taking one argument
## that is an interator on lines from the output engine.
##
## Some helper callable are provided:
##
## Available choices are:
##
## - stdout
##
## Outputs directly to standard output
## (This is the default)
##
## - FileInsertAtFirstRegexMatch(file, pattern, idx=lamda m: m.start())
##
## Creates a callable that will parse given file for the given
## regex pattern and will insert the output in the file.
## ``idx`` is a callable that receive the matching object and
## must return a integer index point where to insert the
## the output in the file. Default is to return the position of
## the start of the matched string.
##
## - FileRegexSubst(file, pattern, replace, flags)
##
## Apply a replace inplace in the given file. Your regex pattern must
## take care of everything and might be more complex. Check the README
## for a complete copy-pastable example.
##
publish = writefile
#publish = stdout


## ``revs`` is a list of callable or a list of string
##
## callable will be called to resolve as strings and allow dynamical
## computation of these. The result will be used as revisions for
## gitchangelog (as if directly stated on the command line). This allows
## to filter exaclty which commits will be read by gitchangelog.
##
## To get a full documentation on the format of these strings, please
## refer to the ``git rev-list`` arguments. There are many examples.
##
## Using callables is especially useful, for instance, if you
## are using gitchangelog to generate incrementally your changelog.
##
## Some helpers are provided, you can use them::
##
## - FileFirstRegexMatch(file, pattern): will return a callable that will
## return the first string match for the given pattern in the given file.
## If you use named sub-patterns in your regex pattern, it'll output only
## the string matching the regex pattern named "rev".
##
## - Caret(rev): will return the rev prefixed by a "^", which is a
## way to remove the given revision and all its ancestor.
##
## Please note that if you provide a rev-list on the command line, it'll
## replace this value (which will then be ignored).
##
## If empty, then ``gitchangelog`` will act as it had to generate a full
## changelog.
##
## The default is to use all commits to make the changelog.
#revs = ["^1.0.3", ]
#revs = [
# Caret(
# FileFirstRegexMatch(
# "CHANGELOG.rst",
# r"(?P<rev>[0-9]+\.[0-9]+(\.[0-9]+)?)\s+\([0-9]+-[0-9]{2}-[0-9]{2}\)\n--+\n")),
# "HEAD"
#]
revs = []
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Bug report
about: Report a problem or unexpected behavior in ElectricPy or its Documentation
title: ''
labels: bug
assignees: engineerjoe440

---

**Describe the bug**
A clear and concise description of what the bug is.

**Reproduction Code**
```python
# Setup
import electricpy as ep

# Code which causes failure
ep.do_something_broken(breaking_input)
```

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. Linux]
- Python Version [e.g. 3.7]
- Version [e.g. 0.2.1]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for ElectricPy
title: ''
labels: enhancement
assignees: ''

---

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Link to Formulas and Example References**
* [link 1](https://engineerjoe440.github.io/ElectricPy/)

**Additional context**
Add any other context or screenshots about the feature request here.
15 changes: 15 additions & 0 deletions .github/workflows/pipaudit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: pip-audit

on: [push, pull_request]

jobs:
selftest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install
run: python -m pip install .
- uses: pypa/gh-action-pip-audit@v1.0.8
with:
# NOTE: this can be `.`, for the current directory
inputs: .
Loading