This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feat/detect
- Loading branch information
Showing
72 changed files
with
1,125 additions
and
478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Copyright The PyTorch Lightning team. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
pull_request_rules: | ||
|
||
- name: warn on conflicts | ||
conditions: | ||
- conflict | ||
- -draft # filter-out GH draft PRs | ||
- -label="has conflicts" | ||
actions: | ||
# comment: | ||
# message: This pull request is now in conflict... :( | ||
label: | ||
add: [ "has conflicts" ] | ||
|
||
- name: resolved conflicts | ||
conditions: | ||
- -conflict | ||
- label="has conflicts" | ||
- -draft # filter-out GH draft PRs | ||
- -merged # not merged yet | ||
- -closed | ||
actions: | ||
label: | ||
remove: [ "has conflicts" ] | ||
|
||
- name: update PR | ||
conditions: | ||
- -conflict | ||
- -draft # filter-out GH draft PRs | ||
- base=master # apply only on master | ||
- -title~=(?i)wip # skip all PR that title contains “WIP” (ignoring case) | ||
- "#approved-reviews-by>=2" # number of review approvals | ||
actions: | ||
update: {} | ||
|
||
- name: add core reviewer | ||
conditions: | ||
- -conflict # skip if conflict | ||
- -draft # filter-out GH draft PRs | ||
- "#approved-reviews-by<2" # number of review approvals | ||
- "#review-requested<1" # number of requested reviews | ||
actions: | ||
request_reviews: | ||
teams: | ||
- "@PyTorchLightning/core-contributors" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.lock | ||
lightning_logs | ||
|
||
# Byte-compiled / optimized / DLL files | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.PHONY: test clean docs | ||
|
||
# assume you have installed need packages | ||
export SPHINX_MOCK_REQUIREMENTS=1 | ||
|
||
test: clean | ||
pip install -r requirements.txt | ||
pip install -r requirements/test.txt | ||
# install APEX, see https://github.com/NVIDIA/apex#linux | ||
|
||
# use this to run tests | ||
python -m coverage run --source flash -m pytest flash tests -v --flake8 | ||
python -m coverage report | ||
|
||
docs: clean | ||
pip install --quiet -r requirements/docs.txt | ||
python -m sphinx -b html -W docs/source docs/build | ||
|
||
clean: | ||
rm -rf _ckpt_* | ||
rm -rf ./lightning_logs | ||
# clean all temp runs | ||
rm -rf $(shell find . -name "mlruns") | ||
rm -rf .mypy_cache | ||
rm -rf .pytest_cache | ||
rm -rf ./docs/build | ||
rm -rf ./docs/source/**/generated | ||
rm -rf ./docs/source/api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.