Skip to content

Commit 928b4ca

Browse files
committed
Merge remote-tracking branch 'r1remote/main' into chore/add-jb-tap
2 parents 7d33eb8 + 7883fbc commit 928b4ca

24 files changed

+6118
-2
lines changed

.env.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
TAP_JIRA_AUTH_FLOW = ''
2+
TAP_JIRA_AUTH_USERNAME = ''
3+
TAP_JIRA_AUTH_PASSWORD = ''
4+
TAP_JIRA_DOMAIN = ''

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.github/dependabot.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: pip
9+
directory: "/"
10+
schedule:
11+
interval: "daily"
12+
commit-message:
13+
prefix: "chore(deps): "
14+
prefix-development: "chore(deps-dev): "
15+
- package-ecosystem: pip
16+
directory: "/.github/workflows"
17+
schedule:
18+
interval: daily
19+
commit-message:
20+
prefix: "ci: "
21+
- package-ecosystem: github-actions
22+
directory: "/"
23+
schedule:
24+
interval: "weekly"
25+
commit-message:
26+
prefix: "ci: "

.github/workflows/ci_workflow.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
### A CI workflow template that runs linting and python testing
2+
### TODO: Modify as needed or as desired.
3+
4+
name: Test tap-jira
5+
6+
on: [push]
7+
8+
jobs:
9+
linting:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
# Only lint using the primary version used for dev
14+
python-version: ["3.9"]
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Install pipx and Poetry
22+
run: |
23+
pip install pipx poetry
24+
- name: Run lint command from tox.ini
25+
run: |
26+
pipx run tox -e lint
27+
28+
pytest:
29+
runs-on: ubuntu-latest
30+
env:
31+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
32+
strategy:
33+
matrix:
34+
python-version: ["3.9"]
35+
steps:
36+
- uses: actions/checkout@v4
37+
- name: Set up Python ${{ matrix.python-version }}
38+
uses: actions/setup-python@v4
39+
with:
40+
python-version: ${{ matrix.python-version }}
41+
- name: Install Poetry
42+
run: |
43+
pip install poetry
44+
- name: Install dependencies
45+
run: |
46+
poetry install
47+
- name: Test with pytest
48+
id: test_pytest
49+
continue-on-error: false
50+
env:
51+
TAP_JIRA_AUTH_FLOW: ${{ secrets.flow }}
52+
TAP_JIRA_AUTH_USERNAME: ${{ secrets.username }}
53+
TAP_JIRA_AUTH_PASSWORD: ${{ secrets.password }}
54+
TAP_JIRA_DOMAIN: ${{ secrets.domain }}
55+
run: |
56+
poetry run pytest --capture=no

.github/workflows/constraints.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
nox==2023.4.22
2+
nox-poetry==1.0.3
3+
pip==23.2.1
4+
poetry==1.6.1
5+
poetry-dynamic-versioning==1.0.1

.github/workflows/release.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Publish with Dynamic Versioning
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
permissions:
8+
contents: write
9+
id-token: write
10+
11+
jobs:
12+
publish:
13+
name: Publish to PyPI
14+
runs-on: ubuntu-latest
15+
environment: publishing
16+
env:
17+
PIP_CONSTRAINT: .github/workflows/constraints.txt
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v4.6.0
26+
with:
27+
python-version: "3.10"
28+
29+
- name: Upgrade pip
30+
run: |
31+
pip install pip
32+
pip --version
33+
- name: Install Poetry
34+
run: |
35+
pipx install poetry
36+
pipx inject poetry poetry-dynamic-versioning[plugin]
37+
poetry --version
38+
poetry self show plugins
39+
- name: Build
40+
run: poetry build
41+
42+
- name: Upload wheel to release
43+
uses: svenstaro/upload-release-action@v2
44+
with:
45+
file: dist/*.whl
46+
tag: ${{ github.ref }}
47+
overwrite: true
48+
file_glob: true
49+
50+
- name: Publish
51+
uses: pypa/gh-action-pypi-publish@v1.8.10

.gitignore

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
share/python-wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
MANIFEST
28+
29+
# PyInstaller
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32+
*.manifest
33+
*.spec
34+
35+
# Installer logs
36+
pip-log.txt
37+
pip-delete-this-directory.txt
38+
39+
# Unit test / coverage reports
40+
htmlcov/
41+
.tox/
42+
.nox/
43+
.coverage
44+
.coverage.*
45+
.cache
46+
nosetests.xml
47+
coverage.xml
48+
*.cover
49+
*.py,cover
50+
.hypothesis/
51+
.pytest_cache/
52+
cover/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
.pybuilder/
76+
target/
77+
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
81+
# IPython
82+
profile_default/
83+
ipython_config.py
84+
85+
# pyenv
86+
# For a library or package, you might want to ignore these files since the code is
87+
# intended to run in multiple environments; otherwise, check them in:
88+
# .python-version
89+
90+
# pipenv
91+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94+
# install all needed dependencies.
95+
#Pipfile.lock
96+
97+
# poetry
98+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99+
# This is especially recommended for binary packages to ensure reproducibility, and is more
100+
# commonly ignored for libraries.
101+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102+
#poetry.lock
103+
104+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
105+
__pypackages__/
106+
107+
# Celery stuff
108+
celerybeat-schedule
109+
celerybeat.pid
110+
111+
# SageMath parsed files
112+
*.sage.py
113+
114+
# Environments
115+
.env
116+
.venv
117+
.env/
118+
venv/
119+
ENV/
120+
env.bak/
121+
venv.bak/
122+
123+
# Spyder project settings
124+
.spyderproject
125+
.spyproject
126+
127+
# Rope project settings
128+
.ropeproject
129+
130+
# mkdocs documentation
131+
/site
132+
133+
# mypy
134+
.mypy_cache/
135+
.dmypy.json
136+
dmypy.json
137+
138+
# Pyre type checker
139+
.pyre/
140+
141+
# pytype static type analyzer
142+
.pytype/
143+
144+
# Cython debug symbols
145+
cython_debug/
146+
147+
# PyCharm
148+
# JetBrains specific template is maintainted in a separate JetBrains.gitignore that can
149+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
150+
# and can be added to the global gitignore or merged into this file. For a more nuclear
151+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
152+
#.idea/
153+
.DS_Store
154+
155+
.meltano
156+
.idea

.pre-commit-config.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
ci:
2+
autofix_prs: true
3+
autoupdate_schedule: weekly
4+
autoupdate_commit_msg: 'chore: pre-commit autoupdate'
5+
6+
repos:
7+
- repo: https://github.com/pre-commit/pre-commit-hooks
8+
rev: v4.4.0
9+
hooks:
10+
- id: check-json
11+
- id: check-toml
12+
- id: check-yaml
13+
- id: end-of-file-fixer
14+
- id: trailing-whitespace
15+
16+
- repo: https://github.com/charliermarsh/ruff-pre-commit
17+
rev: v0.0.263
18+
hooks:
19+
- id: ruff
20+
args: [--fix, --exit-non-zero-on-fix]
21+
22+
- repo: https://github.com/psf/black
23+
rev: 23.3.0
24+
hooks:
25+
- id: black
26+
27+
- repo: https://github.com/pre-commit/mirrors-mypy
28+
rev: v1.2.0
29+
hooks:
30+
- id: mypy
31+
additional_dependencies:
32+
- types-requests

.secrets/.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# IMPORTANT! This folder is hidden from git - if you need to store config files or other secrets,
2+
# make sure those are never staged for commit into your git repo. You can store them here or another
3+
# secure location.
4+
#
5+
# Note: This may be redundant with the global .gitignore for, and is provided
6+
# for redundancy. If the `.secrets` folder is not needed, you may delete it
7+
# from the project.
8+
9+
*
10+
!.gitignore

0 commit comments

Comments
 (0)