Skip to content

Commit d6dba49

Browse files
authored
Merge pull request #8 from tedivm/improvements
cli fixes, ruff, remote setup.cfg/setup.py, setuptools_scm
2 parents 0b1dadb + 8d5f976 commit d6dba49

22 files changed

Lines changed: 152 additions & 858 deletions

.github/workflows/black.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,7 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v4
1111

12-
- name: Get Python Version from File
13-
id: python_version
14-
run: echo "version=$(cat VERSION)" >> $GITHUB_OUTPUT
15-
1612
- uses: actions/setup-python@v5
17-
with:
18-
python-version: ${{ steps.python_version.outputs.version }}
1913

2014
- name: Install Dependencies
2115
run: make install

.github/workflows/dapperdata.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,7 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v4
1111

12-
- name: Get Python Version from File
13-
id: python_version
14-
run: echo "version=$(cat VERSION)" >> $GITHUB_OUTPUT
15-
1612
- uses: actions/setup-python@v5
17-
with:
18-
python-version: ${{ steps.python_version.outputs.version }}
1913

2014
- name: Install Dependencies
2115
run: make install

.github/workflows/isort.yaml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/mypy.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,7 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v4
1111

12-
- name: Get Python Version from File
13-
id: python_version
14-
run: echo "version=$(cat VERSION)" >> $GITHUB_OUTPUT
15-
1612
- uses: actions/setup-python@v5
17-
with:
18-
python-version: ${{ steps.python_version.outputs.version }}
1913

2014
- name: Install Dependencies
2115
run: make install

.github/workflows/pypi.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19-
- name: Get Python Version from File
20-
id: python_version
21-
run: echo "version=$(cat VERSION)" >> $GITHUB_OUTPUT
22-
2319
- uses: actions/setup-python@v5
24-
with:
25-
python-version: ${{ steps.python_version.outputs.version }}
2620

2721
- name: Install Dependencies
2822
run: make install

.github/workflows/pytest.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,15 @@ env:
99
jobs:
1010
pytest:
1111
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python_version: ["3.10", "3.11", "3.12"]
1215
steps:
1316
- uses: actions/checkout@v4
1417

15-
- name: Get Python Version from File
16-
id: python_version
17-
run: echo "version=$(cat VERSION)" >> $GITHUB_OUTPUT
18-
1918
- uses: actions/setup-python@v5
2019
with:
21-
python-version: ${{ steps.python_version.outputs.version }}
20+
python-version: "${{ matrix.python_version }}"
2221

2322
- name: Install Dependencies
2423
run: make install

.github/workflows/ruff.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Ruff Validation
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
ruff:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- uses: actions/setup-python@v5
13+
14+
- name: Install Dependencies
15+
run: make install
16+
17+
- name: Test Formatting
18+
run: make ruff_check

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,6 @@ cython_debug/
157157
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158158
# and can be added to the global gitignore or merged into this file. For a more nuclear
159159
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160-
#.idea/
160+
#.idea/
161+
162+
quasiqueue/_version.py

.pre-commit-config.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
repos:
2+
- repo: local
3+
hooks:
4+
- id: pytest
5+
name: pytest
6+
entry: make pytest
7+
language: system
8+
pass_filenames: false
9+
- id: ruff
10+
name: ruff
11+
entry: make ruff_check
12+
language: system
13+
pass_filenames: false
14+
- id: black
15+
name: black
16+
entry: make black_check
17+
language: system
18+
pass_filenames: false
19+
- id: mypy
20+
name: mypy
21+
entry: make mypy_check
22+
language: system
23+
pass_filenames: false

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.11.1
1+
3.12

0 commit comments

Comments
 (0)