From 39adea7eb9b9e28ae0a42f204a5dada8d6b66de6 Mon Sep 17 00:00:00 2001 From: Facebook Community Bot Date: Wed, 14 Jan 2026 08:43:57 -0800 Subject: [PATCH 1/4] OSS Automated Fix: Addition of Code of Conduct --- CODE_OF_CONDUCT.md | 80 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 CODE_OF_CONDUCT.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..3232ed6 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,80 @@ +# Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to make participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, sex characteristics, gender identity and expression, +level of experience, education, socio-economic status, nationality, personal +appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or +advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic +address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a +professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies within all project spaces, and it also applies when +an individual is representing the project or its community in public spaces. +Examples of representing a project or community include using an official +project e-mail address, posting via an official social media account, or acting +as an appointed representative at an online or offline event. Representation of +a project may be further defined and clarified by project maintainers. + +This Code of Conduct also applies outside the project spaces when there is a +reasonable belief that an individual's behavior may have a negative impact on +the project or its community. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting the project team at . All +complaints will be reviewed and investigated and will result in a response that +is deemed necessary and appropriate to the circumstances. The project team is +obligated to maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, +available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see +https://www.contributor-covenant.org/faq From 2d811e5938e96698ef4f64b9bc74ae4c145af6b3 Mon Sep 17 00:00:00 2001 From: Kevin Broch Date: Wed, 11 Feb 2026 11:50:52 -0800 Subject: [PATCH 2/4] Add copyright/license header to make pre-commit happy --- CODE_OF_CONDUCT.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 3232ed6..9c64c0c 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,3 +1,8 @@ + # Code of Conduct ## Our Pledge From 1b12ac1b0ea3ba619c37c3fa3c6fc867cd3cbaa0 Mon Sep 17 00:00:00 2001 From: Kevin Broch Date: Wed, 11 Feb 2026 12:20:34 -0800 Subject: [PATCH 3/4] update pre-commit repo version to latest --- .pre-commit-config.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e29e0fc..636d542 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks.git - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-added-large-files - id: check-ast @@ -27,38 +27,38 @@ repos: args: [--markdown-linebreak-ext=md] - repo: https://github.com/PyCQA/isort - rev: 6.0.1 + rev: 7.0.0 hooks: - id: isort - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.1.0 + rev: 26.1.0 hooks: - id: black - repo: https://github.com/ikamensh/flynt/ - rev: 1.0.1 + rev: 1.0.6 hooks: - id: flynt - repo: https://github.com/asottile/pyupgrade - rev: v3.19.1 + rev: v3.21.2 hooks: - id: pyupgrade - repo: https://github.com/rbubley/mirrors-prettier - rev: v3.5.3 + rev: v3.8.1 hooks: - id: prettier types_or: [yaml] # pull mirror of https://github.com/fsfe/reuse-tool - repo: https://github.com/rivosinc/reuse-tool - rev: da430ed605e06460b020a75410d62ddb7fc9a616 + rev: d9f8bf577d279cb1b8788d6e976a94ad828b6bb1 hooks: - id: reuse - repo: https://github.com/pycqa/flake8 - rev: 7.2.0 + rev: 7.3.0 hooks: - id: flake8 From e190fecdf527592a3f8d5e42c37c6871e700e95e Mon Sep 17 00:00:00 2001 From: Kevin Broch Date: Wed, 11 Feb 2026 12:23:23 -0800 Subject: [PATCH 4/4] automated fixed from pre-commit black formatter --- examples/Olympus/Script/Olympus_PCB_xtractDCR.py | 1 - examples/Olympus/Script/Olympus_PCB_xtractHSIO.py | 1 - examples/Olympus/Script/Olympus_PCB_xtractLSIO.py | 1 - examples/Olympus/Script/Olympus_PCB_xtractPDN.py | 1 - opensipi/autopwt/PyCode/generate_tcl.py | 1 + opensipi/autopwt/PyCode/sim_prepare.py | 1 + opensipi/autopwt/PyCode/tab_writter.py | 1 + opensipi/constants/CONSTANTS.py | 1 - opensipi/file_in.py | 1 - opensipi/gdrive_io.py | 1 - opensipi/gsheet_io.py | 1 - opensipi/integrated_flows.py | 1 - opensipi/sigrity_exec.py | 1 - opensipi/sigrity_tools.py | 1 - opensipi/sipi_infra.py | 1 - opensipi/touchstone.py | 1 - opensipi/util/common.py | 1 - opensipi/util/logs.py | 1 - 18 files changed, 3 insertions(+), 15 deletions(-) diff --git a/examples/Olympus/Script/Olympus_PCB_xtractDCR.py b/examples/Olympus/Script/Olympus_PCB_xtractDCR.py index 97b136f..4bd38c2 100644 --- a/examples/Olympus/Script/Olympus_PCB_xtractDCR.py +++ b/examples/Olympus/Script/Olympus_PCB_xtractDCR.py @@ -10,7 +10,6 @@ This is the main function for Project Olympus to auto extract DCR. """ - from opensipi.integrated_flows import sim2report input_info = { diff --git a/examples/Olympus/Script/Olympus_PCB_xtractHSIO.py b/examples/Olympus/Script/Olympus_PCB_xtractHSIO.py index 8832d91..e304384 100644 --- a/examples/Olympus/Script/Olympus_PCB_xtractHSIO.py +++ b/examples/Olympus/Script/Olympus_PCB_xtractHSIO.py @@ -11,7 +11,6 @@ S-para for PDN purposes. """ - from opensipi.integrated_flows import sim2report input_info = { diff --git a/examples/Olympus/Script/Olympus_PCB_xtractLSIO.py b/examples/Olympus/Script/Olympus_PCB_xtractLSIO.py index 9ddb0c3..4b90b3b 100644 --- a/examples/Olympus/Script/Olympus_PCB_xtractLSIO.py +++ b/examples/Olympus/Script/Olympus_PCB_xtractLSIO.py @@ -11,7 +11,6 @@ S-para for PDN purposes. """ - from opensipi.integrated_flows import sim2report input_info = { diff --git a/examples/Olympus/Script/Olympus_PCB_xtractPDN.py b/examples/Olympus/Script/Olympus_PCB_xtractPDN.py index 953f664..72a005e 100644 --- a/examples/Olympus/Script/Olympus_PCB_xtractPDN.py +++ b/examples/Olympus/Script/Olympus_PCB_xtractPDN.py @@ -11,7 +11,6 @@ S-para for PDN purposes. """ - from opensipi.integrated_flows import sim2report input_info = { diff --git a/opensipi/autopwt/PyCode/generate_tcl.py b/opensipi/autopwt/PyCode/generate_tcl.py index a08be3b..eede8df 100644 --- a/opensipi/autopwt/PyCode/generate_tcl.py +++ b/opensipi/autopwt/PyCode/generate_tcl.py @@ -3,6 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 """generate simulation tcl files""" + import os import shutil diff --git a/opensipi/autopwt/PyCode/sim_prepare.py b/opensipi/autopwt/PyCode/sim_prepare.py index 20bbf20..804fbde 100644 --- a/opensipi/autopwt/PyCode/sim_prepare.py +++ b/opensipi/autopwt/PyCode/sim_prepare.py @@ -2,6 +2,7 @@ # # SPDX-License-Identifier: Apache-2.0 """prepare simulation files""" + import glob import os import re diff --git a/opensipi/autopwt/PyCode/tab_writter.py b/opensipi/autopwt/PyCode/tab_writter.py index edd0f2a..820d351 100644 --- a/opensipi/autopwt/PyCode/tab_writter.py +++ b/opensipi/autopwt/PyCode/tab_writter.py @@ -3,6 +3,7 @@ # SPDX-License-Identifier: Apache-2.0 """include all the functions for uploading the results to gsheet""" + import csv import datetime import os diff --git a/opensipi/constants/CONSTANTS.py b/opensipi/constants/CONSTANTS.py index ca2fe10..1941b54 100644 --- a/opensipi/constants/CONSTANTS.py +++ b/opensipi/constants/CONSTANTS.py @@ -10,7 +10,6 @@ This module contains constants commonly used by OpenSIPI. """ - INPUT_FILE_STARTSWITH = [ "SIM", "SPECIAL_SETTINGS", diff --git a/opensipi/file_in.py b/opensipi/file_in.py index 824b6bb..9e6ebaf 100644 --- a/opensipi/file_in.py +++ b/opensipi/file_in.py @@ -10,7 +10,6 @@ This module processes input and output files. """ - import glob from opensipi.constants.CONSTANTS import SIM_INPUT_COL_TITLE, SPEC_TYPE diff --git a/opensipi/gdrive_io.py b/opensipi/gdrive_io.py index bb42b8c..8a883cc 100644 --- a/opensipi/gdrive_io.py +++ b/opensipi/gdrive_io.py @@ -8,7 +8,6 @@ https://www.thepythoncode.com/article/using-google-drive--api-in-python """ - import os import pickle import re diff --git a/opensipi/gsheet_io.py b/opensipi/gsheet_io.py index 8ea3091..1da35b9 100644 --- a/opensipi/gsheet_io.py +++ b/opensipi/gsheet_io.py @@ -10,7 +10,6 @@ This module handles gSheet services. """ - import random from time import sleep diff --git a/opensipi/integrated_flows.py b/opensipi/integrated_flows.py index b44dfec..e70ea31 100644 --- a/opensipi/integrated_flows.py +++ b/opensipi/integrated_flows.py @@ -10,7 +10,6 @@ This module contains all top-level integrated flows. """ - from opensipi.sipi_infra import Platform diff --git a/opensipi/sigrity_exec.py b/opensipi/sigrity_exec.py index c8d23dc..73f44f8 100644 --- a/opensipi/sigrity_exec.py +++ b/opensipi/sigrity_exec.py @@ -10,7 +10,6 @@ This module contains all Classes used to execute Cadence Sigrity Tools. """ - import math import os import re diff --git a/opensipi/sigrity_tools.py b/opensipi/sigrity_tools.py index 45126eb..972bf2c 100644 --- a/opensipi/sigrity_tools.py +++ b/opensipi/sigrity_tools.py @@ -10,7 +10,6 @@ This module contains all Classes used to parse for Cadence Sigrity Tools. """ - import os import re diff --git a/opensipi/sipi_infra.py b/opensipi/sipi_infra.py index 82c44a2..59a02e3 100644 --- a/opensipi/sipi_infra.py +++ b/opensipi/sipi_infra.py @@ -10,7 +10,6 @@ This module serves as the platform of the OpenSIPI application. """ - import glob import os import shutil diff --git a/opensipi/touchstone.py b/opensipi/touchstone.py index c23cbbf..225c43d 100644 --- a/opensipi/touchstone.py +++ b/opensipi/touchstone.py @@ -11,7 +11,6 @@ This module handles one touchstone file. """ - from math import log10 import matplotlib.pyplot as plt diff --git a/opensipi/util/common.py b/opensipi/util/common.py index d362dd4..50f058d 100644 --- a/opensipi/util/common.py +++ b/opensipi/util/common.py @@ -11,7 +11,6 @@ OpenSIPI application. """ - import base64 import csv import os diff --git a/opensipi/util/logs.py b/opensipi/util/logs.py index b54ea9b..bff1164 100644 --- a/opensipi/util/logs.py +++ b/opensipi/util/logs.py @@ -10,7 +10,6 @@ This Python3 module provides utilities for test logging and result saving. """ - import logging import sys