File tree Expand file tree Collapse file tree 3 files changed +40
-2
lines changed Expand file tree Collapse file tree 3 files changed +40
-2
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will install Python dependencies, run tests and lint with a single version of Python
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3
+
4
+ name : Python application
5
+
6
+ on :
7
+ push :
8
+ branches : ["master"]
9
+ pull_request :
10
+ branches : ["master"]
11
+
12
+ permissions :
13
+ contents : read
14
+
15
+ jobs :
16
+ build :
17
+ runs-on : ubuntu-latest
18
+
19
+ steps :
20
+ # https://docs.astral.sh/uv/guides/integration/github/#setting-up-python
21
+ - uses : actions/checkout@v4
22
+ - name : Install uv
23
+ uses : astral-sh/setup-uv@v4
24
+ - name : " Set up Python"
25
+ uses : actions/setup-python@v5
26
+ with :
27
+ python-version-file : " pyproject.toml"
28
+ - name : Install the project
29
+ run : uv sync --all-extras --dev
30
+ # https://docs.astral.sh/ruff/integrations
31
+ - name : Run Ruff
32
+ run : uv run ruff check --output-format=github .
33
+ - name : Run Format
34
+ run : uv run ruff format --diff
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ def description_text(description: str):
158
158
159
159
def issue_text (issue : Issue ):
160
160
text = title_text (issue )
161
- url = f"{ Fore .GREEN } " f" { issue .url } " f" { Style .RESET_ALL } "
161
+ url = f"{ Fore .GREEN } { issue .url } { Style .RESET_ALL } "
162
162
text += f"<{ url } >\n "
163
163
164
164
if issue .description :
@@ -197,7 +197,6 @@ def issue_text(issue: Issue):
197
197
comment_text += f" { reply .body } \n \n "
198
198
text += f"\n { comment_text } \n "
199
199
200
-
201
200
return text
202
201
203
202
Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ li = "linear.cli:cli"
21
21
[tool .pyright ]
22
22
venvPath = " .venv"
23
23
24
+ [tool .uv ]
25
+ dev-dependencies = [
26
+ " ruff>=0.8.4" ,
27
+ ]
28
+
24
29
[build-system ]
25
30
requires = [" hatchling" ]
26
31
build-backend = " hatchling.build"
You can’t perform that action at this time.
0 commit comments