Skip to content

Commit e614d50

Browse files
committed
a few other things
1 parent 38f60a9 commit e614d50

File tree

3 files changed

+60
-59
lines changed

3 files changed

+60
-59
lines changed

.github/workflows/checks.yaml

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -7,72 +7,72 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
python-version: ["3.10", "3.11", "3.12"]
10+
python-version: ["3.11", "3.12", "3.13"]
1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v6
1313

14-
- name: Set up Python ${{ matrix.python-version }}
15-
uses: actions/setup-python@v5
14+
- name: Set up Python
15+
uses: actions/setup-python@v6
16+
with:
17+
python-version: {{ "${{ matrix.python-version }}" }}
18+
19+
- name: Install uv
20+
uses: astral-sh/setup-uv@v7
1621
with:
17-
python-version: ${{ matrix.python-version }}
22+
enable-cache: true
1823

1924
- name: Install dependencies
20-
run: |
21-
python3 -m pip install pipenv
22-
pipenv install --dev
25+
run: uv sync
2326
lint:
2427
runs-on: ubuntu-latest
2528
steps:
26-
- uses: actions/checkout@v4
29+
- uses: actions/checkout@v6
2730

2831
- name: Set up Python
29-
uses: actions/setup-python@v5
32+
uses: actions/setup-python@v6
3033
with:
31-
python-version: 3.11
34+
python-version: 3.13
35+
36+
- name: Install uv
37+
uses: astral-sh/setup-uv@v7
38+
with:
39+
enable-cache: true
3240

3341
- name: Install dependencies
34-
run: python3 -m pip install ".[dev]"
42+
run: uv sync --extra dev
3543

3644
- name: Check style
37-
run: python3 -m ruff check . && python3 -m ruff format --check .
45+
run: uv run ruff check && uv run ruff format --check
46+
47+
precommit_hooks:
48+
runs-on: ubuntu-latest
49+
steps:
50+
- uses: actions/checkout@v6
51+
52+
- uses: j178/prek-action@v1
53+
with:
54+
extra_args: '--all-files --skip "ruff-format" --skip "ruff-check"'
3855

3956
docs:
4057
runs-on: ubuntu-latest
4158
env:
4259
SPHINX_GITHUB_CHANGELOG_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4360
steps:
44-
- uses: actions/checkout@v4
61+
- uses: actions/checkout@v6
4562

4663
- name: Set up Python
47-
uses: actions/setup-python@v5
64+
uses: actions/setup-python@v6
4865
with:
49-
python-version: 3.11
66+
python-version: 3.12 # broken on 3.13
67+
68+
- name: Install uv
69+
uses: astral-sh/setup-uv@v7
70+
with:
71+
enable-cache: true
5072

5173
- name: Install dependencies
52-
run: |
53-
python3 -m pip install --upgrade pip
54-
python3 -m pip install '.[docs]'
74+
run: uv sync --extra docs
5575

5676
- name: Attempt docs build
5777
working-directory: ./docs
58-
run: make html
59-
60-
precommit_hooks:
61-
runs-on: ubuntu-latest
62-
strategy:
63-
matrix:
64-
cmd:
65-
- "end-of-file-fixer"
66-
- "trailing-whitespace"
67-
- "mixed-line-ending"
68-
steps:
69-
- uses: actions/checkout@v4
70-
71-
- name: Set up Python 3.12
72-
uses: actions/setup-python@v5
73-
with:
74-
python-version: 3.12
75-
76-
- uses: pre-commit/[email protected]
77-
with:
78-
extra_args: ${{ matrix.cmd }} --all-files
78+
run: source ../.venv/bin/activate && make html

.pre-commit-config.yaml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v5.0.0 # pre-commit-hooks version
3+
rev: v6.0.0 # pre-commit-hooks version
44
hooks:
5-
- id: check-added-large-files
6-
- id: detect-private-key
7-
- id: trailing-whitespace
8-
- id: end-of-file-fixer
9-
- id: check-merge-conflict
105
- id: detect-aws-credentials
116
args: [ --allow-missing-credentials ]
7+
- repo: builtin
8+
hooks:
9+
- id: trailing-whitespace
10+
- id: check-added-large-files
11+
args: ['--maxkb=1500']
12+
- id: check-case-conflict
13+
- id: end-of-file-fixer
14+
- id: fix-byte-order-marker
15+
- id: check-json
16+
- id: check-toml
17+
- id: check-yaml
1218
- id: mixed-line-ending
1319
args: [ --fix=lf ]
20+
- id: check-merge-conflict
21+
- id: detect-private-key
1422
- repo: https://github.com/astral-sh/ruff-pre-commit
15-
rev: v0.14.10
23+
rev: v0.14.10 # ruff version
1624
hooks:
25+
- id: ruff-format
1726
- id: ruff-check
1827
args: [ --fix, --exit-non-zero-on-fix ]
19-
- id: ruff-format
20-
minimum_pre_commit_version: 4.2.0
28+
minimum_prek_version: 0.2.23

pyproject.toml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ classifiers = [
1414
"Intended Audience :: Science/Research",
1515
"Intended Audience :: Developers",
1616
"Topic :: Scientific/Engineering :: Bio-Informatics",
17-
"License :: OSI Approved :: MIT License",
1817
"Programming Language :: Python :: 3",
1918
"Programming Language :: Python :: 3.11",
2019
"Programming Language :: Python :: 3.12",
2120
"Programming Language :: Python :: 3.13",
2221
]
2322
requires-python = ">=3.11"
2423
description = "Common Operation on Lots of Sequences Tool"
25-
license = {file = "LICENSE"}
24+
license = "MIT"
25+
license-files = ["LICENSE"]
2626
dependencies = [
2727
"asyncpg",
2828
"boto3",
@@ -38,7 +38,7 @@ dynamic = ["version"]
3838

3939
[project.optional-dependencies]
4040
dev = [
41-
"pre-commit>=4.2.0",
41+
"prek>=0.2.23",
4242
"ipython",
4343
"ipykernel",
4444
"psycopg2-binary",
@@ -68,13 +68,6 @@ build-backend = "setuptools.build_meta"
6868

6969
[tool.setuptools_scm]
7070

71-
# Scanning for namespace packages in the ``src`` directory is true by
72-
# default in pyproject.toml, so you do NOT need to include the
73-
# `tool.setuptools.packages.find` if it looks like the following:
74-
# [tool.setuptools.packages.find]
75-
# namespaces = true
76-
# where = ["src"]
77-
7871
[tool.setuptools.package-data]
7972
"cool_seq_tool.resources" = ["transcript_mapping.tsv"]
8073

0 commit comments

Comments
 (0)