Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

max points to 4e3 #1254

Merged
merged 3 commits into from Feb 9, 2023
Merged

max points to 4e3 #1254

merged 3 commits into from Feb 9, 2023

Conversation

joamatab
Copy link
Contributor

@joamatab joamatab commented Feb 9, 2023

  • default max points to 4e3
  • use constants in pdk

@tvt173

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Feb 9, 2023

Sourcery Code Quality Report

❌  Merging this PR will decrease code quality in the affected files by 0.43%.

Quality metrics Before After Change
Complexity 7.01 ⭐ 7.24 ⭐ 0.23 👎
Method Length 66.45 🙂 67.32 🙂 0.87 👎
Working memory 7.83 🙂 7.92 🙂 0.09 👎
Quality 65.30% 🙂 64.87% 🙂 -0.43% 👎
Other metrics Before After Change
Lines 3006 3054 48
Changed files Quality Before Quality After Quality Change
gdsfactory/component.py 65.40% 🙂 64.87% 🙂 -0.53% 👎
gdsfactory/pdk.py 65.83% 🙂 65.81% 🙂 -0.02% 👎
gdsfactory/write_cells.py 59.56% 🙂 59.33% 🙂 -0.23% 👎
gdsfactory/generic_tech/__init__.py 82.92% ⭐ 82.33% ⭐ -0.59% 👎

Here are some functions in these files that still need a tune-up:

File Function Complexity Length Working Memory Quality Recommendation
gdsfactory/component.py Component._write_library 25 😞 402 ⛔ 19 ⛔ 18.24% ⛔ Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
gdsfactory/component.py flatten_invalid_refs_recursive 20 😞 325 ⛔ 27.26% 😞 Refactor to reduce nesting. Try splitting into smaller methods
gdsfactory/pdk.py Pdk._get_component 22 😞 255 ⛔ 14 😞 29.14% 😞 Refactor to reduce nesting. Try splitting into smaller methods. Extract out complex expressions
gdsfactory/component.py Component.plot_holoviews 14 🙂 475 ⛔ 12 😞 33.50% 😞 Try splitting into smaller methods. Extract out complex expressions
gdsfactory/component.py Component.add_polygon 18 🙂 282 ⛔ 12 😞 33.79% 😞 Try splitting into smaller methods. Extract out complex expressions

Legend and Explanation

The emojis denote the absolute quality of the code:

  • ⭐ excellent
  • 🙂 good
  • 😞 poor
  • ⛔ very poor

The 👍 and 👎 indicate whether the quality has improved or gotten worse with this pull request.


Please see our documentation here for details on how these metrics are calculated.

We are actively working on this report - lots more documentation and extra metrics to come!

Help us improve this quality report!

@codecov
Copy link

codecov bot commented Feb 9, 2023

Codecov Report

Merging #1254 (5879dab) into main (e45404d) will decrease coverage by 0.02%.
The diff coverage is 47.05%.

@@            Coverage Diff             @@
##             main    #1254      +/-   ##
==========================================
- Coverage   68.78%   68.77%   -0.02%     
==========================================
  Files         356      356              
  Lines       21175    21185      +10     
  Branches     3039     3041       +2     
==========================================
+ Hits        14566    14570       +4     
- Misses       5752     5758       +6     
  Partials      857      857              
Impacted Files Coverage Δ
gdsfactory/pdk.py 55.32% <ø> (ø)
gdsfactory/write_cells.py 72.94% <0.00%> (-5.54%) ⬇️
gdsfactory/component.py 68.38% <77.77%> (+0.13%) ⬆️
gdsfactory/generic_tech/__init__.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@joamatab joamatab merged commit a212e9c into main Feb 9, 2023
@joamatab joamatab deleted the 6351 branch February 9, 2023 15:09
joamatab added a commit that referenced this pull request Feb 20, 2023
max points to 4e3

Former-commit-id: a212e9c
joamatab added a commit that referenced this pull request Feb 20, 2023
max points to 4e3

Former-commit-id: 215202a [formerly a212e9c]
Former-commit-id: ffc715c
joamatab added a commit that referenced this pull request Feb 23, 2023
max points to 4e3

Former-commit-id: 215202a [formerly 55b0e3e [formerly 59c46e7c56f799ba9ceebc0930d8e42770a9c5a2] [formerly ffc715c [formerly a212e9c]]]
Former-commit-id: ffc715c
Former-commit-id: 6ef14270d5edba8051404078b1107fa0e942d392 [formerly d2a804f]
Former-commit-id: 38631a085417b3269ea3086287afaa20d3923434
simbilod pushed a commit to simbilod/gdsfactory that referenced this pull request Mar 2, 2023
max points to 4e3

Former-commit-id: ffc715c [formerly a212e9c]
Former-commit-id: 59c46e7c56f799ba9ceebc0930d8e42770a9c5a2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant