Skip to content

Commit 6bf39e5

Browse files
chore: restructure project (#6)
update note for stubs update note on installation --------- Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent 4402bc8 commit 6bf39e5

File tree

114 files changed

+148
-158
lines changed

Some content is hidden

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

114 files changed

+148
-158
lines changed

.cz.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ version_scheme = "pep440"
66
version = "17.25.0b5"
77
update_changelog_on_bump = true
88
version_files = [
9-
"java-api/setup.cfg:version",
10-
"java-api-stubs/pyproject.toml:version"
9+
"setup.cfg:version",
10+
"stubs/pyproject.toml:version"
1111
]

.devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
}
1414
},
1515
"onCreateCommand": "pre-commit install --hook-type pre-commit --hook-type commit-msg --hook-type pre-push",
16-
"postCreateCommand": "python2 -m pip install --requirement java-api/requirements.txt"
16+
"postCreateCommand": "python2 -m pip install --requirement requirements.txt"
1717
}

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ jobs:
1313
uses: coatl-dev/workflows/.github/workflows/pylint.yml@v6
1414
with:
1515
path: src
16-
working-directory: java-api

.github/workflows/pr-build.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,16 @@ on:
99
- '**/pyproject.toml'
1010
- '**/requirements.txt'
1111
- '**/tox.ini'
12-
- java-api/src/**
13-
- java-api/setup.cfg
14-
- java-api/setup.py
15-
- java-api/tests/**
16-
- java-api-stubs/stubs/**
12+
- src/**
13+
- setup.cfg
14+
- setup.py
15+
- tests/**
16+
- stubs/stubs/**
1717
workflow_call:
1818

1919
jobs:
2020
tox-java-api:
2121
uses: coatl-dev/workflows/.github/workflows/tox-docker.yml@v6
22-
with:
23-
working-directory: java-api
2422

2523
tox-java-api-stubs:
2624
uses: coatl-dev/workflows/.github/workflows/tox.yml@v6
@@ -30,4 +28,4 @@ jobs:
3028
3.10
3129
3.11
3230
3.12
33-
working-directory: java-api-stubs
31+
working-directory: stubs

.github/workflows/publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@ jobs:
2424
uses: coatl-dev/actions/pypi-upload@v5
2525
with:
2626
password: ${{ secrets.PYPI_API_TOKEN_JAVA_API_PKG }}
27-
working-directory: java-api
2827

2928
- name: Upload java-api-stubs to PyPI
3029
uses: coatl-dev/actions/pypi-upload@v5
3130
with:
3231
python-version: '3.12'
3332
password: ${{ secrets.PYPI_API_TOKEN_JAVA_API_STUBS }}
34-
working-directory: java-api-stubs
33+
working-directory: stubs
File renamed without changes.

.pre-commit-config.yaml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ repos:
99
rev: v1.3.0
1010
hooks:
1111
- id: sort-all
12-
files: ^java-api/src/
12+
files: ^src/
1313
- repo: https://github.com/bwhmather/ssort
1414
rev: 0.16.0
1515
hooks:
1616
- id: ssort
17-
files: ^java-api/src/
17+
files: ^src/
1818
- repo: https://github.com/psf/black-pre-commit-mirror
1919
rev: 25.12.0
2020
hooks:
@@ -23,36 +23,36 @@ repos:
2323
rev: 1.3.0
2424
hooks:
2525
- id: unimport
26-
files: ^java-api/src/
26+
files: ^src/
2727
language_version: python3.12
2828
- repo: https://github.com/PyCQA/isort
2929
rev: 7.0.0
3030
hooks:
3131
- id: isort
3232
name: isort-java-api
33-
files: ^java-api/src/
34-
args: [--settings-file, java-api/tox.ini]
33+
files: ^src/
34+
args: [--settings-file, tox.ini]
3535
- repo: https://github.com/PyCQA/isort
3636
rev: 7.0.0
3737
hooks:
3838
- id: isort
3939
name: isort-java-api-stubs
40-
files: ^java-api-stubs/stubs/
41-
args: [--settings-file, java-api-stubs/tox.ini]
40+
files: ^stubs/stubs/
41+
args: [--settings-file, stubs/tox.ini]
4242
- repo: https://github.com/PyCQA/docformatter
4343
rev: v1.7.7
4444
hooks:
4545
- id: docformatter
46-
files: ^java-api/src/
47-
args: [--config, java-api/tox.ini]
46+
files: ^src/
47+
args: [--config, tox.ini]
4848
language_version: python3.12
4949
- repo: https://github.com/coatl-dev/flake8
5050
rev: 5.0.4
5151
hooks:
5252
- id: flake8
5353
name: flake8-java-api
54-
files: ^java-api/src/
55-
args: [--config, java-api/tox.ini]
54+
files: ^src/
55+
args: [--config, tox.ini]
5656
additional_dependencies: [pydoclint]
5757
language_version: python3.12
5858
- repo: https://github.com/PyCQA/flake8
@@ -63,13 +63,13 @@ repos:
6363
types: [file]
6464
files: \.(pyi)$
6565
additional_dependencies: [flake8-pyi]
66-
args: [--config, java-api-stubs/tox.ini]
66+
args: [--config, stubs/tox.ini]
6767
- repo: https://github.com/PyCQA/pydocstyle
6868
rev: 6.3.0
6969
hooks:
7070
- id: pydocstyle
71-
files: ^java-api/src/
72-
args: [--config, java-api/tox.ini]
71+
files: ^src/
72+
args: [--config, tox.ini]
7373
- repo: https://github.com/commitizen-tools/commitizen
7474
rev: v4.10.0
7575
hooks:
@@ -82,6 +82,5 @@ repos:
8282
name: pylint
8383
entry: pylint
8484
language: system
85-
files: ^java-api/src/
85+
files: ^src/
8686
types: [python]
87-
args: [--rcfile, java-api/.pylintrc]
File renamed without changes.
File renamed without changes.

README.md

Lines changed: 110 additions & 8 deletions

0 commit comments

Comments
 (0)