Skip to content

Commit 6efc808

Browse files
committed
initial
0 parents  commit 6efc808

File tree

202 files changed

+22178
-0
lines changed

Some content is hidden

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

202 files changed

+22178
-0
lines changed

.github/workflows/ci.yml

Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
name: test
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Set up Python 3.13
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: "3.13"
23+
24+
- name: Install PDM
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install pdm
28+
29+
- name: Install dependencies
30+
run: |
31+
pdm install -G:all
32+
33+
- name: Run tests with coverage
34+
run: |
35+
pdm run pytest --cov=fitbit_client --cov-report=xml:coverage.xml
36+
37+
- name: Upload coverage to Codecov
38+
uses: codecov/codecov-action@v5
39+
with:
40+
token: ${{ secrets.CODECOV_TOKEN }}
41+
files: ./coverage.xml
42+
# fail_ci_if_error: false
43+
name: codecov-umbrella
44+
verbose: true
45+
46+
mypy:
47+
name: mypy
48+
runs-on: ubuntu-latest
49+
steps:
50+
- name: Checkout
51+
uses: actions/checkout@v4
52+
with:
53+
fetch-depth: 0
54+
55+
- name: Set up Python 3.13
56+
uses: actions/setup-python@v4
57+
with:
58+
python-version: "3.13"
59+
60+
- name: Install PDM
61+
run: |
62+
python -m pip install --upgrade pip
63+
pip install pdm
64+
65+
- name: Install dependencies
66+
run: |
67+
pdm install -G:all
68+
69+
- name: Verify type hints
70+
run: |
71+
pdm run mypy
72+
73+
isort:
74+
name: isort
75+
runs-on: ubuntu-latest
76+
steps:
77+
- name: Checkout
78+
uses: actions/checkout@v4
79+
with:
80+
fetch-depth: 0
81+
82+
- name: Set up Python 3.13
83+
uses: actions/setup-python@v4
84+
with:
85+
python-version: "3.13"
86+
87+
- name: Install PDM
88+
run: |
89+
python -m pip install --upgrade pip
90+
pip install pdm
91+
92+
- name: Install dependencies
93+
run: |
94+
pdm install -G:all
95+
96+
- name: Check import formatting
97+
run: |
98+
pdm run isort --check --verbose
99+
100+
black:
101+
name: black
102+
runs-on: ubuntu-latest
103+
steps:
104+
- name: Checkout
105+
uses: actions/checkout@v4
106+
with:
107+
fetch-depth: 0
108+
109+
- name: Set up Python 3.13
110+
uses: actions/setup-python@v4
111+
with:
112+
python-version: "3.13"
113+
114+
- name: Install PDM
115+
run: |
116+
python -m pip install --upgrade pip
117+
pip install pdm
118+
119+
- name: Install dependencies
120+
run: |
121+
pdm install -G:all
122+
123+
- name: Check code style
124+
run: |
125+
pdm run black --check --verbose
126+
127+
mdformat:
128+
name: mdformat
129+
runs-on: ubuntu-latest
130+
steps:
131+
- name: Checkout
132+
uses: actions/checkout@v4
133+
with:
134+
fetch-depth: 0
135+
136+
- name: Set up Python 3.13
137+
uses: actions/setup-python@v4
138+
with:
139+
python-version: "3.13"
140+
141+
- name: Install PDM
142+
run: |
143+
python -m pip install --upgrade pip
144+
pip install pdm
145+
146+
- name: Install dependencies
147+
run: |
148+
pdm install -G:all
149+
150+
- name: Check markdown style
151+
run: |
152+
pdm run mdformat --check --exclude ".venv/**"

.gitignore

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Python
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
*.so
6+
.Python
7+
develop-eggs/
8+
dist/
9+
downloads/
10+
eggs/
11+
.eggs/
12+
lib/
13+
lib64/
14+
parts/
15+
sdist/
16+
var/
17+
wheels/
18+
*.egg-info/
19+
.installed.cfg
20+
*.egg
21+
22+
# Virtual Environment
23+
.env
24+
.venv
25+
env/
26+
venv/
27+
ENV/
28+
29+
# PDM
30+
.pdm-python
31+
.pdm-build/
32+
__pypackages__/
33+
34+
# IDE
35+
.idea/
36+
.vscode/
37+
*.swp
38+
*.swo
39+
*~
40+
41+
# Testing
42+
.coverage
43+
coverage.xml
44+
htmlcov/
45+
.pytest_cache/
46+
.mypy_cache/
47+
*,cover
48+
49+
# Mac
50+
.DS_Store
51+
*,cover
52+
53+
# Mac
54+
.DS_Store
55+
56+
# Project specific
57+
_api-docs
58+
_data
59+
_logs
60+
_sample_responses
61+
_scripts
62+
_cov_html
63+
_api-docs
64+
_data
65+
_logs
66+
_sample_responses
67+
_scripts
68+
_cov_html
69+
secrets.json
70+
tokens.json
71+
TODO.md
72+

0 commit comments

Comments
 (0)