From 09c273fe0f4dc51423d70eee90d394a3685239ed Mon Sep 17 00:00:00 2001 From: Jessica Date: Mon, 5 Jun 2023 12:39:55 -0400 Subject: [PATCH 1/3] update code of conduct --- CODE_OF_CONDUCT.md | 121 ++++++++++++++------------------------------- 1 file changed, 37 insertions(+), 84 deletions(-) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index ec5b7c17..fafc87cf 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,120 +1,73 @@ -# Contributor Covenant Code of Conduct +# GridWorks Energy Consulting Code of Conduct -## Our Pledge +## Basic Truth -We as members, contributors, and leaders pledge to make participation in our -community a harassment-free experience for everyone, regardless of age, body -size, visible or invisible disability, ethnicity, sex characteristics, gender -identity and expression, level of experience, education, socio-economic status, -nationality, personal appearance, race, caste, color, religion, or sexual -identity and orientation. +All humans are worthy. -We pledge to act and interact in ways that contribute to an open, welcoming, -diverse, inclusive, and healthy community. - -## Our Standards - -Examples of behavior that contributes to a positive environment for our -community include: - -- Demonstrating empathy and kindness toward other people -- Being respectful of differing opinions, viewpoints, and experiences -- Giving and gracefully accepting constructive feedback -- Accepting responsibility and apologizing to those affected by our mistakes, - and learning from the experience -- Focusing on what is best not just for us as individuals, but for the overall - community - -Examples of unacceptable behavior include: +## Scope -- The use of sexualized language or imagery, and sexual attention or advances of - any kind -- Trolling, insulting or derogatory comments, and personal or political attacks -- Public or private harassment -- Publishing others' private information, such as a physical or email address, - without their explicit permission -- Other conduct which could reasonably be considered inappropriate in a - professional setting +This Code of Conduct applies to moderation of comments, issues and commits within +this repository to support its alignment to the above basic truth. ## Enforcement Responsibilities -Community leaders are responsible for clarifying and enforcing our standards of -acceptable behavior and will take appropriate and fair corrective action in -response to any behavior that they deem inappropriate, threatening, offensive, -or harmful. - -Community leaders 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, and will communicate reasons for moderation +[GridWorks Energy Consulting LLC](https://gridworks-consulting.com/) ([gridworks@gridworks-consulting.com](mailto:gridworks@gridworks-consulting.com)) +owns and administers this repository, and is ultimately responsible for enforcement of standards of +behavior. They are responsible for merges to dev and main branches, and maintain the right and +responsibility to remove, edit, or reject comments, commits, code, docuentation edits, issues, and other contributions +that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate. -## Scope +If you read something in this repo that you want GridWorks to consider moderating, please +send an email to them at [gridworks@gridworks-consulting.com](mailto:gridworks@gridworks-consulting.com). +All complaints will be reviewed and investigated, and GridWorks will respect +the privacy and security of the reporter of any incident. -This Code of Conduct applies within all community spaces, and also applies when -an individual is officially representing the community in public spaces. -Examples of representing our community include using an official e-mail address, -posting via an official social media account, or acting as an appointed -representative at an online or offline event. +## What not to add to this repo -## Enforcement +Ways to trigger GridWorks moderation enforcement: -Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported to the community leaders responsible for enforcement at -[jmillar@gridworks-consulting.com](mailto:jmillar@gridworks-consulting.com). -All complaints will be reviewed and investigated promptly and fairly. +- Publish others' private information, such as a physical or email address, + without their explicit permission +- Use of sexualized language or imagery, or make sexual advances +- Troll -All community leaders are obligated to respect the privacy and security of the -reporter of any incident. +## Suggestions -## Enforcement Guidelines +- Empathize +- Recognize you are worthy of contributing, and do so in the face of confusion and doubt; you can help clarify things for everyone +- Be interested in differing opinions, viewpoints, and experiences +- Give and accept constructive feedback +- Accept responsibility for your mistakes and learn from them +- Recognize everybody makes mistakes, and forgive +- Focus on the highest good for all -Community leaders will follow these Community Impact Guidelines in determining -the consequences for any action they deem in violation of this Code of Conduct: +## Enforcement Escalation ### 1. Correction -**Community Impact**: Use of inappropriate language or other behavior deemed -unprofessional or unwelcome in the community. - -**Consequence**: A private, written warning from community leaders, providing -clarity around the nature of the violation and an explanation of why the -behavior was inappropriate. A public apology may be requested. +A private, written request from GridWorks to change or edit a comment, commit, or issue. ### 2. Warning -**Community Impact**: A violation through a single incident or series of -actions. - -**Consequence**: A warning with consequences for continued behavior. No -interaction with the people involved, including unsolicited interaction with -those enforcing the Code of Conduct, for a specified period of time. This -includes avoiding interactions in community spaces as well as external channels -like social media. Violating these terms may lead to a temporary or permanent -ban. +With a warning, GridWorks may remove your comments, commits or issues. They may also +freeze a conversation. ### 3. Temporary Ban -**Community Impact**: A serious violation of community standards, including -sustained inappropriate behavior. - -**Consequence**: A temporary ban from any sort of interaction or public -communication with the community for a specified period of time. No public or +A temporary ban from any sort of interaction or public +communication within the repository for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban. ### 4. Permanent Ban -**Community Impact**: Demonstrating a pattern of violation of community -standards, including sustained inappropriate behavior, harassment of an -individual, or aggression toward or disparagement of classes of individuals. - -**Consequence**: A permanent ban from any sort of public interaction within the -community. +A permanent ban from any sort of interaction within the repository. ## Attribution -This Code of Conduct is adapted from the [Contributor Covenant][homepage], +This Code of Conduct is loosely adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1]. From 3ef0893674af23771c37923fcd7837350c87abb3 Mon Sep 17 00:00:00 2001 From: Jessica Date: Tue, 6 Jun 2023 07:47:56 -0400 Subject: [PATCH 2/3] fix enums in docs --- .../GridworksCore/Enum/EnumInit/DeriveEnumInit.xslt | 4 ++-- docs/enums.rst | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CodeGenerationTools/GridworksCore/Enum/EnumInit/DeriveEnumInit.xslt b/CodeGenerationTools/GridworksCore/Enum/EnumInit/DeriveEnumInit.xslt index 5dad3f68..80d92765 100644 --- a/CodeGenerationTools/GridworksCore/Enum/EnumInit/DeriveEnumInit.xslt +++ b/CodeGenerationTools/GridworksCore/Enum/EnumInit/DeriveEnumInit.xslt @@ -26,7 +26,7 @@ """ GwSchema Enums used in gwproto """ - + @@ -44,7 +44,7 @@ from gwproto.enums. __all__ = [ - + diff --git a/docs/enums.rst b/docs/enums.rst index a0b5e696..9417ab3d 100644 --- a/docs/enums.rst +++ b/docs/enums.rst @@ -1,5 +1,5 @@ -GridWorks Enums +Gwproto Enums ================ -.. automodule:: gridworks.enums +.. automodule:: gwproto.enums :members: From eb332671a810d7413c35d68fd5e7a01ec4afa626 Mon Sep 17 00:00:00 2001 From: Jessica Date: Wed, 7 Jun 2023 10:04:59 -0400 Subject: [PATCH 3/3] Update to gridworks 0.2.5 --- poetry.lock | 9 ++++----- pyproject.toml | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/poetry.lock b/poetry.lock index d82f167b..f60cd66b 100644 --- a/poetry.lock +++ b/poetry.lock @@ -894,21 +894,20 @@ test = ["objgraph", "psutil"] [[package]] name = "gridworks" -version = "0.2.4" +version = "0.2.5" description = "Gridworks" category = "main" optional = false python-versions = ">=3.10,<4.0" files = [ - {file = "gridworks-0.2.4-py3-none-any.whl", hash = "sha256:a838977a8f237f21cc92efd31a75f94ea8de99e45c73236e7cbd72600a6697e1"}, - {file = "gridworks-0.2.4.tar.gz", hash = "sha256:1d67a4781d724641f240c734c3c6b2cb16ea8d5ace2082958b384265ee4c028a"}, + {file = "gridworks-0.2.5-py3-none-any.whl", hash = "sha256:8ddccfa4d857479fba2455344ec8d66235ad2acb261d77d2d81fe9cc877b884e"}, + {file = "gridworks-0.2.5.tar.gz", hash = "sha256:270234274051a30e9ab39a7d41681465b7b58a8a776929f2cfcfdaf95cd45fa8"}, ] [package.dependencies] aiocache = {version = ">=0.11.1,<0.12.0", extras = ["memcached", "redis"]} aioredis = "1.3.1" beaker-pyteal = ">=0.4.0,<0.5.0" -click = ">=8.0.1" fastapi = ">=0.88.0,<0.89.0" fastapi-utils = ">=0.2.1,<0.3.0" pendulum = ">=2.1.2,<3.0.0" @@ -3086,4 +3085,4 @@ tests-strict = ["codecov (==2.0.15)", "pytest (==4.6.0)", "pytest (==4.6.0)", "p [metadata] lock-version = "2.0" python-versions = ">=3.10, <4.0" -content-hash = "f95fd170f4b4efe0dd21092a1c7eca110a76d66e425a4a15a666e58a5bf506d8" +content-hash = "505579722c754f7f5f6a6054c305b53b32c4e1c3130e9342541b93ff0cb7d01c" diff --git a/pyproject.toml b/pyproject.toml index 7413bb73..044731f9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "gridworks-protocol" -version = "0.5.2" +version = "0.5.3" description = "Gridworks Protocol" authors = ["Jessica Millar "] license = "MIT" @@ -23,7 +23,7 @@ python = ">=3.10, <4.0" pydantic = "^1.10.2" pendulum = "^2.1.2" fastapi-utils = "^0.2.1" -gridworks = "0.2.4" +gridworks = "0.2.5" [tool.poetry.dev-dependencies] Pygments = ">=2.10.0"