Skip to content

Commit 0d6c601

Browse files
committed
Initialised repository with 'repo_helper'.
0 parents  commit 0d6c601

Some content is hidden

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

44 files changed

+2687
-0
lines changed

.bumpversion.cfg

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[bumpversion]
2+
current_version = 0.0.0
3+
commit = True
4+
tag = True
5+
6+
[bumpversion:file:README.rst]
7+
8+
[bumpversion:file:doc-source/index.rst]
9+
10+
[bumpversion:file:pyms_lc_esi/__init__.py]
11+
search = : str = "{current_version}"
12+
replace = : str = "{new_version}"
13+
14+
[bumpversion:file:pyproject.toml]
15+
search = version = "{current_version}"
16+
replace = version = "{new_version}"
17+
18+
[bumpversion:file:repo_helper.yml]

.dependabot/config.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# This file is managed by 'repo_helper'. Don't edit it directly.
2+
---
3+
version: 1
4+
update_configs:
5+
- package_manager: python
6+
directory: /
7+
update_schedule: weekly
8+
default_reviewers:
9+
- domdfcoding

.github/ISSUE_TEMPLATE/bug_report.md

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
labels: bug
5+
assignees: domdfcoding
6+
7+
---
8+
9+
<!-- Have you searched for similar issues? Before submitting this issue, please check the open issues and add a note before logging a new issue.
10+
11+
PLEASE USE THE TEMPLATE BELOW TO PROVIDE INFORMATION ABOUT THE ISSUE.
12+
THE ISSUE WILL BE CLOSED IF INSUFFICIENT INFORMATION IS PROVIDED.
13+
-->
14+
15+
## Description
16+
<!--Provide a brief description of the issue-->
17+
18+
19+
## Steps to Reproduce
20+
<!--Please add a series of steps to reproduce the issue.
21+
22+
If possible, please include a small, self-contained reproduction.
23+
-->
24+
25+
1.
26+
2.
27+
3.
28+
29+
## Actual result:
30+
<!--Please add screenshots if needed and include the Python traceback if present-->
31+
32+
33+
## Expected result:
34+
35+
36+
## Reproduces how often:
37+
<!--[Easily reproduced/Intermittent issue/No steps to reproduce]-->
38+
39+
40+
## Version
41+
42+
* Operating System:
43+
* Python:
44+
* pyms-lc-esi:
45+
46+
## Installation source
47+
<!-- e.g. GitHub repository, GitHub Releases, PyPI/pip, Anaconda/conda -->
48+
49+
50+
## Other Additional Information:
51+
<!--Any additional information, related issues, extra QA steps, configuration or data that might be necessary to reproduce the issue-->
+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
labels: "enhancement"
5+
assignees: domdfcoding
6+
7+
---
8+
9+
<!-- Have you searched for similar issues? Someone may already be working on the feature you are suggesting. Before submitting this issue, please check the open issues and add a note before logging a new issue.
10+
-->
11+
12+
13+
## Description
14+
<!--Provide a clear and concise description of what the problem is and the improvement you are suggesting-->
15+
16+
<!--Please add screenshots if needed-->
17+
18+
19+
## Version
20+
21+
* Operating System:
22+
* Python:
23+
* pyms-lc-esi:
24+
25+
26+
## Other Additional Information:
27+
<!--Any additional information, related issues, etc.-->

.github/auto_assign.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# This file is managed by 'repo_helper'. Don't edit it directly.
2+
---
3+
addReviewers: true
4+
addAssignees: true
5+
reviewers:
6+
- domdfcoding
7+
numberOfReviewers: 0
8+
9+
# more settings at https://github.com/marketplace/actions/auto-assign-action

.github/dependabot.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file is managed by 'repo_helper'. Don't edit it directly.
2+
---
3+
version: 2
4+
updates:
5+
- package-ecosystem: pip
6+
directory: /
7+
schedule:
8+
interval: weekly
9+
reviewers:
10+
- domdfcoding

.github/milestones.py

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env python
2+
3+
# stdlib
4+
import os
5+
import sys
6+
7+
# 3rd party
8+
from github3 import GitHub
9+
from github3.repos import Repository
10+
from packaging.version import InvalidVersion, Version
11+
12+
latest_tag = os.environ["GITHUB_REF_NAME"]
13+
14+
try:
15+
current_version = Version(latest_tag)
16+
except InvalidVersion:
17+
sys.exit()
18+
19+
gh: GitHub = GitHub(token=os.environ["GITHUB_TOKEN"])
20+
repo: Repository = gh.repository(*os.environ["GITHUB_REPOSITORY"].split('/', 1))
21+
22+
for milestone in repo.milestones(state="open"):
23+
try:
24+
milestone_version = Version(milestone.title)
25+
except InvalidVersion:
26+
continue
27+
if milestone_version == current_version:
28+
sys.exit(not milestone.update(state="closed"))

.github/stale.yml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# This file is managed by 'repo_helper'. Don't edit it directly.
2+
# Configuration for probot-stale - https://github.com/probot/stale
3+
---
4+
5+
# Number of days of inactivity before an Issue or Pull Request becomes stale
6+
daysUntilStale: 180
7+
8+
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
9+
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
10+
daysUntilClose: false
11+
12+
# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
13+
onlyLabels: []
14+
15+
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
16+
exemptLabels:
17+
- pinned
18+
- security
19+
- "[Status] Maybe Later"
20+
21+
# Set to true to ignore issues in a project (defaults to false)
22+
exemptProjects: false
23+
24+
# Set to true to ignore issues in a milestone (defaults to false)
25+
exemptMilestones: false
26+
27+
# Set to true to ignore issues with an assignee (defaults to false)
28+
exemptAssignees: false
29+
30+
# Label to use when marking as stale
31+
staleLabel: stale
32+
33+
# Comment to post when marking as stale. Set to `false` to disable
34+
markComment: false
35+
# This issue has been automatically marked as stale because it has not had
36+
# recent activity. It will be closed if no further activity occurs. Thank you
37+
# for your contributions.
38+
39+
# Comment to post when removing the stale label.
40+
# unmarkComment: >
41+
# Your comment here.
42+
43+
# Comment to post when closing a stale Issue or Pull Request.
44+
# closeComment: >
45+
# Your comment here.
46+
47+
# Limit the number of actions per hour, from 1-30. Default is 30
48+
limitPerRun: 30
49+
50+
# Limit to only `issues` or `pulls`
51+
# only: issues
52+
53+
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
54+
# pulls:
55+
# daysUntilStale: 30
56+
# markComment: >
57+
# This pull request has been automatically marked as stale because it has not had
58+
# recent activity. It will be closed if no further activity occurs. Thank you
59+
# for your contributions.
60+
61+
# issues:
62+
# exemptLabels:
63+
# - confirmed
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This file is managed by 'repo_helper'. Don't edit it directly.
2+
---
3+
name: "Docs Check"
4+
on:
5+
push:
6+
branches-ignore:
7+
- 'repo-helper-update'
8+
- 'pre-commit-ci-update-config'
9+
- 'imgbot'
10+
pull_request:
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
docs:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout 🛎️
20+
uses: "actions/checkout@v3"
21+
22+
- name: Install and Build 🔧
23+
uses: sphinx-toolbox/[email protected]
24+
25+
with:
26+
pre-build-command: python -m pip install tox
27+
docs-folder: "doc-source/"
28+
build-command: "tox -e docs -- "

.github/workflows/flake8.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# This file is managed by 'repo_helper'. Don't edit it directly.
2+
---
3+
name: Flake8
4+
5+
on:
6+
push:
7+
branches-ignore:
8+
- 'repo-helper-update'
9+
- 'pre-commit-ci-update-config'
10+
- 'imgbot'
11+
pull_request:
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
Run:
18+
name: "Flake8"
19+
runs-on: "ubuntu-20.04"
20+
21+
steps:
22+
- name: Checkout 🛎️
23+
uses: "actions/checkout@v3"
24+
25+
- name: Check for changed files
26+
uses: dorny/paths-filter@v2
27+
id: changes
28+
with:
29+
list-files: "json"
30+
filters: |
31+
code:
32+
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
33+
34+
- name: Setup Python 🐍
35+
if: steps.changes.outputs.code == 'true'
36+
uses: "actions/setup-python@v4"
37+
with:
38+
python-version: "3.8"
39+
40+
- name: Install dependencies 🔧
41+
if: steps.changes.outputs.code == 'true'
42+
run: |
43+
python -VV
44+
python -m site
45+
python -m pip install --upgrade pip setuptools wheel
46+
python -m pip install tox~=3.0
47+
48+
- name: "Run Flake8"
49+
if: steps.changes.outputs.code == 'true'
50+
run: "python -m tox -e lint -s false -- --format github"

.github/workflows/mypy.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# This file is managed by 'repo_helper'. Don't edit it directly.
2+
---
3+
name: mypy
4+
5+
on:
6+
push:
7+
branches-ignore:
8+
- 'repo-helper-update'
9+
- 'pre-commit-ci-update-config'
10+
- 'imgbot'
11+
pull_request:
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
Run:
18+
name: "mypy / ${{ matrix.os }}"
19+
runs-on: ${{ matrix.os }}
20+
21+
strategy:
22+
matrix:
23+
os: ['ubuntu-20.04', 'windows-2019']
24+
fail-fast: false
25+
26+
steps:
27+
- name: Checkout 🛎️
28+
uses: "actions/checkout@v3"
29+
30+
- name: Check for changed files
31+
uses: dorny/paths-filter@v2
32+
id: changes
33+
with:
34+
list-files: "json"
35+
filters: |
36+
code:
37+
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
38+
39+
- name: Setup Python 🐍
40+
if: steps.changes.outputs.code == 'true'
41+
uses: "actions/setup-python@v4"
42+
with:
43+
python-version: "3.8"
44+
45+
- name: Install dependencies 🔧
46+
run: |
47+
python -VV
48+
python -m site
49+
python -m pip install --upgrade pip setuptools wheel
50+
python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
51+
52+
- name: "Run mypy"
53+
if: steps.changes.outputs.code == 'true'
54+
run: "python -m tox -e mypy -s false"

.github/workflows/octocheese.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# This file is managed by 'repo_helper'. Don't edit it directly.
2+
---
3+
4+
name: "GitHub Releases"
5+
on:
6+
schedule:
7+
- cron: 0 12 * * *
8+
9+
jobs:
10+
Run:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: domdfcoding/octocheese@master
14+
with:
15+
pypi_name: "pyms-lc-esi"
16+
env:
17+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
18+
if: startsWith(github.ref, 'refs/tags/') != true

0 commit comments

Comments
 (0)