Git repository pointers and configurations to build Python packages from source
https://pypi.franco.net.eu.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
1.8 KiB
68 lines
1.8 KiB
# Do not deal with submodules. |
|
files: '(README.md|configuration.yaml|Makefile|scripts/.*)' |
|
|
|
repos: |
|
- repo: https://github.com/pre-commit/pre-commit-hooks |
|
rev: v4.3.0 |
|
hooks: |
|
- id: trailing-whitespace |
|
- id: end-of-file-fixer |
|
- id: check-yaml |
|
- id: check-added-large-files |
|
- id: destroyed-symlinks |
|
- id: detect-private-key |
|
- id: check-ast |
|
- id: check-case-conflict |
|
- id: debug-statements |
|
|
|
- repo: https://codeberg.org/frnmst/md-toc |
|
rev: '8.1.4' # or a specific git tag from md-toc |
|
hooks: |
|
- id: md-toc |
|
args: [-p, 'github', '-l6'] # CLI options |
|
|
|
- repo: https://codeberg.org/frnmst/licheck |
|
rev: 1.0.0 |
|
hooks: |
|
- id: licheck |
|
args: ['--configuration-file', '.allowed_licenses.yml'] |
|
|
|
- repo: https://github.com/pycqa/isort |
|
rev: 5.10.1 |
|
hooks: |
|
- id: isort |
|
|
|
- repo: https://github.com/PyCQA/bandit |
|
rev: '1.7.4' # Use the sha / tag you want to point at |
|
hooks: |
|
- id: bandit |
|
args: ['--skip', 'B404,B506,B410,B603', '--level', 'LOW'] |
|
|
|
- repo: https://github.com/twu/skjold |
|
rev: 'v0.4.1' |
|
hooks: |
|
- id: skjold |
|
args: ['-s', 'gemnasium', '-s', 'pyup'] |
|
|
|
- repo: https://github.com/pycqa/flake8 |
|
rev: '4.0.1' # Use the sha / tag you want to point at |
|
hooks: |
|
- id: flake8 |
|
args: ['--ignore=E501,W503,W504,F401,D401'] |
|
additional_dependencies: [flake8-docstrings] |
|
|
|
- repo: https://github.com/pre-commit/mirrors-yapf |
|
rev: 'v0.32.0' # Use the sha / tag you want to point at |
|
hooks: |
|
- id: yapf |
|
args: ['--style', '{based_on_style: pep8; indent_width: 4}'] |
|
|
|
- repo: local |
|
hooks: |
|
- id: stats |
|
name: stats |
|
language: system |
|
entry: make stats |
|
verbose: true |
|
always_run: true |
|
pass_filenames: false
|
|
|