Skip to content

Commit

Permalink
!feat: version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
billsioros committed Jul 8, 2023
1 parent 1f9b1bb commit b0aef99
Show file tree
Hide file tree
Showing 89 changed files with 4,861 additions and 2,618 deletions.
47 changes: 47 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
FROM mcr.microsoft.com/devcontainers/python:1-3.9-bullseye

# Set up zsh
RUN apt-get update && \
apt-get install -y zsh curl fonts-powerline fonts-firacode \
&& chsh -s /usr/bin/zsh

# Install Meslo Nerd Font
RUN mkdir -p /usr/share/fonts/truetype/meslo \
&& curl -sSL -o /usr/share/fonts/truetype/meslo/MesloLGS_NF-Regular.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf \
&& curl -sSL -o /usr/share/fonts/truetype/meslo/MesloLGS_NF-Bold.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf \
&& curl -sSL -o /usr/share/fonts/truetype/meslo/MesloLGS_NF-Italic.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf \
&& curl -sSL -o /usr/share/fonts/truetype/meslo/MesloLGS_NF-BoldItalic.ttf https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf \
&& fc-cache -f -v

# Set up Oh-my-Zsh
ENV ZSH="${HOME}/.oh-my-zsh"
RUN rm -rf ${ZSH}
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
RUN sed -i 's/ZSH_THEME=.*/ZSH_THEME="powerlevel10k\/powerlevel10k"/' ${HOME}/.zshrc

# Install Powerlevel10k theme
RUN git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH/themes/powerlevel10k

# Install zsh-autosuggestions
RUN git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions.git $ZSH/plugins/zsh-autosuggestions

# Install zsh-completions
RUN git clone --depth=1 https://github.com/zsh-users/zsh-completions.git $ZSH/plugins/zsh-completions

# Install zsh-syntax-highlighting
RUN git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH/plugins/zsh-syntax-highlighting

# Install additional plugins
RUN sed -i 's/^plugins=(\(.*\))/plugins=(git poetry docker zsh-autosuggestions zsh-completions zsh-syntax-highlighting)/' ${HOME}/.zshrc

# Set up Poetry
ENV PATH="${HOME}/.poetry/bin:${PATH}"
ENV POETRY_HOME=${HOME}/.poetry
ENV POETRY_NO_INTERACTION=1
ENV POETRY_VIRTUALENVS_CREATE=0
ENV POETRY_VERSION=1.2.2
RUN curl -sSL https://install.python-poetry.org | python -
RUN mkdir -p ${HOME}/.cache/pypoetry/virtualenvs
RUN touch ${HOME}/.cache/pypoetry/virtualenvs/envs.toml

RUN mkdir /workspaces
83 changes: 83 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"build": {
"dockerfile": "./Dockerfile"
},
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.mypy-type-checker",
"ms-python.black-formatter",
"ms-python.isort",
"charliermarsh.ruff",
"njpwerner.autodocstring",
"teabyii.ayu",
"PKief.material-icon-theme",
"aaron-bond.better-comments",
"alefragnani.Bookmarks",
"streetsidesoftware.code-spell-checker",
"yzhang.markdown-all-in-one",
"davidanson.vscode-markdownlint",
"wayou.vscode-todo-highlight",
"editorconfig.editorconfig",
"christian-kohler.path-intellisense",
"eamodio.gitlens",
"bungcip.better-toml",
"redhat.vscode-yaml",
"almenon.arepl",
"ms-azuretools.vscode-docker"
],
"settings": {
"git.confirmForcePush": false,
"git.autofetch": true,
"git.allowForcePush": true,
"python.formatting.provider": "black",
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.terminal.activateEnvironment": false,
"python.languageServer": "Pylance",
"python.linting.enabled": true,
"python.linting.mypyEnabled": true,
"python.analysis.enabled": true,
"[python]": {
"editor.formatOnType": true,
"editor.defaultFormatter": "ms-python.black-formatter"
},
"files.autoSave": "afterDelay",
"files.trimTrailingWhitespace": true,
"files.trimFinalNewlines": true,
"terminal.integrated.fontSize": 17,
"terminal.integrated.defaultProfile.linux": "zsh",
"terminal.integrated.profiles.linux": {
"zsh": {
"path": "/usr/bin/zsh",
"icon": "terminal",
"env": {}
}
},
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.cursorStyle": "line",
"editor.cursorBlinking": "smooth",
"editor.fontSize": 17,
"editor.formatOnPaste": true,
"editor.fontFamily": "'Fira Code', 'Source Code Pro', Consolas, 'Courier New', monospace",
"editor.suggestSelection": "first",
"editor.fontLigatures": true,
"editor.guides.indentation": true
}
}
},
"features": {
"ghcr.io/devcontainers/features/github-cli": {},
"ghcr.io/devcontainers/features/docker-in-docker": {
"version": "latest",
"moby": true,
"dockerDashComposeVersion": "v1"
}
},
"postCreateCommand": "poetry install && poetry run pre-commit install --install-hooks",
"forwardPorts": [
8000
],
"remoteUser": "root"
}
35 changes: 35 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# http://editorconfig.org

root = true

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

[*.py]
max_line_length = 99

[*.json]
indent_size = 2

[*.yml]
indent_size = 2

[*.yaml]
indent_size = 2

[*.toml]
indent_size = 2

[*.md]
indent_size = unset

[*.txt]
indent_size = unset

[.all-contributorsrc]
indent_size = unset
4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This CODEOWNERS file is only to make sure that @billsioros is requested
# for a code review in case of a pull request.

* @billsioros
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: ['https://www.buymeacoffee.com/billsioros']
80 changes: 80 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: 🐞 Bug Report
description: Did you find a bug?
title: "🐞 "
labels: [":bug: bug"]
assignees:
- billsioros
body:
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen?
placeholder: Describe the problem!
validations:
required: true
- type: textarea
id: reproduction-steps
attributes:
label: How can we reproduce the bug?
description: Please provide the reproduction steps corresponding to the bug.
placeholder: Provide us with some python code!
value: |
from roughgan import roughgan
render: python
validations:
required: true
- type: textarea
id: stack-trace
attributes:
label: Relevant stack trace
description: Please provide us with the program's stack trace, if appropriate.
render: shell
- type: dropdown
id: operating-system
attributes:
label: Operating System (OS)
multiple: true
description: In what OS(s) does the problem occur?
options:
- macOS
- Windows
- Linux
validations:
required: true
- type: dropdown
id: python-version
attributes:
label: Python version
multiple: true
description: In what python version(s) does the problem occur?
options:
- 3.7
- 3.8
- 3.9
validations:
required: true
- type: checkboxes
id: duplicate-issue
attributes:
label: Is this a duplicate issue?
description: By submitting this issue, you confirm that you have made sure that this is not a duplicate issue
options:
- label: I confirm that this is not a duplicate issue
required: true
- type: checkboxes
id: latest-version
attributes:
label: Have you upgraded to the latest version?
description: By submitting this issue, you confirm that you have already upgraded to the latest version
options:
- label: I confirm that I have upgraded to the latest version
required: true
- type: checkboxes
id: code-of-conduct
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://billsioros.github.io/RoughGAN/latest/CODE_OF_CONDUCT/)
options:
- label: I agree to follow this project's Code of Conduct
required: true
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Q&A
url: https://github.com/billsioros/RoughGAN/discussions/categories/q-a
about: Please ask and answer questions here.
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 📄 Documentation
description: Suggest a change regarding this project's documentation
title: "📄 "
labels: [":memo: documentation"]
assignees:
- billsioros
body:
- type: textarea
id: change-description
attributes:
label: What should be changed in the documentation?
description: Describe what you would like to see documented!
placeholder: Please describe what should be added to, changed in or removed from the documentation, as well as the reasoning behind the proposed change.
validations:
required: true
- type: checkboxes
id: duplicate-issue
attributes:
label: Is this a duplicate issue?
description: By submitting this issue, you confirm that you have made sure that this is not a duplicate issue
options:
- label: I confirm that this is not a duplicate issue
required: true
- type: checkboxes
id: code-of-conduct
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://billsioros.github.io/RoughGAN/latest/CODE_OF_CONDUCT/)
options:
- label: I agree to follow this project's Code of Conduct
required: true
31 changes: 31 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 🎁 Feature Request
description: Suggest a feature or improvement
title: "🎁 "
labels: [":bulb: feature request"]
assignees:
- billsioros
body:
- type: textarea
id: change-description
attributes:
label: What would you like to be implemented?
description: Describe what you would like to see implemented!
placeholder: Please provide a concise description of the feature you want implemented, as well as the reasoning behind it.
validations:
required: true
- type: checkboxes
id: duplicate-issue
attributes:
label: Is this a duplicate issue?
description: By submitting this issue, you confirm that you have made sure that this is not a duplicate issue
options:
- label: I confirm that this is not a duplicate issue
required: true
- type: checkboxes
id: code-of-conduct
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://billsioros.github.io/RoughGAN/latest/CODE_OF_CONDUCT/)
options:
- label: I agree to follow this project's Code of Conduct
required: true
18 changes: 18 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Description

<!-- Please provide a concise description of your changes, as well as the reasoning behind them. -->

<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->

- [ ] I have updated the documentation accordingly.
- [ ] I have added tests to cover my changes.

---

## Related Issue

<!--- This project only accepts pull requests related to open issues -->
<!--- If suggesting a new feature or change, please discuss it in an issue first -->
<!--- If fixing a bug, there should be an issue describing it along with reproduction steps -->

Closes #issue-number-here.
12 changes: 12 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Security Policy

If you believe you have identified a security issue, **do not open a public issue**. To report a security issue, please contact [email protected].

Be sure to include as much detail as necessary in your report. As with
reporting normal issues, a minimal reproducible example will help the
maintainers address the issue faster. If you are willing, you may also
include a fix for the issue generated with `git format-patch`. You may
include a name and link, if you would like to be credited for the report.

After fixing the issue, we will make a security release along with an
announcement on [GitHub Discussions](https://github.com/billsioros/RoughGAN/discussions).
Loading

0 comments on commit b0aef99

Please sign in to comment.