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

Add recommended files for community support & update CONTRIBUTING.md #6898

Merged
merged 9 commits into from
Jan 10, 2025

Conversation

mhucka
Copy link
Contributor

@mhucka mhucka commented Dec 30, 2024

This adds two files recommended as best practices by GitHub:

  • SUPPORT.md
  • .github/SECURITY.md

This also adds a CITATION.cff, which GitHub uses to provide the info for the "Cite this software" button on the front page of the repository.

Finally, this also makes a number of updates and enhancements to the existing CONTRIBUTING.md file.

Per GitHub best practices, this give people instructions for reporting
security vulnerabilities in this project.
SUPPORT.md files are another GitHub best practice; they're used to to
let people know about ways to get help with a project.
[`CITATION.cff`](https://citation-file-format.github.io/) files are
plain text files with human- and machine-readable citation information
for software. Code developers can include them in their repositories
to let others know how to correctly cite their software. GitHub
supports them, and uses `CITATION.cff` files to automatically produce
citation metadata records for the "Cite this repository" button on a
repository's front page.
This contains a variety of small changes:
- capitalization fixes (e.g., cirq → Cirq)
- clarifications
- links to more information
@CirqBot CirqBot added the size: M 50< lines changed <250 label Dec 30, 2024
Copy link

codecov bot commented Dec 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.86%. Comparing base (dbada0e) to head (4fcfb22).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6898      +/-   ##
==========================================
- Coverage   97.87%   97.86%   -0.01%     
==========================================
  Files        1084     1084              
  Lines       94406    94406              
==========================================
- Hits        92396    92395       -1     
- Misses       2010     2011       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mhucka mhucka marked this pull request as ready for review December 30, 2024 05:17
@mhucka mhucka requested review from vtomole and a team as code owners December 30, 2024 05:17
@mhucka mhucka requested a review from dstrain115 December 30, 2024 05:17
@mhucka mhucka self-assigned this Dec 31, 2024
@mhucka mhucka requested a review from pavoljuhas January 7, 2025 16:51
Copy link
Collaborator

@pavoljuhas pavoljuhas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with some minor suggestions, thank you for adding these!

Please see the comments before merging.

CITATION.cff Outdated
version: 1.4.1
date-released: 2024-06-26
url: https://quantumai.google/cirq
repository-code: https://github.com/quantumlib/cirq
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit -

Suggested change
repository-code: https://github.com/quantumlib/cirq
repository-code: https://github.com/quantumlib/Cirq

CONTRIBUTING.md Outdated
@@ -3,14 +3,16 @@
We'd love to accept your patches and contributions to this project.
We do have some guidelines to follow, covered in this document, but don't
worry about (or expect to) get everything right the first time!
Create a pull request and we'll nudge you in the right direction. Please also
Create a [pull request](https://en.wikipedia.org/wiki/Fork_and_pull_model)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this wiki link here? The wiki article is very brief and not much clarifying for a novice GitHub user.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair point.

CONTRIBUTING.md Outdated
```https://github.com/USERNAME/cirq``` where ```USERNAME``` is
your github id. Use the directions on the
The preferred manner for submitting pull requests is for developers to
[fork](https://docs.github.com/articles/working-with-forks)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fork link might be redundant here - the process is described step-by-step below.

CONTRIBUTING.md Outdated
up a fork is as follows:

1. Fork the Cirq repository (you can use the _Fork_ button in upper right
corner of the [repo home page](https://github.com/quantumlib/Cirq)).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit -

Suggested change
corner of the [repo home page](https://github.com/quantumlib/Cirq)).
corner of the [repository page](https://github.com/quantumlib/Cirq)).

CONTRIBUTING.md Outdated
1. Fork the Cirq repository (you can use the _Fork_ button in upper right
corner of the [repo home page](https://github.com/quantumlib/Cirq)).
Forking creates a new GitHub repo at the location
`https://github.com/USERNAME/cirq`, where `USERNAME` is
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit - let us fix also other instances of cirq --> Cirq capitalization in URLs here

Suggested change
`https://github.com/USERNAME/cirq`, where `USERNAME` is
`https://github.com/USERNAME/Cirq`, where `USERNAME` is

CONTRIBUTING.md Outdated
main cirq repo you may need to merge in changes. To do this,
first update your local main and then merge the local main
1. If your local copy has drifted out of sync with the `main` branch of the
the main Cirq repo, you may need to merge in the latest changes. To do this,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo - de duplicate

Suggested change
the main Cirq repo, you may need to merge in the latest changes. To do this,
main Cirq repo, you may need to merge in the latest changes. To do this,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

CONTRIBUTING.md Outdated
Comment on lines 67 to 68
You may need to fix [merge
conflicts](https://docs.github.com/articles/about-merge-conflicts)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit - readability as plain text

Suggested change
You may need to fix [merge
conflicts](https://docs.github.com/articles/about-merge-conflicts)
You may need to fix [merge conflicts](
https://docs.github.com/articles/about-merge-conflicts)

CONTRIBUTING.md Outdated
1. Now when you navigate to the cirq page on github,
[https://github.com/quantumlib/cirq](https://github.com/quantumlib/cirq)
1. Now when you navigate to the Cirq repository on GitHub
([https://github.com/quantumlib/cirq](https://github.com/quantumlib/cirq)),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need for expanded [TEXT](URL) syntax here -

Suggested change
([https://github.com/quantumlib/cirq](https://github.com/quantumlib/cirq)),
(https://github.com/quantumlib/Cirq),

Since you are at it, can you please also remove the redundant <> in the CLA link here -

part of the project. Head over to <https://cla.developers.google.com/> to see

CONTRIBUTING.md Outdated
When type checking produces a false positive, it can be ignored with
annotations like `# type: ignore`.
When type checking produces a false positive, it can be silenced with
annotations such like `# type: ignore`.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit -

Suggested change
annotations such like `# type: ignore`.
annotations such as `# type: ignore`.

[development page](docs/dev/development.md) on how to run the continuous
integration checks locally.

Please be aware of the following code standards that will be applied to any
Please be aware of the following coding standards that will be applied to any
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please remove the /en/latest suffix from the pytest and pytest-cov URLs below?
Their top pages already redirect to .../en/latest and are less likely to become invalid.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These happen when I copy-paste the links. You’re right that they should be removed. This is something we should put into linter rules.

@mhucka mhucka enabled auto-merge (squash) January 10, 2025 20:06
@mhucka mhucka merged commit 5d317ba into quantumlib:main Jan 10, 2025
35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docs size: M 50< lines changed <250
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants