Skip to content

Instantly share code, notes, and snippets.

View kirill-shtrykov's full-sized avatar

Kirill Shtrykov kirill-shtrykov

View GitHub Profile
@kirill-shtrykov
kirill-shtrykov / .pre-commit-config.yaml
Created November 1, 2022 12:42
My default Pre commit config for Python projects
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.8.2
hooks:
@kirill-shtrykov
kirill-shtrykov / .gitignore
Last active March 5, 2024 16:18
My default gitignore file for Python projects
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
# This is my variation of Pylint configuration
# Like one from Google but with two changes:
# - Max line length is 120 characters, not 80
# - Indent string is 4 spaces, not two
# This Pylint rcfile contains a best-effort configuration to uphold the
# best-practices and style described in the Google Python style guide:
# https://google.github.io/styleguide/pyguide.html
#
# Its canonical open-source location is:
" URL: http://vim.wikia.com/wiki/Example_vimrc
" Authors: http://vim.wikia.com/wiki/Vim_on_Freenode
" Description: A minimal, but feature rich, example .vimrc. If you are a
" newbie, basing your first .vimrc on this file is a good choice.
" If you're a more advanced user, building your own .vimrc based
" on this file is still a good idea.
"------------------------------------------------------------
" Features {{{1
"
@kirill-shtrykov
kirill-shtrykov / Dockerfile
Created October 3, 2018 12:08
Golang example Dockerfile
# Собираем в одном контейнере
FROM golang as builder
# Копируем исходники
ADD . /go/src/application/
# Топаем туда и ставим либы и прочее
RUN cd /go/src/application/ && go get .
# Собираем и ставим
RUN go install application
# Создаем окончательный контейнер с приложением