-
Notifications
You must be signed in to change notification settings - Fork 37
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
use py-template #281
use py-template #281
Conversation
f000b1e
to
dd66378
Compare
e181bb6
to
ecc74d3
Compare
ecc74d3
to
4cddf39
Compare
setup.cfg
Outdated
show_traceback = True | ||
pretty = True | ||
[codespell] | ||
ignore-words-list= |
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.
Ended up adding this because codespell
was complaining:
src/dvclive/data/plot.py:58: fpr ==> for, far, fps
src/dvclive/data/plot.py:68: fpr ==> for, far, fps
src/dvclive/data/plot.py:73: fpr ==> for, far, fps
src/dvclive/data/plot.py:74: fpr ==> for, far, fps
src/dvclive/data/plot.py:111: fpr ==> for, far, fps
src/dvclive/data/plot.py:121: fpr ==> for, far, fps
src/dvclive/data/plot.py:127: fpr ==> for, far, fps
src/dvclive/data/plot.py:128: fpr ==> for, far, fps
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.
I usually add this to .pre-commit-config.yaml
, to avoid adding more config to setup.cfg
.
I see that there is a PR for pyproject.toml
support: codespell-project/codespell#2290.
It's good for now.
f2d238e
to
96bf5d8
Compare
I will try to review it by tomorrow. 🙂 |
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.
Some questions:
- Are most of the changes automatically generated?
a.) I see a lot of mentions of my name, and while I am flattered, I think there should be moreIterative
and lessPaweł Redzyński
:D
b.) Do we need this huge.gitignore
? There are rules forcython
,django
and so on while I am not sure there is a chance for stumbling upon them while developing this package.
I can answer this question. It's a template from https://github.com/github/gitignore, and it has made all the decisions for us regarding useful gitignores required for a Python library/application. It's true that we might not use these libraries, but we might use them on some projects, it's one Adding some entries to the I'm happy to discuss more and open to change. I'll suggest opening an issue on |
@dtrifiro, what about the order, do they match with Otherwise, |
I don't mind it, just don't want to take credit for our collective work :) |
@@ -1,12 +0,0 @@ | |||
- args: |
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.
Did dvclive provide pre-commit hooks?
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 sure what you mean here. I think this can be safely replaced with .pre-commit-config.yaml
pyproject.toml
Outdated
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
write_to = "src/dvclive/_version.py" |
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.
Does dvclive need to provide version info?
>>> from importlib.metadata import version; version('dvclive')
Users can get this with above ^.
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.
Got rid of it, as well as getting rid of src/dvclive/version.py
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.
🔥
Codecov ReportBase: 90.67% // Head: 93.43% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #281 +/- ##
==========================================
+ Coverage 90.67% 93.43% +2.75%
==========================================
Files 21 35 +14
Lines 751 1554 +803
Branches 0 169 +169
==========================================
+ Hits 681 1452 +771
- Misses 70 80 +10
- Partials 0 22 +22
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
a426332
to
119c295
Compare
With the lastest push I got rid of |
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.
Haven't really reviewed in-depth, but looks good on high level so let's merge and follow up if needed
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, though as I mentioned, I think we should change in the LICENSE
to Iterative
, from Paweł Redzyński
. I am the author, but I believe its Iterative
who provides the license to use, as I created it under Iterative
's name.
Most ML frameworks won't work on pypy and won't be available on 3.11 until it is officially released
119c295
to
067ac36
Compare
Co-authored-by: skshetry <suagatchhetri@outlook.com>
Thanks everybody! |
Use cruft/cookiecutter template from https://github.com/iterative/py-template
closes #272