File: .pre-commit-config.yaml

package info (click to toggle)
dials-data 2.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 628 kB
  • sloc: python: 589; makefile: 13
file content (17 lines) | stat: -rw-r--r-- 488 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
repos:

# Uncompromising code formatting.
- repo: https://github.com/ambv/black
  rev: stable
  hooks:
  - id: black
    args: [--safe, --quiet]

# Syntax check for python and yaml. Code linting.
- repo: https://github.com/pre-commit/pre-commit-hooks
  rev: v2.0.0
  hooks:
  - id: check-ast
  - id: check-yaml
  - id: flake8
    args: ['--max-line-length=88', '--select=E711,E712,E713,E714,E721,E722,E901,F401,F402,F403,F632,F811,F812,F821,F822,F841,F901,W191,W602,W603,W604,W605,W606']