Skip to content

Commit 064ee3e

Browse files
committed
Initial commit copied from omero-rdf
0 parents  commit 064ee3e

14 files changed

+879
-0
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/omero_rdf_wd/_version.py export-subst

.github/workflows/omero_plugin.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Install and test and OMERO plugin e.g. a Web app, a CLI plugin or a library
2+
#
3+
# This workflow will install omero-test-infra, start an OMERO environment
4+
# including database, server and web deployment, configure the OMERO plugin
5+
# and run integration tests.
6+
#
7+
# 1. Set up the stage variable depending on the plugin. Supported stages
8+
# are: app, cli, scripts, lib, srv
9+
#
10+
# 2. Adjust the cron schedule as necessary
11+
12+
name: OMERO
13+
on:
14+
push:
15+
pull_request:
16+
schedule:
17+
- cron: '0 0 * * 0'
18+
19+
jobs:
20+
test:
21+
name: Run integration tests against OMERO
22+
runs-on: ubuntu-latest
23+
env:
24+
STAGE: cli
25+
PLUGIN: rdf
26+
steps:
27+
- uses: actions/checkout@v4
28+
- name: Checkout omero-test-infra
29+
uses: actions/checkout@master
30+
with:
31+
repository: ome/omero-test-infra
32+
path: .omero
33+
ref: ${{ secrets.OMERO_TEST_INFRA_REF }}
34+
- name: Build and run OMERO tests
35+
run: .omero/docker $STAGE

.github/workflows/publish_pypi.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: PyPI
3+
on: push
4+
5+
jobs:
6+
build-n-publish:
7+
name: Build and publish Python distribution to PyPI
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-python@v5
12+
with:
13+
python-version: '3.9'
14+
- name: Build a binary wheel and a source tarball
15+
run: |
16+
python -mpip install setuptools build wheel
17+
python -m build
18+
- name: Publish distribution to PyPI
19+
if: startsWith(github.ref, 'refs/tags')
20+
uses: pypa/[email protected]
21+
with:
22+
password: ${{ secrets.PYPI_PASSWORD }}

.gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
build
2+
dist
3+
omero-rdf-wd-*
4+
*.egg*
5+
.cache
6+
*.DS_Store
7+
.*un~
8+
*.pyc
9+
.omero
10+
.*.swp

.isort.cfg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[settings]
2+
known_third_party = entrypoints,omero,omero_marshal,omero_rdf_wd,pyld,rdflib,rdflib_pyld_compat,wikidataintegrator

.pre-commit-config.yaml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
repos:
3+
4+
- repo: https://github.com/psf/black
5+
rev: 22.12.0
6+
hooks:
7+
- id: black
8+
args: [--target-version=py38]
9+
10+
- repo: https://github.com/asottile/pyupgrade
11+
rev: v2.29.1
12+
hooks:
13+
- id: pyupgrade
14+
args:
15+
- --py36-plus
16+
17+
- repo: https://github.com/pre-commit/pre-commit-hooks
18+
rev: v4.0.1
19+
hooks:
20+
- id: trailing-whitespace
21+
exclude: .bumpversion.cfg
22+
- id: end-of-file-fixer
23+
- id: check-json
24+
files: \.(json)$
25+
- id: check-yaml
26+
- id: fix-encoding-pragma
27+
args:
28+
- --remove
29+
- id: check-case-conflict
30+
- id: check-merge-conflict
31+
- id: check-symlinks
32+
- id: pretty-format-json
33+
args:
34+
- --autofix
35+
36+
- repo: https://github.com/PyCQA/flake8
37+
rev: 4.0.1
38+
hooks:
39+
- id: flake8
40+
additional_dependencies: [
41+
flake8-blind-except,
42+
flake8-builtins,
43+
flake8-rst-docstrings,
44+
flake8-logging-format,
45+
]
46+
args: [
47+
# default black line length is 88
48+
"--max-line-length=88",
49+
# Conflicts with black: E203 whitespace before ':'
50+
"--extend-ignore=E203",
51+
"--rst-roles=class,func,ref,module,const",
52+
]
53+
54+
- repo: https://github.com/pre-commit/mirrors-mypy
55+
rev: v1.7.1
56+
hooks:
57+
- id: mypy
58+
language_version: python3
59+
60+
- repo: https://github.com/adrienverge/yamllint.git
61+
rev: v1.26.3
62+
hooks:
63+
- id: yamllint
64+
# args: [--config-data=relaxed]
65+
#

CHANGES.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
=======
2+
Changes
3+
=======
4+
5+
0.1 - 2022-07-26
6+
==================
7+
* Initial release. Based on https://github.com/ome/cookiecutter-omero-cli-plugin

0 commit comments

Comments
 (0)