-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from os-climate/repo-updates
Chore: Repo updates
- Loading branch information
Showing
13 changed files
with
193 additions
and
44 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
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 @@ | ||
**/.pre-commit-config.yaml | ||
**/*.yaml | ||
**/*.yml | ||
**/.git/** |
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 |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
Contributing | ||
============ | ||
|
||
Welcome to ``osc-data-extractor`` contributor's guide. | ||
Welcome to ``osc-inception-converter`` contributor's guide. | ||
|
||
This document focuses on getting any potential contributor familiarized | ||
with the development processes, but `other kinds of contributions`_ are also | ||
|
@@ -46,7 +46,7 @@ guidelines. | |
Issue Reports | ||
============= | ||
|
||
If you experience bugs or general issues with ``osc-data-extractor``, please have a look | ||
If you experience bugs or general issues with ``osc-inception-converter``, please have a look | ||
on the `issue tracker`_. If you don't see anything useful there, please feel | ||
free to fire an issue report. | ||
|
||
|
@@ -65,10 +65,10 @@ you help us to identify the root cause of the issue. | |
Documentation Improvements | ||
========================== | ||
|
||
You can help improve ``osc-data-extractor`` docs by making them more readable and coherent, or | ||
You can help improve ``osc-inception-converter`` docs by making them more readable and coherent, or | ||
by adding missing information and correcting mistakes. | ||
|
||
``osc-data-extractor`` documentation uses Sphinx_ as its main documentation compiler. | ||
``osc-inception-converter`` documentation uses Sphinx_ as its main documentation compiler. | ||
This means that the docs are kept in the same repository as the project code, and | ||
that any documentation update is done in the same way was a code contribution. | ||
|
||
|
@@ -80,7 +80,7 @@ that any documentation update is done in the same way was a code contribution. | |
|
||
.. tip:: | ||
Please notice that the `GitHub web interface`_ provides a quick way of | ||
propose changes in ``osc-data-extractor``'s files. While this mechanism can | ||
propose changes in ``osc-inception-converter``'s files. While this mechanism can | ||
be tricky for normal code contributions, it works perfectly fine for | ||
contributing to the docs, and can be quite handy. | ||
|
||
|
@@ -131,8 +131,8 @@ This can easily be done via either |virtualenv|_:: | |
|
||
or Miniconda_:: | ||
|
||
conda create -n osc-data-extractor python=3 six virtualenv pytest pytest-cov | ||
conda activate osc-data-extractor | ||
conda create -n osc-inception-converter python=3 six virtualenv pytest pytest-cov | ||
conda activate osc-inception-converter | ||
|
||
Clone the repository | ||
-------------------- | ||
|
@@ -142,8 +142,8 @@ Clone the repository | |
page. This creates a copy of the code under your account on |the repository service|. | ||
#. Clone this copy to your local disk:: | ||
|
||
git clone [email protected]:YourLogin/osc-data-extractor.git | ||
cd osc-data-extractor | ||
git clone [email protected]:YourLogin/osc-inception-converter.git | ||
cd osc-inception-converter | ||
|
||
#. You should run:: | ||
|
||
|
@@ -158,7 +158,7 @@ Clone the repository | |
pip install pre-commit | ||
pre-commit install | ||
|
||
``osc-data-extractor`` comes with a lot of hooks configured to automatically help the | ||
``osc-inception-converter`` comes with a lot of hooks configured to automatically help the | ||
developer to check the code being written. | ||
|
||
Implement your changes | ||
|
@@ -285,7 +285,7 @@ Releases | |
|
||
If you are part of the group of maintainers and have correct user permissions | ||
on PyPI_, the following steps can be used to release a new version for | ||
``osc-data-extractor``: | ||
``osc-inception-converter``: | ||
|
||
#. Make sure all unit tests are successful. | ||
#. Tag the current commit on the main branch with a release tag, e.g., ``v1.2.3``. | ||
|
@@ -314,8 +314,8 @@ on PyPI_, the following steps can be used to release a new version for | |
.. |the repository service| replace:: GitHub | ||
.. |contribute button| replace:: "Create pull request" | ||
|
||
.. _repository: https://github.com/<USERNAME>/osc-data-extractor | ||
.. _issue tracker: https://github.com/<USERNAME>/osc-data-extractor/issues | ||
.. _repository: https://github.com/<USERNAME>/osc-inception-converter | ||
.. _issue tracker: https://github.com/<USERNAME>/osc-inception-converter/issues | ||
.. <-- end --> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
#set -x | ||
|
||
REPO_NAME=$(basename "$(git rev-parse --show-toplevel)") | ||
echo "Repository name: $REPO_NAME" | ||
|
||
if [ $# -ne 1 ]; then | ||
echo "Usage: $0 [test folder]"; exit 1 | ||
elif [ ! -d "$1" ]; then | ||
echo "Error: specified target was not a folder"; exit 1 | ||
else | ||
# Target specified was a folder | ||
TARGET="$1" | ||
fi | ||
|
||
for TEST in $(find "$TARGET" -type f -name '*_test.py' | xargs -0); do | ||
echo "Processing: $TEST" | ||
FILE_PATH=$(dirname "$TEST") | ||
FILE_NAME=$(basename "$TEST") | ||
STRIPPED="${FILE_NAME//_test.py/.py}" | ||
echo " git mv \"${TEST}\" $FILE_PATH/test_\"${STRIPPED%%}\"" | ||
git mv "${TEST}" "$FILE_PATH"/test_"${STRIPPED%%}" | ||
done |
Oops, something went wrong.