You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/02/08 17:22:48 UTC

[GitHub] [airflow-site] mik-laj opened a new pull request #246: Expand the guide for contributors

mik-laj opened a new pull request #246: Expand the guide for contributors
URL: https://github.com/apache/airflow-site/pull/246
 
 
   Hello,
   
   Previous documentation was problematic. I expanded it to make it more clear.
   
   I have also fixed one compatibility problem with Debian. Everything was tested before on MacOS, and now I've checked everything on Debian.
   
   Best regards
   Kamil

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [airflow-site] mik-laj commented on issue #246: Expand the guide for contributors

Posted by GitBox <gi...@apache.org>.
mik-laj commented on issue #246: Expand the guide for contributors
URL: https://github.com/apache/airflow-site/pull/246#issuecomment-588539848
 
 
   Thanks @kaxil 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [airflow-site] mik-laj commented on a change in pull request #246: Expand the guide for contributors

Posted by GitBox <gi...@apache.org>.
mik-laj commented on a change in pull request #246: Expand the guide for contributors
URL: https://github.com/apache/airflow-site/pull/246#discussion_r377593539
 
 

 ##########
 File path: CONTRIBUTE.md
 ##########
 @@ -54,49 +55,120 @@
     └── sphinx_airflow_theme
 ```
 
-## Working with the project
+# Working with the project
+
+Work with the site and documentation requires that your computer be properly prepared. Most tasks can
+be done by the site.sh script
+
+### Prerequisite Tasks
+
+The following applications must be installed to use the project:
+
+* git
+* docker
+
+It is also worth adding SSH keys for the `github.com` server to trusted ones. It is necessary to clone repositories. You can do this using following command:
+```bash
+ssh-keyscan -t rsa -H github.com >> ~/.ssh/known_hosts
+```
+
+**Debian instalation**
+
+To install git on Debian, run the following command:
+```bash
+sudo apt install git -y
+```
+
+To install docker, run the following command:
+```bash
+curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
+sudo usermod -aG docker $USER
+```
+
+Git must have commit author information configured, run these commands
+```bash
+git config --global user.email '<yo...@example.com>'
+git config --global user.name '<you name>'
+```
+
+### Static checks
+
+The project uses many static checks using fantastic [pre-commit](https://pre-commit.com/). Every change is checked on CI and if it does not pass the tests it cannot be accepted. If you want to check locally then you should install Python3.6 or newer together with pip and run following command to install pre-commit:
+
+```bash
+pip install -r requirements.txt
+```
+
+To turn on pre-commit checks for commit operations in git, enter:
+```bash
+pre-commit install
+```
+
+To run all checks on your staged files, enter:
+```bash
+pre-commit run
+```
+
+To run all checks on all files by using, enter:
 
 Review comment:
   ```suggestion
   To run all checks on all files, enter:
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [airflow-site] mik-laj commented on a change in pull request #246: Expand the guide for contributors

Posted by GitBox <gi...@apache.org>.
mik-laj commented on a change in pull request #246: Expand the guide for contributors
URL: https://github.com/apache/airflow-site/pull/246#discussion_r376780184
 
 

 ##########
 File path: CONTRIBUTE.md
 ##########
 @@ -54,49 +55,95 @@
     └── sphinx_airflow_theme
 ```
 
-## Working with the project
+# Working with the project
+
+Work with the site and documentation requires that your computer be properly prepared. Most tasks can
+be done by the site.sh script
+
+### Prerequisite Tasks
 
 Review comment:
   Thanks. I added section.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [airflow-site] Fokko commented on a change in pull request #246: Expand the guide for contributors

Posted by GitBox <gi...@apache.org>.
Fokko commented on a change in pull request #246: Expand the guide for contributors
URL: https://github.com/apache/airflow-site/pull/246#discussion_r377472874
 
 

 ##########
 File path: CONTRIBUTE.md
 ##########
 @@ -17,9 +17,10 @@
  under the License.
 -->
 
-## General directory structure
+Contrubitor Guide
 
 Review comment:
   ```suggestion
   Contributor Guide
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [airflow-site] kaxil merged pull request #246: Expand the guide for contributors

Posted by GitBox <gi...@apache.org>.
kaxil merged pull request #246: Expand the guide for contributors
URL: https://github.com/apache/airflow-site/pull/246
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [airflow-site] louisguitton commented on a change in pull request #246: Expand the guide for contributors

Posted by GitBox <gi...@apache.org>.
louisguitton commented on a change in pull request #246: Expand the guide for contributors
URL: https://github.com/apache/airflow-site/pull/246#discussion_r376746414
 
 

 ##########
 File path: CONTRIBUTE.md
 ##########
 @@ -54,49 +55,95 @@
     └── sphinx_airflow_theme
 ```
 
-## Working with the project
+# Working with the project
+
+Work with the site and documentation requires that your computer be properly prepared. Most tasks can
+be done by the site.sh script
+
+### Prerequisite Tasks
 
 Review comment:
   Mentioning pre-commit would be helpful for people not used to it.
   ```sh
   brew install pre-commit
   pre-commit install
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services