Browse Source

Updated pre-commit hooks.

master
Franco Masotti 9 months ago
parent
commit
3583e4f7a1
Signed by: frnmst
GPG Key ID: 24116ED85666780A
  1. 10
      .allowed_licenses.yml
  2. 20
      .pre-commit-config.yaml
  3. 7
      MANIFEST.in

10
.allowed_licenses.yml

@ -0,0 +1,10 @@
allowed licenses: []
files to check:
- Pipfile
- setup.py
language: python
include:
- https://codeberg.org/frnmst/licheck/raw/branch/master/examples/python_gpl_compatible.yml

20
.pre-commit-config.yaml

@ -21,29 +21,41 @@ repos:
args: ['--style', '{based_on_style: pep8; indent_width: 4}']
- repo: https://github.com/pycqa/flake8
rev: '3.9.2' # Use the sha / tag you want to point at
rev: '4.0.1' # Use the sha / tag you want to point at
hooks:
- id: flake8
args: ['--ignore=E501,W503,W504,F401']
additional_dependencies: [flake8-docstrings]
- repo: https://github.com/PyCQA/bandit
rev: '1.7.0' # Use the sha / tag you want to point at
rev: '1.7.1' # Use the sha / tag you want to point at
hooks:
- id: bandit
args: ['--skip', 'B404,B506,B410,B603,B604', '--level', 'LOW']
- repo: https://github.com/twu/skjold
rev: 'v0.2.1'
rev: 'v0.4.1'
hooks:
- id: skjold
args: ['-s', 'gemnasium', '-s', 'pyup']
- repo: https://github.com/pycqa/isort
rev: 5.5.2
rev: 5.10.1
hooks:
- id: isort
- repo: https://codeberg.org/frnmst/licheck
rev: 0.0.3
hooks:
- id: licheck
args: ['--configuration-file', '.allowed_licenses.yml']
- repo: https://github.com/mgedmin/check-manifest
rev: "0.47"
hooks:
- id: check-manifest
args: ['--ignore','docs/*,docs/assets/*,Pipfile,Makefile,fpyutils/tests/*,packages/aur/*']
- repo: local
hooks:
- id: unit-tests

7
MANIFEST.in

@ -1 +1,6 @@
include LICENSE.txt
global-include LICENSE.txt
global-include README.rst
global-include CONTRIBUTING.rst
exclude *.yaml
exclude *.yml
recursive-exclude assets *

Loading…
Cancel
Save