Skip to content

Commit

Permalink
Merge pull request #1 from ironcladgeek/reqs
Browse files Browse the repository at this point in the history
Setup dev requirements and tools
  • Loading branch information
ironcladgeek authored Mar 15, 2023
2 parents 4492ad7 + f7c396f commit 98e5772
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[flake8]
ignore = E203, E266, E501, W503, F403, F401
max-line-length = 79
max-complexity = 18
select = B,C,E,F,W,T4,B9

29 changes: 29 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
args: ["--maxkb=5120"]
- id: no-commit-to-branch
args: [--branch, main]
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
exclude: ^notebooks/
- repo: https://github.com/timothycrosley/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/econchick/interrogate
rev: 1.5.0
hooks:
- id: interrogate
exclude: ^notebooks/|^tests/
args: [-v, -i, --fail-under=80]

36 changes: 36 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[tool.black]
line-length = 79
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
)/
'''

[tool.interrogate]
ignore-init-method = true
ignore-init-module = false
ignore-magic = false
ignore-semiprivate = false
ignore-private = false
ignore-property-decorators = false
ignore-module = true
ignore-nested-functions = false
ignore-nested-classes = true
ignore-setters = false
fail-under = 95
exclude = ["setup.py", "docs", "build"]
ignore-regex = ["^get$", "^mock_.*", ".*BaseClass.*"]
verbose = 0
quiet = false
whitelist-regex = []
color = true
generate-badge = "."
badge-format = "svg"
36 changes: 36 additions & 0 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Dev tools -----------------------------------
flake8==6.0.0
isort==5.12.0
black==23.1.0
pre-commit==3.1.1
interrogate==1.5.0
tox==4.4.7
pytest==7.2.2

# Base ----------------------------------------
matplotlib>=3.2.2
numpy==1.22.4
opencv-python==4.7.0.72
Pillow>=7.1.2
PyYAML>=5.3.1
requests>=2.23.0
scipy==1.10.1
torch==1.13.1
torchvision==0.14.1
tqdm>=4.64.0
python-dotenv==0.19.2
ultralytics==8.0.53

# Plotting ------------------------------------
pandas==1.4.4
seaborn>=0.11.0

# Export --------------------------------------
onnx==1.13.1 # ONNX export
onnxsim==0.4.17 # ONNX simplifier

# Extras --------------------------------------
psutil # system utilization
thop>=0.1.1 # FLOPs computation
ipython # interactive notebook
pycocotools>=2.0.6 # COCO mAP

0 comments on commit 98e5772

Please sign in to comment.