Skip to content

Instantly share code, notes, and snippets.

View mxaviersmp's full-sized avatar

Matheus Xavier Sampaio mxaviersmp

View GitHub Profile
@mxaviersmp
mxaviersmp / Dockerfile
Created October 5, 2022 14:43
devcontainer python dockerfile
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.238.0/containers/python-3/.devcontainer/base.Dockerfile
# [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
ARG VARIANT="3.10-bullseye"
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
ARG NODE_VERSION="none"
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
@mxaviersmp
mxaviersmp / mytheme.omp.json
Created October 4, 2022 17:38
Oh My Posh jandedobbeleer theme with python environment.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#c386f1",
"foreground": "#ffffff",
"leading_diamond": "\ue0b6",
@mxaviersmp
mxaviersmp / .flake8
Last active October 1, 2021 23:25
python pre-commit hooks.
[flake8]
ignore = E203, E266, W402, W503, F401, F841
max-line-length = 89
max-complexity = 15
select = B,C,E,F,W,T4,B9
format = %(path)s(%(row)d,%(col)d): %(code)s %(text)s: https://lintlyci.github.io/Flake8Rules/rules/%(code)s.html