-
Notifications
You must be signed in to change notification settings - Fork 129
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
Change authors
to list[dict['name' | 'url' | ..., str]]
#70
Conversation
Co-authored-by: Meesum Qazalbash <[email protected]>
TODO author validation
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.
thanks a lot @DanielYang59! 👍
i think this is ready to go. anything left from your side?
Ah you are so quick. I haven't got time to look into the script yet, looks like you fixed it? Thanks. Also it appears we cannot execute from the
|
- name: Maxim Ulrich | ||
- name: Tamim Asfour | ||
- name: Andreas Krause | ||
- name: Jonas Rothfuss |
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.
Sorry looks like I indeed missed some despite going through this twice, thanks for catching these!
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 have auto-format on save :)
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 believe you mentioned this before, but for some reason the formatter doesn't seem to work for me. I installed the YAML- Red Hat
from the VS Code extension market, and added the following to my settings.json
:
"[yaml]": {
"editor.defaultFormatter": "redhat.vscode-yaml"
},
But it still allows saving incorrectly formatted yaml file without auto-format (only a red mark would be shown):
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 have "editor.defaultFormatter": "esbenp.prettier-vscode"
in settings.json
we could add one of these hooks to .pre-commit-config.yaml
to automate the formatting
- repo: https://github.com/google/yamlfmt
rev: v0.10.0
hooks:
- id: yamlfmt
args: [-formatter, retain_line_breaks=true]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
args: [--write] # edit files in-place
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.
Brilliant! It makes sense to install an automatic hook to format these.
For the prettier hooks, it wouldn't not work and has been archived:
prettier made some changes that breaks plugins entirely
Also I'm a bit unsure why the check-yaml
doesn't seem to do anything?
awesome-normalizing-flows/.pre-commit-config.yaml
Lines 23 to 34 in a59d334
- repo: https://github.com/pre-commit/pre-commit-hooks | |
rev: v4.6.0 | |
hooks: | |
- id: check-case-conflict | |
- id: check-symlinks | |
- id: check-yaml | |
- id: destroyed-symlinks | |
- id: end-of-file-fixer | |
exclude_types: [svg] | |
- id: forbid-new-submodules | |
- id: mixed-line-ending | |
- id: trailing-whitespace |
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.
check-yaml
only checks that all YAML are valid and parseable. it doesn't care about formatting.
For the prettier hooks, it wouldn't not work and has been archived:
thanks for letting me know! i missed 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.
thanks for letting me know!
thanks for letting me know too :)
closes #69, allows different URLs for each author (if multiple)