Release/0.9 (#141)
* add flake8 and prettier to pre-commit-config * add setup.cfg * add workers=True to seed_everything() * update lightning badge logo * bump package versions * update README.md * add __init__.py files * add more logger configs parameters * add default Dockerfile * change .env.template to .env.example * move inference example to readme * remove img_dataset.py * simplify names of wandb callbacks * remove wandb test marker * format files with prettier
This commit is contained in:
1 parent
023d4bdecc
commit
70ab061f75
49 files changed
+473
-415
No files matched your search
+22
-22
@@ -1,40 +1,40 @@
|
||||
default_language_version:
|
||||
python: python3.8
|
||||
python: python3.8
|
||||
|
||||
repos:
|
||||
|
||||
# Pre-commit hooks
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v3.2.0
|
||||
rev: v3.4.0
|
||||
hooks:
|
||||
# list of supported hooks: https://pre-commit.com/hooks.html
|
||||
- id: trailing-whitespace
|
||||
- id: debug-statements
|
||||
- id: detect-private-key
|
||||
- id: end-of-file-fixer
|
||||
- id: check-yaml
|
||||
- id: check-added-large-files
|
||||
- id: debug-statements
|
||||
- id: detect-private-key
|
||||
|
||||
# Black (code formatting)
|
||||
# python code formatting
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 20.8b1
|
||||
hooks:
|
||||
- id: black
|
||||
args: [
|
||||
--line-length, "99",
|
||||
# --exclude, src/train.py,
|
||||
]
|
||||
args: [--line-length, "99"]
|
||||
|
||||
# Isort (import sorting)
|
||||
# python import sorting
|
||||
- repo: https://github.com/PyCQA/isort
|
||||
rev: 5.7.0
|
||||
rev: 5.8.0
|
||||
hooks:
|
||||
- id: isort
|
||||
# profiles: https://pycqa.github.io/isort/docs/configuration/profiles/
|
||||
# other flags: https://pycqa.github.io/isort/docs/configuration/options/
|
||||
args: [
|
||||
--profile, black,
|
||||
--skip, src/train.py,
|
||||
--skip, run.py,
|
||||
--filter-files,
|
||||
]
|
||||
# files: "src/.*"
|
||||
|
||||
# yaml formatting
|
||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||
rev: v2.3.0
|
||||
hooks:
|
||||
- id: prettier
|
||||
types: [yaml]
|
||||
|
||||
# python code analysis
|
||||
- repo: https://github.com/PyCQA/flake8
|
||||
rev: 3.9.2
|
||||
hooks:
|
||||
- id: flake8
|
||||
Reference in new issue
Block a user