forked from sebascuri/rllib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
69 lines (68 loc) · 1.97 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
exclude: |
^(_scratch/)|
# You don't usually want a bot to modify your legal texts
(LICENSE\.*|COPYING\.*)|
# Maybe reactivate this when all README files include prettier ignore tags?
^README\.md$|
# Library files can have extraneous formatting (even minimized)
/static/(src/)?lib/|
# Files and folders generated by bots, to avoid loops
^setup/|/static/description/index\.html$|
# Repos using Sphinx to generate docs don't need prettying
^docs/_templates/.*\.html$|
default_language_version:
python: python3.7
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-docstring-first
- id: check-yaml
- id: check-json
- id: end-of-file-fixer
- id: trailing-whitespace
args: ["--markdown-linebreak-ext=md"]
- id: name-tests-test
args: ["--django"]
name: Tests should start with test_
- repo: https://github.com/psf/black
rev: 19.3b0
hooks:
- id: black
language_version: python3.7
- repo: https://github.com/asottile/seed-isort-config
rev: v1.9.3
hooks:
- id: seed-isort-config
- repo: https://github.com/timothycrosley/isort
rev: 4.3.21
hooks:
- id: isort
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9
hooks:
- id: flake8
args: ["--config=setup.cfg", "--ignore=E203,W503"]
exclude: /__init__\.py$
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.750
hooks:
- id: mypy
args: [--no-implicit-optional, --ignore-missing-imports]
- repo: https://github.com/PyCQA/pydocstyle
rev: 4.0.0
hooks:
- id: pydocstyle
args: ["--convention=numpy", "--add-ignore=D104"]
exclude: (test_).*\.py
#- repo: local
# hooks:
# - id: pytest
# name: pytest
# entry: pytest rllib
# pass_filenames: false
# language: system
# types: [python]
## stages: [push]
default_stages: [commit, push]
fail_fast: false