Skip to content

Commit 8b580f5

Browse files
Merge pull request #8 from googlefonts/none-types
Broaden None type support, add unit tests
2 parents 6639946 + 02b4322 commit 8b580f5

File tree

11 files changed

+3554
-3099
lines changed

11 files changed

+3554
-3099
lines changed

.flake8

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[flake8]
2+
# Maximum line length
3+
max-line-length = 90
4+
5+
# Exclude specific directories
6+
exclude =
7+
.git,
8+
__pycache__,
9+
build,
10+
dist,
11+
lib
12+
13+
# Ignore specific errors and warnings
14+
ignore =
15+
E203,
16+
E266,
17+
E501,
18+
W503

.github/workflows/ci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Continuous Integration Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- "*" # This will trigger on pushes to *any* branch
7+
8+
pull_request_target:
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
# Condition to prevent duplicate runs
14+
if: github.event_name == 'push' || (github.event_name == 'pull_request_target' && github.event.pull_request.head.sha == github.sha)
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
with:
19+
# Important: Fetch the correct commit for pull_request_target
20+
ref: ${{ github.event.pull_request.head.sha }} # For pull_request_target
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: "3.13"
26+
27+
- name: Cache pip
28+
uses: actions/cache@v4
29+
with:
30+
path: ~/.cache/pip
31+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
32+
restore-keys: |
33+
${{ runner.os }}-pip-
34+
35+
- name: Install dependencies
36+
run: |
37+
python -m pip install --upgrade pip
38+
pip install -r requirements-dev.txt
39+
40+
- name: Run flake8
41+
run: |
42+
flake8 --config=.flake8
43+
44+
- name: Run pytest
45+
run: |
46+
pytest -c pytest.ini

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,6 @@ dmypy.json
122122

123123
# Pyre type checker
124124
.pyre/
125+
126+
# VS Code config
127+
.vscode

docs/v1/data-min.json.gz

171 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)