Skip to content

Instantly share code, notes, and snippets.

View dharmagetic's full-sized avatar
🔱

Eugene Bokach dharmagetic

🔱
  • Giststapo
View GitHub Profile
@dharmagetic
dharmagetic / .pre-commit-config.yaml
Created May 10, 2023 14:19
.pre-commit-config.yaml for Python projects
# Check for updating hooks to last versions https://pre-commit.com/index.html#updating-hooks-automatically
fail_fast: true
repos:
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
exclude: ^.*\b(migrations)\b.*$
- repo: https://github.com/pycqa/isort
rev: 5.10.1
@dharmagetic
dharmagetic / .editorconfig
Created May 6, 2023 23:05
.editorconfig for Python editors
; This file is for unifying the coding style for different editors and IDEs.
; More information at http://EditorConfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
@dharmagetic
dharmagetic / .pre-commit-config.yaml
Last active May 10, 2023 14:15
.pre-commit-config.yaml for Python[Django] projects
# Check for updating hooks to last versions https://pre-commit.com/index.html#updating-hooks-automatically
fail_fast: true
repos:
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
exclude: ^.*\b(migrations)\b.*$
- repo: https://github.com/pycqa/isort
rev: 5.10.1
@dharmagetic
dharmagetic / .gitignore
Last active May 12, 2023 19:43
.gitignore file for Python & Django projects
# .gitgnore file for Python & Django projects
# This is a fork of https://www.toptal.com/developers/gitignore/api/python
### Usage ###
# Add to yours' project
# git rm -r --cached .
# git add .
# git commit -am "Removed ignored files"
# Python