-
Notifications
You must be signed in to change notification settings - Fork 18
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
Code quality and pylint improvements to A
#11
Conversation
* Update _version.py * Add IID Pauli noise model * Remove unused imports * Fix issue with linting * Add iid noise example to decoder.py Allow user to change between cv and dv noise examples. * Run black * No need to specify inner decoder for iid case * Run black on test_iid_noise * Remove uniform weight assign * Fix typos and change data function * Fix test docstring * Improve test * Add docstring to apply_noise * Update flamingpy/decoders/decoder.py * Update iid.py * Update flamingpy/noise/iid.py * Delete pauli.py * Update _version.py * Update docs; run black * Update _version.py Co-authored-by: Narimanium <25132802+nariman87@users.noreply.github.com> Co-authored-by: maxtremblay <m@xtremblay.ca> Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com> Co-authored-by: Maxime Tremblay <52462375+maxtremblay@users.noreply.github.com> Co-authored-by: maxtremblay <m@xtremblay.ca> Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## main #11 +/- ##
==========================================
+ Coverage 91.57% 93.75% +2.18%
==========================================
Files 32 32
Lines 1863 1841 -22
==========================================
+ Hits 1706 1726 +20
+ Misses 157 115 -42
Continue to review full report at Codecov.
|
…mingpy into code-quality-improv
Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com>
Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com>
Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com>
README.md
Outdated
|
||
|
||
## Contribution | ||
|
||
We welcome new contributions -- simply fork the FlamingPy repository and make a pull request (PR) containing your contribution. All contributors to FlamingPy will be listed as authors on the releases. Users who contribute significantly to the code (new plugins, functionalities, etc.) may be listed on the arXiv preprints for FlamingPy. See our [release notes and changelogs](https://github.com/XanaduAI/flamingpy/releases) for more details. | ||
[See our CONTRIBUTING.rst](.github/CONTRIBUTING.rst) <!-- to be changed from relative paths to links --> |
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.
Could we / should we have the full text appear here, like it does in the SF readme?
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.
Not possible, unfortunately, see this comment:
This is not possible to my knowledge and will not work. GitHub md does not support include rendering at all, not even for rst!!! And will likely never do. See here. There are third-party tools to merge files before sending them to GitHub (e.g. https://github.com/BurdetteLamar/markdown_helpe), but the results are the same, you have to manually render the file every time.
The best workaround currently is to include a link to the centralized file we want to keep. I just implemented that: so README and docs are linking to .github/CONTRIBUTING.rst (had to replace the .md with .rst for proper rendering in docs). How's that?
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.
We have to either copy-paste manually or run a tool every time or add a link, which is a better solution in my view.
Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com>
Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com>
Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com>
Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com>
Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com>
Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com>
Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com>
Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com>
Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com>
Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com>
Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com>
Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com>
Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com>
Co-authored-by: ilan-tz <57886357+ilan-tz@users.noreply.github.com>
Context for changes
.pylintrc
, adding.coveragerc
. The code quality score is improved toA
for the released version. Check "Files changed" for details.TODO
comments have been removed exclusively from files with low code quality grades. The Dev team has created tickets to be actioned for all removed TODO comments on separate (private) FlamingPy boards.CONTRIBUTING.rst
,code_of_conduct.md
, andCHNAGLELOG.md
were imported and modified from the StrawberryFields project. Dev team plans to extend these with customized details in future PRs.Example usage and tests
Performance results justifying changes
Workflow actions and tests
Expected benefits and drawbacks
Expected benefits:
B
toA
. Note the acceptable limit for all future PRs is now set atA
.Related Github issues
Checklist and integration statements
black
,docformatter
andpylint
configurations.A-
or better. I also confirm that I have already merged other branches into this branch as required.CHANGELOG.md
following the template. I recognize that the developers may revisitCHANGELOG.md
, the versioning, and create a Special Release including my changes.