-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
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
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
There was a problem hiding this 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit -
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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit -
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 |
There was a problem hiding this comment.
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
`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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo - de duplicate
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, |
There was a problem hiding this comment.
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
You may need to fix [merge | ||
conflicts](https://docs.github.com/articles/about-merge-conflicts) |
There was a problem hiding this comment.
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
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)), |
There was a problem hiding this comment.
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 -
([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 -
Line 17 in 1e4e2a7
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`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit -
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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.