Add sqlalchemy to pre-commit dependencies
This commit is contained in:
parent
59d57d3466
commit
b4b8dde4fb
@ -18,6 +18,7 @@ repos:
|
|||||||
- types-requests==2.28.11.15
|
- types-requests==2.28.11.15
|
||||||
- types-tabulate==0.9.0.1
|
- types-tabulate==0.9.0.1
|
||||||
- types-python-dateutil==2.8.19.9
|
- types-python-dateutil==2.8.19.9
|
||||||
|
- SQLAlchemy==2.0.4
|
||||||
# stages: [push]
|
# stages: [push]
|
||||||
|
|
||||||
- repo: https://github.com/pycqa/isort
|
- repo: https://github.com/pycqa/isort
|
||||||
|
@ -8,12 +8,17 @@ import yaml
|
|||||||
|
|
||||||
pre_commit_file = Path('.pre-commit-config.yaml')
|
pre_commit_file = Path('.pre-commit-config.yaml')
|
||||||
require_dev = Path('requirements-dev.txt')
|
require_dev = Path('requirements-dev.txt')
|
||||||
|
require = Path('requirements.txt')
|
||||||
|
|
||||||
with require_dev.open('r') as rfile:
|
with require_dev.open('r') as rfile:
|
||||||
requirements = rfile.readlines()
|
requirements = rfile.readlines()
|
||||||
|
|
||||||
|
with require.open('r') as rfile:
|
||||||
|
requirements.extend(rfile.readlines())
|
||||||
|
|
||||||
# Extract types only
|
# Extract types only
|
||||||
type_reqs = [r.strip('\n') for r in requirements if r.startswith('types-')]
|
type_reqs = [r.strip('\n') for r in requirements if r.startswith(
|
||||||
|
'types-') or r.startswith('SQLAlchemy')]
|
||||||
|
|
||||||
with pre_commit_file.open('r') as file:
|
with pre_commit_file.open('r') as file:
|
||||||
f = yaml.load(file, Loader=yaml.FullLoader)
|
f = yaml.load(file, Loader=yaml.FullLoader)
|
||||||
|
Loading…
Reference in New Issue
Block a user