Skip to content

Commit 7352212

Browse files
authored
Initial commit
0 parents  commit 7352212

14 files changed

Lines changed: 320 additions & 0 deletions

File tree

‎.devcontainer/Dockerfile‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.233.0/containers/python-3/.devcontainer/base.Dockerfile
2+
3+
# [Choice] Python version (use -bullseye variants on local arm64/Apple Silicon): 3, 3.10, 3.9, 3.8, 3.7, 3.6, 3-bullseye, 3.10-bullseye, 3.9-bullseye, 3.8-bullseye, 3.7-bullseye, 3.6-bullseye, 3-buster, 3.10-buster, 3.9-buster, 3.8-buster, 3.7-buster, 3.6-buster
4+
ARG VARIANT="3.10"
5+
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}
6+
7+
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
8+
ARG NODE_VERSION="none"
9+
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
10+
11+
# [Optional] If your pip requirements rarely change, uncomment this section to add them to the image.
12+
# COPY requirements.txt /tmp/pip-tmp/
13+
# RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \
14+
# && rm -rf /tmp/pip-tmp
15+
16+
# [Optional] Uncomment this section to install additional OS packages.
17+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
18+
# && apt-get -y install --no-install-recommends <your-package-list-here>
19+
20+
# [Optional] Uncomment this line to install global node packages.
21+
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1

‎.devcontainer/devcontainer.json‎

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"name": "Python 3",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
"context": "..",
6+
"args": {
7+
"VARIANT": "3.10", // Set Python version here
8+
"NODE_VERSION": "lts/*"
9+
}
10+
},
11+
"customizations": {
12+
"codespaces": {
13+
"openFiles": [
14+
"README.md"
15+
]
16+
},
17+
"vscode": {
18+
// Set *default* container specific settings.json values on container create.
19+
"settings": {
20+
"terminal.integrated.shell.linux": "/bin/bash",
21+
"python.defaultInterpreterPath": "/usr/local/bin/python",
22+
"python.linting.enabled": true,
23+
"python.linting.pylintEnabled": true,
24+
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8",
25+
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
26+
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf",
27+
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
28+
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
29+
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
30+
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle",
31+
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
32+
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint",
33+
"python.linting.pylintArgs": [
34+
"--disable=C0111"
35+
]
36+
},
37+
// Add the IDs of extensions you want installed when the container is created.
38+
"extensions": [
39+
"GitHub.github-vscode-theme",
40+
"ms-python.python",
41+
"ms-python.vscode-pylance"
42+
// Additional Extensions Here
43+
]
44+
}
45+
},
46+
"remoteUser": "vscode",
47+
// Update welcome text and set terminal prompt to '$ '
48+
"onCreateCommand": "echo PS1='\"$ \"' >> ~/.bashrc",
49+
// Pull all branches
50+
"postAttachCommand": "git pull --all",
51+
"postCreateCommand": "sh .devcontainer/startup.sh"
52+
}

‎.devcontainer/startup.sh‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
if [ -f requirements.txt ]; then
2+
pip install --user -r requirements.txt
3+
fi

‎.github/CODEOWNERS‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Codeowners for these exercise files:
2+
# * (asterisk) denotes "all files and folders"
3+
# Example: * @producer @instructor

‎.github/ISSUE_TEMPLATE.md‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!--
2+
BEFORE POSTING YOUR ISSUE:
3+
- These comments won't show up when you submit the issue.
4+
- Please use the sections below to provide information about the issue.
5+
- Be specific: Add as much detail as possible.
6+
-->
7+
8+
## Issue Overview
9+
<!-- A brief overview of the issue --->
10+
11+
## Describe your environment
12+
<!-- Provide details about your environment: what editor, browser, and other software you are using and any other specifics to your setup -->
13+
14+
## Steps to Reproduce
15+
<!-- Provide an unambiguous set of steps to reproduce this bug. Include code to reproduce, if relevant. Include a live link if available. -->
16+
1.
17+
2.
18+
3.
19+
4.
20+
21+
## Expected Behavior
22+
<!-- What behavior did you expect? -->
23+
24+
## Current Behavior
25+
<!-- What happened instead of the expected behavior? Describe the difference. -->
26+
27+
## Possible Solution
28+
<!-- Optional: Do you have a fix or a suggestion on how to fix the issue? -->
29+
30+
## Screenshots / Video
31+
<!-- Optional: Add any screenshots or video of the issue if available. -->
32+
33+
## Related Issues
34+
<!-- List related issues -->

‎.github/PULL_REQUEST_TEMPLATE.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!-- This repository *does not* accept pull requests (PRs). All pull requests will be closed. See CONTRIBUTING.md for further details. -->

‎.github/workflows/main.yml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Copy To Branches
2+
on:
3+
workflow_dispatch:
4+
jobs:
5+
copy-to-branches:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
with:
10+
fetch-depth: 0
11+
- name: Copy To Branches Action
12+
uses: planetoftheweb/copy-to-branches@v1.2
13+
env:
14+
key: main

‎.gitignore‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
node_modules
3+
.tmp
4+
npm-debug.log

‎.vscode/settings.json‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"editor.bracketPairColorization.enabled": true,
3+
"editor.cursorBlinking": "solid",
4+
"editor.fontFamily": "ui-monospace, Menlo, Monaco, 'Cascadia Mono', 'Segoe UI Mono', 'Roboto Mono', 'Oxygen Mono', 'Ubuntu Monospace', 'Source Code Pro', 'Fira Mono', 'Droid Sans Mono', 'Courier New', monospace",
5+
"editor.fontLigatures": false,
6+
"editor.fontSize": 22,
7+
"editor.formatOnPaste": true,
8+
"editor.formatOnSave": true,
9+
"editor.lineNumbers": "on",
10+
"editor.matchBrackets": "always",
11+
"editor.minimap.enabled": false,
12+
"editor.smoothScrolling": true,
13+
"editor.tabSize": 2,
14+
"editor.useTabStops": true,
15+
"emmet.triggerExpansionOnTab": true,
16+
"explorer.openEditors.visible": 0,
17+
"files.autoSave": "afterDelay",
18+
"screencastMode.onlyKeyboardShortcuts": true,
19+
"terminal.integrated.fontSize": 18,
20+
"workbench.activityBar.visible": true,
21+
"workbench.colorTheme": "Visual Studio Dark",
22+
"workbench.fontAliasing": "antialiased",
23+
"workbench.statusBar.visible": true
24+
}

‎CONTRIBUTING.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
Contribution Agreement
3+
======================
4+
5+
This repository does not accept pull requests (PRs). All pull requests will be closed.
6+
7+
However, if any contributions (through pull requests, issues, feedback or otherwise) are provided, as a contributor, you represent that the code you submit is your original work or that of your employer (in which case you represent you have the right to bind your employer). By submitting code (or otherwise providing feedback), you (and, if applicable, your employer) are licensing the submitted code (and/or feedback) to LinkedIn and the open source community subject to the BSD 2-Clause license.

0 commit comments

Comments
 (0)