Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
# Paths Codacy does not analyse; shared by all plugins.
exclude_paths:
- "tests/**"
- "**/test/**"
- "docs/**"
- "scripts/**"
- "translations/**"
- "**/translations/**"
- "archive/**"
- "3rdPartySoftware/**"
- "**/vendor/**"
- "**/*.min.js"
- "**/*.min.css"
25 changes: 15 additions & 10 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# Coding style shared by all plugins, matching OctoPrint itself (its
# .editorconfig and .prettierrc.yaml). See https://editorconfig.org
root = true

[*]
end_of_line = lf
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 90

[**.py]
indent_style = space
indent_size = 4
# Python stays at 88 (black/isort default) until the linters move to 90 too;
# isort reads this value.
[*.py]
max_line_length = 88

[**.js]
indent_style = space
indent_size = 4
[*.{yml,yaml,json,less,md}]
indent_size = 2

[*.{bat,cmd,ps1}]
end_of_line = crlf
34 changes: 34 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Store text files with LF in the repository and check them out with LF on all
# platforms, matching .editorconfig (end_of_line = lf).
* text=auto eol=lf

# Windows-only scripts keep CRLF to stay runnable on Windows.
*.bat text eol=crlf
*.cmd text eol=crlf
*.ps1 text eol=crlf

# Binary files: never normalise, never diff as text.
*.mo binary
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.webp binary
*.zip binary
*.gz binary
*.db binary
*.woff binary
*.woff2 binary
*.ttf binary
*.otf binary
*.eot binary
*.pdf binary
*.xlsx binary

# Minified third-party bundles stay byte-identical and out of language stats.
*.min.js -text linguist-vendored
*.min.css -text linguist-vendored

# Jinja2 templates count as HTML in GitHub's language statistics.
*.jinja2 linguist-language=HTML
71 changes: 71 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Bug report
description: Something is not working as expected
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to report a bug. Please fill in the fields below —
version numbers and logs are what make a bug reproducible.

- type: textarea
id: what-happened
attributes:
label: What happened?
description: What went wrong, and what did you expect instead?
validations:
required: true

- type: textarea
id: steps
attributes:
label: Steps to reproduce
placeholder: |
1. Disconnect the printer …
2. …
3. See error
validations:
required: true

- type: input
id: plugin-version
attributes:
label: Plugin version
description: See *Settings* → *Plugin Manager*.
validations:
required: true

- type: input
id: octoprint-version
attributes:
label: OctoPrint version
validations:
required: true

- type: dropdown
id: connection
attributes:
label: Printer connection
options:
- Serial / USB
- Moonraker connector
- Bambu connector
- Other connector
- Not sure
validations:
required: true

- type: textarea
id: logs
attributes:
label: Log output
description: |
Relevant part of `octoprint.log` (logger `octoprint.plugins.autoconnectplus`), and the
browser console for UI problems. This is inserted as code, so no backticks needed.
render: shell

- type: textarea
id: context
attributes:
label: Anything else?
description: Printer model, connector plugin and its version, screenshots, …
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: true
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Feature request
description: Suggest a new feature or an improvement
labels: ["enhancement"]
body:
- type: textarea
id: problem
attributes:
label: What problem would this solve?
description: What are you trying to do that is hard or impossible today?
validations:
required: true

- type: textarea
id: solution
attributes:
label: How should it work?
description: Your idea of the feature, from a user's point of view.
validations:
required: true

- type: textarea
id: alternatives
attributes:
label: Alternatives you considered
description: Workarounds you already tried, or other ways this could be solved.

- type: textarea
id: context
attributes:
label: Anything else?
description: Mockups, links to other plugins or hardware, related issues, …
23 changes: 23 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## What does this change?

<!-- A short description of the change. If a linked issue already covers it, just link it. -->

Closes #

## Type of change

- [ ] Bug fix
- [ ] New feature
- [ ] Documentation
- [ ] Refactoring / maintenance
- [ ] CI

## How was it tested?

<!-- Which OctoPrint version, which printer connection, and what you checked. -->

## Checklist

- [ ] Existing settings keep working, or the change explains what users need to do
- [ ] README updated, if the change affects it
- [ ] Translations updated with `pybabel` (extract, update, compile), if UI strings changed
81 changes: 0 additions & 81 deletions .github/workflows/ci.yaml

This file was deleted.

Loading