Skip to content

Commit 23e5c8e

Browse files
authored
Chore/linter tox (#116)
1 parent 5e2090c commit 23e5c8e

84 files changed

Lines changed: 1861 additions & 961 deletions

Some content is hidden

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

.coveragerc

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Bug report
3+
about: Report a problem
4+
title: "[Bug] "
5+
labels: 'bug'
6+
assignees: ''
7+
8+
---
9+
### Description
10+
11+
### Steps to Reproduce
12+
13+
1.
14+
2.
15+
3.
16+
17+
### Expected Behavior
18+
<!-- What did you expect to happen when you did the above? -->
19+
20+
### Actual Behavior
21+
<!-- What actually happened when you did the above? -->
22+
23+
### Basic Information
24+
25+
- code42cli version: <!-- get using `code42 -h`-->
26+
- python version: <!-- get using `code42 -h`-->
27+
- operating system:
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for code42cli
4+
title: "[Enhancement] YOUR IDEA!"
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
## Summary
11+
<!---Please provide a brief summary of your proposal. Two to three sentences is best here. -->
12+
13+
## Proposed API
14+
15+
<!-- What should the terminal commands to accomplish your idea look like?
16+
What parameters are required / optional? What are their names? -->
17+
18+
## Intended Use Case
19+
<!-- Provide a detailed example of where your proposal would be used and for what purpose. -->

.github/workflows/build.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: build
22

3-
on: [pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- v*
9+
pull_request:
410

511
jobs:
612
build:
@@ -17,6 +23,10 @@ jobs:
1723
with:
1824
python-version: ${{ matrix.python }}
1925
- name: Install tox
20-
run: pip install tox==3.14.3
21-
- name: Run Tox
26+
run: pip install tox==3.17.1
27+
- name: Run Unit tests
2228
run: tox -e py # Run tox using the version of Python in `PATH`
29+
- name: Submit coverage report
30+
uses: codecov/[email protected]
31+
with:
32+
file: ./coverage.xml

.github/workflows/docs.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: docs
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- v*
9+
pull_request:
10+
11+
jobs:
12+
13+
docs:
14+
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Setup Python
19+
uses: actions/setup-python@v1
20+
with:
21+
python-version: '3.x'
22+
- name: Install tox
23+
run: pip install tox==3.17.1
24+
- name: Build docs
25+
run: tox -e docs

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ jobs:
6666
TWINE_USERNAME: '__token__'
6767
TWINE_PASSWORD: ${{ secrets.PYPI_ACCESS_TOKEN }}
6868
run: |
69-
twine upload dist/*
69+
twine upload dist/*

.github/workflows/style.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: style
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
tags:
8+
- v*
9+
pull_request:
10+
11+
jobs:
12+
13+
style:
14+
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Setup Python
19+
uses: actions/setup-python@v1
20+
with:
21+
python-version: '3.x'
22+
- name: Install tox
23+
run: pip install tox==3.17.1
24+
- name: Run style checks
25+
run: tox -e style

.gitignore

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22

33
.DS_Store
44

5-
# IDE files
6-
.idea/
7-
.vscode
8-
9-
# Database files
10-
*.db
11-
125
# Byte-compiled / optimized / DLL files
136
__pycache__/
147
*.py[cod]

.idea/.gitignore

Whitespace-only changes.

.idea/code42cli.iml

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)