-
Notifications
You must be signed in to change notification settings - Fork 44.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1393 from 0xArty/feature/pre-commit-formatter
Feature/pre commit formatter
- Loading branch information
Showing
50 changed files
with
1,195 additions
and
613 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[flake8] | ||
max-line-length = 88 | ||
extend-ignore = E203 | ||
exclude = | ||
.tox, | ||
__pycache__, | ||
*.pyc, | ||
.env | ||
venv/* | ||
.venv/* | ||
reports/* | ||
dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[settings] | ||
profile = black | ||
multi_line_output = 3 | ||
include_trailing_comma = True | ||
force_grid_wrap = 0 | ||
use_parentheses = True | ||
ensure_newline_before_comments = True | ||
line_length = 88 | ||
skip = venv,env,node_modules,.env,.venv,dist | ||
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
repos: | ||
- repo: https://github.com/sourcery-ai/sourcery | ||
rev: v1.1.0 # Get the latest tag from https://github.com/sourcery-ai/sourcery/tags | ||
hooks: | ||
- id: sourcery | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v0.9.2 | ||
hooks: | ||
- id: check-added-large-files | ||
args: [ '--maxkb=500' ] | ||
- id: check-byte-order-marker | ||
- id: check-case-conflict | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: debug-statements | ||
|
||
- repo: local | ||
hooks: | ||
- id: isort | ||
name: isort-local | ||
entry: isort | ||
language: python | ||
types: [ python ] | ||
exclude: .+/(dist|.venv|venv|build)/.+ | ||
pass_filenames: true | ||
- id: black | ||
name: black-local | ||
entry: black | ||
language: python | ||
types: [ python ] | ||
exclude: .+/(dist|.venv|venv|build)/.+ | ||
pass_filenames: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# 🪄 This is your project's Sourcery configuration file. | ||
|
||
# You can use it to get Sourcery working in the way you want, such as | ||
# ignoring specific refactorings, skipping directories in your project, | ||
# or writing custom rules. | ||
|
||
# 📚 For a complete reference to this file, see the documentation at | ||
# https://docs.sourcery.ai/Configuration/Project-Settings/ | ||
|
||
# This file was auto-generated by Sourcery on 2023-02-25 at 21:07. | ||
|
||
version: '1' # The schema version of this config file | ||
|
||
ignore: # A list of paths or files which Sourcery will ignore. | ||
- .git | ||
- venv | ||
- .venv | ||
- build | ||
- dist | ||
- env | ||
- .env | ||
- .tox | ||
|
||
rule_settings: | ||
enable: | ||
- default | ||
- gpsg | ||
disable: [] # A list of rule IDs Sourcery will never suggest. | ||
rule_types: | ||
- refactoring | ||
- suggestion | ||
- comment | ||
python_version: '3.9' # A string specifying the lowest Python version your project supports. Sourcery will not suggest refactorings requiring a higher Python version. | ||
|
||
# rules: # A list of custom rules Sourcery will include in its analysis. | ||
# - id: no-print-statements | ||
# description: Do not use print statements in the test directory. | ||
# pattern: print(...) | ||
# language: python | ||
# replacement: | ||
# condition: | ||
# explanation: | ||
# paths: | ||
# include: | ||
# - test | ||
# exclude: | ||
# - conftest.py | ||
# tests: [] | ||
# tags: [] | ||
|
||
# rule_tags: {} # Additional rule tags. | ||
|
||
# metrics: | ||
# quality_threshold: 25.0 | ||
|
||
# github: | ||
# labels: [] | ||
# ignore_labels: | ||
# - sourcery-ignore | ||
# request_review: author | ||
# sourcery_branch: sourcery/{base_branch} | ||
|
||
# clone_detection: | ||
# min_lines: 3 | ||
# min_duplicates: 2 | ||
# identical_clones_only: false | ||
|
||
# proxy: | ||
# url: | ||
# ssl_certs_file: | ||
# no_ssl_verify: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.