You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Updating dev guide with gh-pages info for docs
* Moving the Dev Guide up in the TOC pane
* Update dev-guide.md
Added Tyler's correction for pycodestyle.
Copy file name to clipboardExpand all lines: docs/dev-guide.md
+24-15Lines changed: 24 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,15 @@ This topic describes how to contribute to the Tableau Server Client (Python) pro
8
8
* TOC
9
9
{:toc}
10
10
11
+
---
12
+
11
13
## Submit your first patch
12
14
15
+
16
+
This section will get you started with the basic workflow, describing how to create your own fork of the repository and how to open a pull request (PR) to add your contributions to the **development** branch.
17
+
18
+
### Get the source code and set up your branch
19
+
13
20
1. Make sure you have [signed the CLA](http://tableau.github.io/#contributor-license-agreement-cla)
14
21
15
22
1. Fork the repository.
@@ -36,45 +43,47 @@ This topic describes how to contribute to the Tableau Server Client (Python) pro
36
43
git checkout -b 13-feature-new-stuff
37
44
```
38
45
39
-
1. Code and commit!
46
+
###Code and commit
40
47
41
-
Here's a quick checklist for ensuring a good pull request:
48
+
Here's a quick checklist to follow when coding to ensure a good pull request (PR):
42
49
43
-
- Only touch the minimal amount of files possible while still accomplishing the goal.
50
+
- Only touch the fewest number of files possible while still accomplishing the goal.
44
51
- Ensure all indentation is done as 4-spaces and your editor is set to unix line endings.
45
-- The code matches PEP8 style guides. If you cloned the repo you can run `pycodestyle .`
52
+
- The code matches PEP8 style guides. If you cloned the repo you can run `pycodestyle server-client-python test samples`
46
53
- Keep commit messages clean and descriptive.
47
54
If the PR is accepted it will get 'Squashed' into a single commit before merging, the commit messages will be used to generate the Merge commit message.
48
55
49
-
1. Add tests.
56
+
###Add tests
50
57
51
58
All of our tests live under the `test/` folder in the repository.
52
-
We use `unittest` and the built-in test runner `python setup.py test`.
53
-
If a test needs a static file, like a twb/twbx, it should live under `test/assets/`
59
+
We use `pytest` and the built-in test runner `python setup.py test`.
60
+
If a test needs a static file, like a .twb/.twbx, it should live under `test/assets/`
54
61
55
-
1. Update the documentation.
56
-
57
-
Our documentation is written in markdown and built with Jekyll on Github Pages. All of the documentation source files can be found in `docs/docs`.
62
+
### Update the documentation
58
63
59
64
When adding a new feature or improving existing functionality we may ask that you update the documentation along with your code.
60
65
61
-
If you are just making a PR for documentation updates (adding new docs, fixing typos, improving wording) the easiest method is to use the built in `Edit this file` in the Github UI
66
+
Our documentation is written in markdown and built with Jekyll on GitHub Pages. All of the documentation source files can be found in `/docs` folder in the **gh-pages** branch. The docs are hosted on the following URL: [https://tableau.github.io/server-client-python](https://tableau.github.io/server-client-python)
67
+
68
+
If you are just making documentation updates (adding new docs, fixing typos, improving wording) the easiest method is to use the built-in `Edit this file` feature right in GitHub (click the pencil icon). If you are viewing one of the pages on [https://tableau.github.io/server-client-python](https://tableau.github.io/server-client-python), clicking the **Edit this page** link at the top of the page will take you to the same place.
62
69
63
-
1. Submit to your fork.
70
+
### Commit changes to your fork and open a PR
64
71
65
-
1. Make a PR as described [here](https://help.github.com/articles/creating-a-pull-request-from-a-fork/) against the 'development' branch.
72
+
1. Make a PR as described [here](https://help.github.com/articles/creating-a-pull-request-from-a-fork/) against the **development** branch for code changes, or against **gh-pages** for documentation updates.
66
73
67
74
1. Wait for a review and address any feedback.
68
75
While we try and stay on top of all issues and PRs it might take a few days for someone to respond. Politely pinging
69
76
the PR after a few days with no response is OK, we'll try and respond with a timeline as soon as we are able.
70
77
71
-
1. That's it! When the PR has received :rocket:'s from members of the core team they will merge the PR
78
+
1. That's it! When the PR has received {:height="5%" width="5%"} (:rocket:'s) from members of the core team they will merge the PR
79
+
80
+
---
72
81
73
82
74
83
## Add new features
75
84
76
85
1. Create an endpoint class for the new feature, following the structure of the other endpoints. Each endpoint usually
77
-
has `get`, `post`, `update`, and `delete` operations that require making the url, creating the XML request if necesssary,
86
+
has `get`, `post`, `update`, and `delete` operations that require making the url, creating the XML request if necessary,
78
87
sending the request, and creating the target item object based on the server response.
79
88
80
89
1. Create an item class for the new feature, following the structure of the other item classes. Each item has properties
0 commit comments