File tree Expand file tree Collapse file tree 3 files changed +117
-0
lines changed
Expand file tree Collapse file tree 3 files changed +117
-0
lines changed Original file line number Diff line number Diff line change 1+ # Set default behavior to automatically normalize line endings
2+ * text =auto
3+
4+ # Source code
5+ * .py text diff =python
6+ * .ipynb text
7+ * .sh text eol =lf
8+ * .json text
9+ * .yml text
10+ * .yaml text
11+ * .toml text
12+ * .md text diff =markdown
13+ * .org text
14+
15+ # Data files
16+ * .csv text
17+ * .tsv text
18+ * .jsonl text
19+
20+ # Documents
21+ * .pdf binary
22+ * .doc binary
23+ * .docx binary
24+ * .xlsx binary
25+
26+ # Denote binary files
27+ * .png binary
28+ * .jpg binary
29+ * .jpeg binary
30+ * .gif binary
31+ * .ico binary
32+ * .gz binary
33+ * .zip binary
34+ * .pkl binary
Original file line number Diff line number Diff line change 1+ name : Python Tests
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+ test :
11+ runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ python-version : [3.9, 3.10, 3.11]
15+
16+ steps :
17+ - uses : actions/checkout@v3
18+ - name : Set up Python ${{ matrix.python-version }}
19+ uses : actions/setup-python@v4
20+ with :
21+ python-version : ${{ matrix.python-version }}
22+ - name : Install dependencies
23+ run : |
24+ python -m pip install --upgrade pip
25+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
26+ if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
27+ pip install pytest black flake8 mypy
28+ - name : Lint with flake8
29+ run : |
30+ flake8 src
31+ - name : Format check with black
32+ run : |
33+ black --check src
34+ - name : Type check with mypy
35+ run : |
36+ mypy src
37+ - name : Test with pytest
38+ run : |
39+ pytest
Original file line number Diff line number Diff line change 1+ # Python
2+ __pycache__ /
3+ * .py [cod ]
4+ * $py.class
5+ * .so
6+ .Python
7+ env /
8+ build /
9+ develop-eggs /
10+ dist /
11+ downloads /
12+ eggs /
13+ .eggs /
14+ lib /
15+ lib64 /
16+ parts /
17+ sdist /
18+ var /
19+ * .egg-info /
20+ .installed.cfg
21+ * .egg
22+ .pytest_cache /
23+ .coverage
24+ htmlcov /
25+ .tox /
26+
27+ # Virtual Environments
28+ venv /
29+ ENV /
30+ .env
31+
32+ # Documentation builds
33+ docs /build /
34+
35+ # Editor files
36+ .idea /
37+ .vscode /
38+ * .swp
39+ * ~
40+ .DS_Store
41+
42+ # Project specific
43+ data /samples /sensitive /
44+ * .log
You can’t perform that action at this time.
0 commit comments