-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
105 lines (105 loc) · 4.87 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
repos:
# - repo: https://github.com/asottile/pyupgrade
# rev: v3.2.2
# hooks:
# - id: pyupgrade
# args:
# - --py37-plus
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
args:
- --unsafe
- id: check-ast
- id: detect-private-key
- id: check-added-large-files
args: [ '--maxkb=2048' ]
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
args:
- --profile=black
- --skip-glob=wandb/**/*
- --thirdparty=wandb
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
args:
- --line-length=120
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.2.3
hooks:
- id: flake8
args:
- --ignore=E501 W503 E203
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.991
hooks:
- id: mypy
args:
- --no-strict-optional
- --ignore-missing-imports
- repo: https://github.com/python-poetry/poetry
rev: 1.3.1
hooks:
- id: poetry-export
name: poetry-export requirements.txt
args: ["--without-hashes", "--without-urls", "-o", "requirements/requirements.txt", "-E", "all"]
- id: poetry-export
name: poetry-export requirements-dev.txt
args: ["--without-hashes", "--without-urls", "-o", "requirements/requirements-dev.txt", "-E", "all", "--with", "dev"]
# torch
- id: poetry-export
name: poetry-export requirements-torch.txt
args: ["--without-hashes", "--without-urls", "-o", "requirements/requirements-torch.txt", "-E", "torch", "-E", "atari", "-E", "mujoco"]
- id: poetry-export
name: poetry-export requirements-torch-dev.txt
args: ["--without-hashes", "--without-urls", "-o", "requirements/requirements-torch-dev.txt", "-E", "torch", "-E", "atari", "-E", "mujoco", "--with", "dev"]
- id: poetry-export
name: poetry-export requirements-basic-torch.txt
args: ["--without-hashes", "--without-urls", "-o", "requirements/requirements-basic-torch.txt", "-E", "torch"]
- id: poetry-export
name: poetry-export requirements-basic-torch-dev.txt
args: ["--without-hashes", "--without-urls", "-o", "requirements/requirements-basic-torch-dev.txt", "-E", "torch", "--with", "dev"]
- id: poetry-export
name: poetry-export requirements-atari-torch.txt
args: ["--without-hashes", "--without-urls", "-o", "requirements/requirements-atari-torch.txt", "-E", "torch", "-E", "atari"]
- id: poetry-export
name: poetry-export requirements-atari-torch-dev.txt
args: ["--without-hashes", "--without-urls", "-o", "requirements/requirements-atari-torch-dev.txt", "-E", "torch", "-E", "atari", "--with", "dev"]
- id: poetry-export
name: poetry-export requirements-mujoco-torch.txt
args: ["--without-hashes", "--without-urls", "-o", "requirements/requirements-mujoco-torch.txt", "-E", "torch", "-E", "mujoco"]
- id: poetry-export
name: poetry-export requirements-mujoco-torch-dev.txt
args: ["--without-hashes", "--without-urls", "-o", "requirements/requirements-mujoco-torch-dev.txt", "-E", "torch", "-E", "mujoco", "--with", "dev"]
# tensorflow2
- id: poetry-export
name: poetry-export requirements-tf.txt
args: ["--without-hashes", "--without-urls", "-o", "requirements/requirements-tf.txt", "-E", "tf", "-E", "atari", "-E", "mujoco"]
- id: poetry-export
name: poetry-export requirements-tf-dev.txt
args: ["--without-hashes", "--without-urls", "-o", "requirements/requirements-tf-dev.txt", "-E", "tf", "-E", "atari", "-E", "mujoco", "--with", "dev"]
- id: poetry-export
name: poetry-export requirements-basic-tf.txt
args: ["--without-hashes", "--without-urls", "-o", "requirements/requirements-basic-tf.txt", "-E", "tf"]
- id: poetry-export
name: poetry-export requirements-basic-tf-dev.txt
args: ["--without-hashes", "--without-urls", "-o", "requirements/requirements-basic-tf-dev.txt", "-E", "tf", "--with", "dev"]
- id: poetry-export
name: poetry-export requirements-atari-tf.txt
args: ["--without-hashes", "--without-urls", "-o", "requirements/requirements-atari-tf.txt", "-E", "tf", "-E", "atari"]
- id: poetry-export
name: poetry-export requirements-atari-tf-dev.txt
args: ["--without-hashes", "--without-urls", "-o", "requirements/requirements-atari-tf-dev.txt", "-E", "tf", "-E", "atari", "--with", "dev"]
- id: poetry-export
name: poetry-export requirements-mujoco-tf.txt
args: ["--without-hashes", "--without-urls", "-o", "requirements/requirements-mujoco-tf.txt", "-E", "tf", "-E", "mujoco"]
- id: poetry-export
name: poetry-export requirements-mujoco-tf-dev.txt
args: ["--without-hashes", "--without-urls", "-o", "requirements/requirements-mujoco-tf-dev.txt", "-E", "tf", "-E", "mujoco", "--with", "dev"]