Skip to content

Commit

Permalink
chore: updated workflows and added py.typed
Browse files Browse the repository at this point in the history
  • Loading branch information
Goldziher committed Jul 16, 2024
1 parent 127efb6 commit 6f03dd1
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 37 deletions.
50 changes: 15 additions & 35 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: pdm-project/setup-pdm@v4
with:
python-version: '3.11'
python-version: '3.9'
cache: true
cache-dependency-path: |
./pdm.lock
Expand All @@ -29,37 +29,17 @@ jobs:
key: pre-commit-4|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Execute Pre-Commit
run: pdm run pre-commit run --show-diff-on-failure --color=always --all-files
# test:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: pdm-project/setup-pdm@v4
# with:
# python-version: "3.11"
# cache: true
# cache-dependency-path: |
# ./pdm.lock
# - name: Install Dependencies
# run: pdm install
# - name: Run Tests
# run: pdm run coverage || true
# - name: Upload Coverage Artifact
# uses: actions/upload-artifact@v4
# with:
# name: coverage
# path: ./coverage.xml
# coverage:
# runs-on: ubuntu-latest
# needs: test
# steps:
# - name: Download Coverage Artifact
# uses: actions/download-artifact@v4
# with:
# name: coverage
# path: .
# - name: Report test coverage to DeepSource
# uses: deepsourcelabs/test-coverage-action@master
# with:
# key: python
# coverage-file: coverage.xml
# dsn: ${{ vars.DEEPSOURCE_DSN }}
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pdm-project/setup-pdm@v4
with:
python-version: '3.9'
cache: true
cache-dependency-path: |
./pdm.lock
- name: Install Dependencies
run: pdm install
- name: Run Tests
run: pdm run test
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p align="center">
<!-- github-banner-start -->
<img src="assets/logo_white_bg.svg" alt="Litestar Logo - Light" width="100%" height="auto" />
<img src="https://github.com/Goldziher/gitmind/blob/main/assets/logo_white_bg.svg?raw=true" alt="GitMind Logo - Light" width="100%" height="auto" />
<!-- github-banner-end -->
</p>

Expand Down
1 change: 1 addition & 0 deletions gitmind/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# PEP-0561: https://peps.python.org/pep-0561/#packaging-type-information
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "gitmind"
version = "0.0.1"
description = "Default template for PDM package"
description = "AI powered Git repository analysis and reporting"
authors = [{ name = "Na'aman Hirschfeld", email = "nhirschfeld@gmail.com" }]
requires-python = ">=3.9"
readme = "README.md"
Expand All @@ -23,6 +23,8 @@ classifiers = [
"Topic :: Software Development",
"Typing :: Typed",
]
keywords = ["git", "repository", "analysis", "reporting", "ai", "dev-tools", "linting"]

dependencies = [
"httpx>=0.27.0",
"anyio>=4.4.0",
Expand All @@ -39,6 +41,9 @@ dependencies = [
"typing-extensions>=4.12.2",
]

[project.urls]
Repository = "https://github.com/Goldziher/gitmind"

[project.optional-dependencies]
openai = [
"openai>=1.35.11",
Expand Down

0 comments on commit 6f03dd1

Please sign in to comment.