Skip to content

Commit 4404367

Browse files
authored
Merge pull request #96 from microsoftgraph/dev
Release version 0.1.2 to PyPI
2 parents 4b402e5 + 25d8366 commit 4404367

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+3142
-22
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @samwelkanda @jobala @ddyett @MichaelMainer @shemogumbe
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: samwelkanda
7+
8+
---
9+
10+
---
11+
name: Bug report
12+
about: Create a report to help us improve
13+
title: ''
14+
labels: ''
15+
assignees: ''
16+
17+
---
18+
19+
**Describe the bug**
20+
A clear and concise description of what the bug is.
21+
22+
**To Reproduce**
23+
Steps to reproduce the behavior:
24+
1. Go to '...'
25+
2. Click on '....'
26+
3. Scroll down to '....'
27+
4. See error
28+
29+
**Expected behavior**
30+
A clear and concise description of what you expected to happen.
31+
32+
**Screenshots**
33+
If applicable, add screenshots to help explain your problem.
34+
35+
**Additional context**
36+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/pull_request_template.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Overview
2+
3+
Brief description of what this PR does, and why it is needed.
4+
5+
### Demo
6+
7+
Optional. Screenshots, `curl` examples, etc.
8+
9+
### Notes
10+
11+
Optional. Ancillary topics, caveats, alternative strategies that didn't work out, anything else.
12+
13+
## Testing Instructions
14+
15+
* How to test this PR
16+
* Prefer bulleted description
17+
* Start after checking out this branch
18+
* Include any setup required, such as bundling scripts, restarting services, etc.
19+
* Include test case, and expected output

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: msgraph-sdk-python-core
5+
6+
on:
7+
pull_request:
8+
branches: [master, dev]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: [3.5, 3.6, 3.7, 3.8]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v1
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install pipenv
27+
pipenv install --dev
28+
- name: Check code format
29+
run: |
30+
pipenv run yapf -dr .
31+
- name: Check import order
32+
run: |
33+
pipenv run isort .
34+
- name: Lint with Pylint
35+
run: |
36+
pipenv run pylint msgraph --disable=W --rcfile=.pylintrc
37+
- name: Test with pytest
38+
run: |
39+
pipenv run pytest

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,7 @@ dmypy.json
128128
# Pyre type checker
129129
.pyre/
130130

131+
# Pycharm
131132
.idea/
133+
134+
app.py

.isort.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[settings]
2+
profile=hug

.pre-commit-config.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
default_language_version:
2+
python: python3
3+
repos:
4+
- repo: local
5+
hooks:
6+
- id: yapf
7+
name: yapf
8+
stages: [commit]
9+
language: system
10+
entry: pipenv run yapf -ir .
11+
types: [python]
12+
13+
- id: isort
14+
name: isort
15+
stages: [commit]
16+
language: system
17+
entry: pipenv run isort .
18+
types: [python]
19+
20+
- id: pylint
21+
name: pylint
22+
stages: [commit]
23+
language: system
24+
entry: pipenv run pylint msgraph --disable=W --rcfile=.pylintrc
25+
types: [python]
26+
27+
- id: pytest
28+
name: pytest
29+
stages: [commit]
30+
language: system
31+
entry: pipenv run pytest tests
32+
types: [python]

0 commit comments

Comments
 (0)