Skip to content

Commit fe5a29b

Browse files
authored
Run pre-commit to fix end-of-file-fixer and trailing-whitespace (#3418)
* Run pre-commit to fix end-of-file-fixer and trailing-whitespace * Add git blame ignore revisions file * Update .git-blame-ignore-revs
1 parent 22f0b0d commit fe5a29b

39 files changed

+46
-46
lines changed

.git-blame-ignore-revs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Run this command to always ignore formatting commits in `git blame`
2+
# git config blame.ignoreRevsFile .git-blame-ignore-revs
3+
4+
# Run pre-commit to fix end-of-file-fixer and trailing-whitespace

.github/pr-labeler-config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ci:
1616
# Add 'examples' to any changes within 'examples' folder
1717
examples:
1818
- changed-files:
19-
- any-glob-to-any-file: examples/**
19+
- any-glob-to-any-file: examples/**
2020

2121
# Add 'base' to any changes within 'base' folder
2222
"module: base":
@@ -26,17 +26,17 @@ examples:
2626
# Add 'contrib' to any changes within 'contrib' folder
2727
"module: contrib":
2828
- changed-files:
29-
- any-glob-to-any-file: ignite/contrib/**/*
29+
- any-glob-to-any-file: ignite/contrib/**/*
3030

3131
# Add 'distributed' to any changes within 'distributed' folder
3232
"module: distributed":
3333
- changed-files:
34-
- any-glob-to-any-file: ignite/distributed/**/*
34+
- any-glob-to-any-file: ignite/distributed/**/*
3535

3636
# Add 'engine' to any changes within 'engine' folder
3737
"module: engine":
3838
- changed-files:
39-
- any-glob-to-any-file: ignite/engine/**/*
39+
- any-glob-to-any-file: ignite/engine/**/*
4040

4141
# Add 'handlers' to any changes within 'handlers' folder
4242
"module: handlers":
@@ -48,8 +48,8 @@ examples:
4848
- changed-files:
4949
- any-glob-to-any-file: ignite/metrics/**/*
5050

51-
-
51+
-
5252
# Add 'utils' to any changes within 'utils' module
5353
"module: utils":
5454
- changed-files:
55-
- any-glob-to-any-file: ignite/utils.py
55+
- any-glob-to-any-file: ignite/utils.py

.github/workflows/discord_issues.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ jobs:
2626
issue_number: ${{ github.event.inputs.issue_number || github.event.issue.number }}
2727
issue_comment: Hey 👋, I've just created a [thread]($THREAD_LINK$) for this issue on [PyTorch-Ignite Discord](https://pytorch-ignite.ai/chat) where you can quickly talk to the community on the topic.
2828
discord_message: New issue created in `${{ github.repository }}`:<https://github.com/${{ github.repository }}/issues/${{ github.event.issue.number }}>
29-
30-
29+
30+

.github/workflows/discord_pull_requests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@ jobs:
2626
issue_number: ${{ github.event.inputs.pull_request_number || github.event.pull_request.number }}
2727
issue_comment: Hey 👋, I've just created a [thread]($THREAD_LINK$) for this pull request on [PyTorch-Ignite Discord](https://pytorch-ignite.ai/chat) where you can quickly talk to the community on the topic.
2828
discord_message: New PR created in `${{ github.repository }}`:<https://github.com/${{ github.repository }}/pull/${{ github.event.pull_request_number || github.event.pull_request.number }}>
29-

.github/workflows/stable-release-pypi.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,3 @@ jobs:
3232
twine --version
3333
twine check dist/*
3434
TWINE_USERNAME="${{ secrets.PYPI_USER }}" TWINE_PASSWORD="${{ secrets.PYPI_TOKEN }}" twine upload --verbose dist/*
35-

.github/workflows/tpu-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
## Install torch & xla and torchvision
7373
pip install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu
7474
pip install https://storage.googleapis.com/pytorch-xla-releases/wheels/tpuvm/torch_xla-nightly-cp310-cp310-linux_x86_64.whl
75-
75+
7676
# Check installation
7777
python -c "import torch"
7878

CITATION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
publisher = {GitHub},
66
journal = {GitHub repository},
77
howpublished = {\url{https://github.com/pytorch/ignite}},
8-
}
8+
}

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ conda activate pytorch-ignite-dev
8080

8181
### Installation
8282

83-
1) Make a fork of the repository on the GitHub (see [here](https://github.com/firstcontributions/first-contributions#fork-this-repository) for details).
83+
1) Make a fork of the repository on the GitHub (see [here](https://github.com/firstcontributions/first-contributions#fork-this-repository) for details).
8484
As a result, for example your username is `happy-ignite-developer`, then you should be able to see your fork on the GitHub, e.g https://github.com/happy-ignite-developer/ignite.git
8585

8686
2) Clone your fork locally and setup `upstream`. Assuming your username is `happy-ignite-developer`:

assets/logo/ignite_logo.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)