Skip to content
This repository was archived by the owner on Feb 10, 2026. It is now read-only.

Commit c383add

Browse files
committed
ruff fixes
1 parent fb5e4cf commit c383add

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+471
-474
lines changed

.github/actions/action.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Setup Python Environment"
2+
description: "Set up Python environment for the given Python version"
3+
4+
inputs:
5+
python-version:
6+
description: "Python version to use"
7+
required: true
8+
default: "3.13"
9+
uv-version:
10+
description: "uv version to use"
11+
required: true
12+
default: "0.7.14"
13+
14+
runs:
15+
using: "composite"
16+
steps:
17+
- uses: actions/setup-python@v5
18+
with:
19+
python-version: ${{ inputs.python-version }}
20+
21+
- name: Install uv
22+
uses: astral-sh/setup-uv@v6
23+
with:
24+
version: ${{ inputs.uv-version }}
25+
enable-cache: 'true'
26+
cache-suffix: ${{ matrix.python-version }}
27+
28+
- name: Install Python dependencies
29+
run: uv sync --frozen
30+
shell: bash

.github/workflows/labels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ jobs:
2626
https://raw.githubusercontent.com/biocommons/.github/main/etc/labels.yml
2727
.github/labels.yml
2828
29-
delete-other-labels: false
29+
delete-other-labels: false

.github/workflows/python-ci-cd.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Python CI/CD
2+
permissions:
3+
contents: write
4+
id-token: write
5+
6+
on:
7+
push:
8+
branches: ["*"]
9+
tags: ["*"]
10+
11+
jobs:
12+
python-ci-cd:
13+
name: Python CI/CD
14+
permissions:
15+
contents: write
16+
id-token: write
17+
uses: biocommons/.github/.github/workflows/python-ci-cd.yml@main
18+
with:
19+
publish: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
20+
secrets:
21+
pypi-token: ${{ secrets.UV_PUBLISH_TOKEN }}

.github/workflows/python-package.yaml

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

.gitignore

Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,94 @@
1-
*~
2-
archive
3-
*.bak
1+
# Usually these files are written by a python script from a template
42
# before PyInstaller builds the exe, so as to inject date/other infos into it.
5-
build
6-
build/
73
# Byte-compiled / optimized / DLL files
8-
.cache
9-
celerybeat-schedule
10-
# celery beat schedule file
114
# C extensions
12-
cover
13-
*,cover
14-
.coverage
15-
.coverage.*
16-
coverage.xml
17-
develop-eggs/
18-
dist
19-
dist/
205
# Distribution / packaging
216
# Django stuff:
22-
doc/_build
23-
docs/_build/
7+
# Flask stuff:
8+
# IPython Notebook
9+
# Installer logs
10+
# PyBuilder
11+
# PyInstaller
12+
# Rope project settings
13+
# Scrapy stuff:
14+
# Sphinx documentation
15+
# Spyder project settings
16+
# Translations
17+
# Unit test / coverage reports
18+
# celery beat schedule file
2419
# dotenv
25-
downloads/
26-
.DS_Store
20+
# pyenv
21+
# virtualenv
22+
*$py.class
23+
*,cover
24+
*.bak
2725
*.egg
2826
*.egg-info
2927
*.egg-info/
30-
.eggs
31-
.eggs/
32-
eggs/
3328
*.enc
34-
.env
35-
env/
36-
ENV/
37-
# Flask stuff:
38-
htmlcov/
39-
.hypothesis/
40-
.installed.cfg
41-
# Installer logs
42-
instance/
4329
*.ipynb
44-
.ipynb_checkpoints
45-
# IPython Notebook
4630
*.json
47-
.keys
48-
lib/
49-
lib64/
50-
local_settings.py
5131
*.log
5232
*.manifest
5333
*.mo
54-
nosetests.xml
5534
*.orig
56-
parts/
57-
pip-delete-this-directory.txt
58-
pip-log.txt
5935
*.pot
60-
# PyBuilder
61-
*.pyc
62-
__pycache__/
63-
*$py.class
6436
*.py[cod]
65-
# pyenv
66-
# PyInstaller
37+
*.pyc
6738
*.pyo
68-
.pytest_cache
39+
*.rej
40+
*.so
41+
*.spec
42+
*~
43+
.DS_Store
6944
.Python
45+
.cache
46+
.coverage
47+
.coverage.*
48+
.eggs
49+
.eggs/
50+
.env
51+
.hypothesis/
52+
.installed.cfg
53+
.ipynb_checkpoints
54+
.keys
55+
.pytest_cache
7056
.python-version
71-
*.rej
7257
.ropeproject
73-
# Rope project settings
7458
.scrapy
75-
# Scrapy stuff:
76-
sdist/
77-
*.so
78-
*.spec
79-
# Sphinx documentation
8059
.spyderproject
81-
# Spyder project settings
8260
.tags
8361
.tags.mk
62+
.tox/
63+
.webassets-cache
64+
ENV/
65+
__pycache__/
66+
archive
67+
build
68+
build/
69+
celerybeat-schedule
70+
cover
71+
coverage.xml
72+
develop-eggs/
73+
dist
74+
dist/
75+
doc/_build
76+
docs/_build/
77+
downloads/
78+
eggs/
79+
env/
80+
htmlcov/
81+
instance/
82+
lib/
83+
lib64/
84+
local_settings.py
85+
nosetests.xml
86+
parts/
87+
pip-delete-this-directory.txt
88+
pip-log.txt
89+
sdist/
8490
target/
8591
tmp
86-
.tox/
87-
# Translations
88-
# Unit test / coverage reports
89-
# Usually these files are written by a python script from a template
9092
var/
9193
ve3k/
9294
venv/
93-
# virtualenv
94-
.webassets-cache

TODO

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,3 @@ use web history + iterators for chained searching
3232
** provide uncached access
3333
** support history
3434
** default args is misplaced -- it should go in client instead
35-

docs/conf.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
#
32
# eutils documentation build configuration file, created by
43
# sphinx-quickstart on Tue Aug 11 10:03:31 2015.
@@ -12,8 +11,6 @@
1211
# All configuration values have a default; values that are commented out
1312
# serve to show the default.
1413

15-
import sys
16-
import os
1714

1815
import sphinx_rtd_theme
1916

docs/contributing.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,3 @@ targets.)
127127
$ hg push
128128

129129
* If you'd like to contribute back, create a pull request.
130-

docs/design

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
QueryService -- provides eutils web requests
22
CachingQueryService -- subclass of above, with selectable caching
3-
Client -- uses QS to
3+
Client -- uses QS to
44
EasyClient -- combine esearch + efetch
55

66

misc/eutils-xml-examples/efetch.fcgi?db=nuccore&id=319655736&retmode=xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,4 +1267,3 @@
12671267
</GBSeq>
12681268

12691269
</GBSet>
1270-

0 commit comments

Comments
 (0)