Skip to content

Commit

Permalink
setup files
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Apr 1, 2022
1 parent 1b41c7d commit 1499c59
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.gitattributes export-ignore
.gitignore export-ignore
.idea export-ignore
QgisModelBakerLibrary.zip export-ignore
*.sh export-ignore
*/__pycache__ export-ignore
tests export-ignore
QgisModelBakerLibrary/metadata.txt eol=lf
36 changes: 36 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@

repos:
# Fix end of files
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
args:
- '--fix=lf'

# Remove unused imports/variables
- repo: https://github.com/myint/autoflake
rev: v1.4
hooks:
- id: autoflake
args:
- "--in-place"
- "--remove-all-unused-imports"
- "--remove-unused-variable"

# Sort imports
- repo: https://github.com/pycqa/isort
rev: "5.7.0"
hooks:
- id: isort
args:
- --profile
- black

# Black formatting
- repo: https://github.com/psf/black
rev: 21.7b0
hooks:
- id: black
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
psycopg2>=2.7.4
pytest
pyodbc
future
transifex-client

0 comments on commit 1499c59

Please sign in to comment.