Skip to content

Commit

Permalink
Merge pull request #277 from pivoshenko/maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
pivoshenko authored Jun 29, 2024
2 parents bdc5d69 + 52ba84e commit 2fc7392
Show file tree
Hide file tree
Showing 44 changed files with 1,588 additions and 2,171 deletions.
5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 120
Expand All @@ -18,3 +18,6 @@ indent_size = 2

[{*.toml,*.lock}]
indent_size = 2

[{*.py,*.pyi}]
indent_size = 4
6 changes: 6 additions & 0 deletions .github/.codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage:
status:
project:
default:
target: 95%
threshold: 1%
72 changes: 72 additions & 0 deletions .github/ISSUE_TEMPLATE/---bug-report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Bug Report
labels: ["type: bug"]
description: Create a report to help us improve

body:
- type: markdown
attributes:
value: |
Thank you for taking the time to file a complete bug report.
Before submitting your issue, please review [the contribution guidelines](https://github.com/pivoshenko/poetry-plugin-dotenv/blob/main/CONTRIBUTING.md).
Feel free to use markdown syntax in text areas.
- type: textarea
attributes:
label: Description
description: |
Please describe what happened, with as much pertinent information as you can.
If applicable, add screenshots to help explain your problem.
Also, ensure that the feature is not already done in the [latest](https://github.com/pivoshenko/poetry-plugin-release/releases/latest) release.
validations:
required: true

- type: textarea
attributes:
label: Workarounds
description: |
Is there a mitigation or workaround that allows users to avoid the issue today?
validations:
required: true

- type: input
attributes:
label: Operating System
description: |
What Operating System are you using?
placeholder: "Fedora 39"
validations:
required: true

- type: input
attributes:
label: poetry version
description: |
Please attach output from `poetry --version`
validations:
required: true

- type: input
attributes:
label: poetry-plugin-dotenv version
description: |
Please attach output from `poetry self show poetry-plugin-dotenv`
validations:
required: true

- type: textarea
attributes:
label: Example pyproject.toml
description: |
Please provide an example `pyproject.toml` demonstrating the issue.
render: TOML
validations:
required: false

- type: textarea
attributes:
label: Runtime logs
description: |
Please attach logs from the failing command using `poetry -vvv <command>`
render: bash session
validations:
required: true
41 changes: 41 additions & 0 deletions .github/ISSUE_TEMPLATE/---documentation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Documentation Issue
labels: ["type: documentation"]
description: Did you find errors, omissions, or anything unintelligible in the documentation?

body:
- type: markdown
attributes:
value: |
Thank you for taking the time to file a complete bug report.
Before submitting your issue, please review [the contribution guidelines](https://github.com/pivoshenko/poetry-plugin-dotenv/blob/main/CONTRIBUTING.md).
Feel free to use markdown syntax in text areas.
- type: dropdown
attributes:
label: Issue kind
description: |
What best describes the issue?
options:
- Improving documentation
- Missing documentation
- Error in existing documentation
- Unclear documentation
- Other concerns with documentation
validations:
required: true

- type: input
attributes:
label: Existing link
description: |
If the documentation in question exists, please provide a link to it.
validations:
required: true

- type: textarea
attributes:
label: Description
description: |
Please describe the feature, with as much pertinent information as you can.
validations:
required: true
57 changes: 57 additions & 0 deletions .github/ISSUE_TEMPLATE/---feature-request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Feature Request
labels: ["type: enhancement"]
description: Suggest an idea for this project

body:
- type: markdown
attributes:
value: |
Thank you for taking the time to file a complete feature request report.
Before submitting your issue, please review [the contribution guidelines](https://github.com/pivoshenko/poetry-plugin-dotenv/blob/main/CONTRIBUTING.md).
If the issue is trivial, why not submit a pull request instead?
Feel free to use markdown syntax in text areas.
- type: dropdown
attributes:
label: Feature kind
description: |
What best describes this feature?
options:
- Brand new capability
- Change in the current behaviour
- Other
validations:
required: true

- type: textarea
attributes:
label: Is your feature request related to a problem? Please describe it
description: |
A clear and concise description of what the problem is.
If applicable, add screenshots to help explain your problem.
validations:
required: false

- type: textarea
attributes:
label: Describe the feature
description: |
Please describe the proposed feature, with as much pertinent information as you can.
validations:
required: true

- type: textarea
attributes:
label: Impact
description: |
Please describe the motivation for this feature. Describe, as best you can, how this improves or impacts the users and why this is important.
validations:
required: true

- type: textarea
attributes:
label: Workarounds
description: |
Is there a mitigation, workaround, or addon that allows users to achieve the same functionality today?
validations:
required: false
45 changes: 0 additions & 45 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
blank_issues_enabled: false
contact_links:
- name: Discussions
url: https://github.com/pivoshenko/poetry-plugin-dotenv/discussions
about: |
Ask questions about using `poetry-plugin-dotenv`, features and roadmap, or get support and feedback for using the plugin.
30 changes: 0 additions & 30 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

**Resolves: #issue-number-here**

- [ ] Added **tests** for changed code.
- [ ] Updated **documentation** for changed code.
- [ ] Added **tests** for changed code
- [ ] Updated **documentation** for changed code
34 changes: 34 additions & 0 deletions .github/actions/detect-changes/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Detect Changed Files
description: Detect changes in files

outputs:
pyproject:
description: Whether there are changes in `poetry.lock / pyproject.toml`
value: ${{ steps.changes.outputs.pyproject }}

src:
description: Whether there are changes in `src`
value: ${{ steps.changes.outputs.src }}

tests:
description: Whether there are changes in `tests`
value: ${{ steps.changes.outputs.tests }}

runs:
using: composite
steps:
- name: Detect changes
id: detect-changes
uses: dorny/paths-filter@v3
with:
filters: |
pyproject: &pyproject
- 'poetry.lock'
- 'pyproject.toml'
src:
- *pyproject
- 'src/**/*.py'
tests:
- *pyproject
- 'src/**/*.py'
- 'tests/**'
39 changes: 39 additions & 0 deletions .github/actions/setup-environment/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Setup Environment
description: Setup environment with the specified Python and poetry version

inputs:
python-version:
description: Desired node-semver compatible Python version expression
default: default

poetry-version:
description: Desired node-semver compatible poetry version expression
default: latest

outputs:
python-path:
description: Path to the installed Python interpreter
value: ${{ steps.setup-python.outputs.python-path }}

python-version:
description: Version of the installed Python interpreter
value: ${{ steps.setup-python.outputs.python-version }}

runs:
using: composite
steps:
- name: Setup Python
id: setup-python
uses: actions/setup-python@v5
if: inputs.python-version != 'default'
with:
python-version: ${{ inputs.python-version }}
update-environment: false

- name: Install poetry
id: install-poetry
run: >
pipx install \
${{ inputs.python-version != 'default' && format('--python "{0}"', steps.setup-python.outputs.python-path) || '' }} \
${{ inputs.poetry-version == 'latest' && 'poetry' || format('poetry=={0}', inputs.poetry-version) }}
shell: bash
19 changes: 14 additions & 5 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
version: 2

updates:
- package-ecosystem: "github-actions"
directory: "/"
- package-ecosystem: github-actions
directory: /
schedule:
interval: "weekly"
interval: weekly
labels:
- "priority: low"
- "type: maintenance"
- "type: dependencies"

- package-ecosystem: pip
directory: "/"
directory: /
schedule:
interval: "weekly"
interval: weekly
labels:
- "priority: low"
- "type: maintenance"
- "type: dependencies"

Loading

0 comments on commit 2fc7392

Please sign in to comment.