-
Notifications
You must be signed in to change notification settings - Fork 8
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
Upgrade to repo-config v0.5.2 #153
Changes from all commits
c64f741
7611427
0f915fa
d1503a7
21e4624
0200914
a853bdc
d5a04ef
ea766f9
119826d
6645654
aec50d7
e1e8344
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
|
||
# Set default charset, indent style and trimming of whitespace | ||
[{.editorconfig,CODEOWNERS,LICENSE,*.{in,json,md,proto,py,pyi,toml,yaml,yml}}] | ||
charset = utf-8 | ||
indent_style = space | ||
trim_trailing_whitespace = true | ||
|
||
# 4 space indentation | ||
[*.{py,pyi}] | ||
indent_size = 4 | ||
|
||
# 2 space indentation | ||
[{.editorconfig,CODEOWNERS,LICENSE,*.{in,json,proto,toml,yaml,yml}}] | ||
indent_size = 2 | ||
|
||
# No indentation size specified for *.md because different blocks have | ||
# different indentation rules |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Release Notes Check | ||
|
||
on: | ||
merge_group: | ||
pull_request: | ||
types: | ||
# On by default if you specify no types. | ||
- "opened" | ||
- "reopened" | ||
- "synchronize" | ||
# For `skip-label` only. | ||
- "labeled" | ||
- "unlabeled" | ||
|
||
|
||
jobs: | ||
check-release-notes: | ||
name: Check release notes are updated | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check for a release notes update | ||
if: github.event_name == 'pull_request' | ||
uses: brettcannon/check-for-changed-files@4170644959a21843b31f1181f2a1761d65ef4791 # v1.2.0 | ||
with: | ||
file-pattern: "RELEASE_NOTES.md" | ||
prereq-pattern: "src/**" | ||
skip-label: "cmd:skip-release-notes" | ||
failure-message: "Missing a release notes update. Please add one or apply the ${skip-label} label to the pull request" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
exclude .gitignore | ||
exclude .cookiecutter-replay.json | ||
exclude .darglint | ||
exclude noxfile.py | ||
exclude .editorconfig | ||
exclude .gitignore | ||
exclude CODEOWNERS | ||
exclude CONTRIBUTING.md | ||
exclude mkdocs.yml | ||
exclude noxfile.py | ||
exclude src/conftest.py | ||
recursive-exclude .github * | ||
recursive-exclude tests * | ||
recursive-exclude benchmarks * | ||
recursive-exclude docs * | ||
recursive-exclude tests * | ||
recursive-include py *.pyi |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,9 +68,6 @@ markdown_extensions: | |
anchor_linenums: true | ||
line_spans: __span | ||
pygments_lang_class: true | ||
- pymdownx.superfences | ||
- pymdownx.tasklist | ||
- pymdownx.tabbed | ||
- pymdownx.keys | ||
- pymdownx.snippets: | ||
check_paths: true | ||
|
@@ -79,6 +76,8 @@ markdown_extensions: | |
- name: mermaid | ||
class: mermaid | ||
format: "!!python/name:pymdownx.superfences.fence_code_format" | ||
- pymdownx.tabbed | ||
- pymdownx.tasklist | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it seems There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it was duplicated. I clarified it in the commit. |
||
- toc: | ||
permalink: "¤" | ||
|
||
|
@@ -104,6 +103,7 @@ plugins: | |
show_root_members_full_path: true | ||
show_source: true | ||
import: | ||
# See https://mkdocstrings.github.io/python/usage/#import for details | ||
- https://docs.python.org/3/objects.inv | ||
- https://typing-extensions.readthedocs.io/en/stable/objects.inv | ||
- search | ||
|
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 no longer exclude the benchmarks?
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.
Yes, from the source distribution package.I misunderstood, you are right, this shouldn't be removed. Good catch!