Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
ashioyajotham committed Jan 11, 2025
1 parent 5c37136 commit abec73f
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 6 deletions.
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:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-toml
- id: debug-statements

- repo: https://github.com/psf/black
rev: 23.12.1
hooks:
- id: black
language_version: python3.11
args: [--line-length=88]

- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black"]

- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies: [flake8-docstrings]
args: [--max-line-length=88, --extend-ignore=E203]

- repo: https://github.com/PyCQA/bandit
rev: 1.7.6
hooks:
- id: bandit
args: ["-c", "pyproject.toml"]
5 changes: 0 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ skips = ["test_*.py"]
[tool.bandit.hardcoded_bind_all_interfaces]
skips = ["start_bot.py"]

[tool.flake8]
max-line-length = 88
extend-ignore = E203, W503
exclude = .git,__pycache__,venv,tests, dist

[coverage:run]
branch = True
source = fingpt_trader
Expand Down
13 changes: 12 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
[flake8]
max-line-length = 88
extend-ignore = E203
extend-ignore = E203, W503
exclude =
.git,
__pycache__,
build,
dist,
venv
per-file-ignores =
__init__.py:F401
max-complexity = 10
statistics = True
count = True
python_version = 3.9

0 comments on commit abec73f

Please sign in to comment.