Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add pre-commit config to cli + lint hook #297

Merged
merged 3 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
repos:
- repo: local
hooks:
- id: lint
name: lint
description: "Lint and sort"
entry: make lint
pass_filenames: false
require_serial: true
language: system
1 change: 1 addition & 0 deletions tests/requirements.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pre-commit
pytest
pytest-cov
pytest-mock
Expand Down
27 changes: 22 additions & 5 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,31 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile tests/requirements.in
#
cfgv==3.4.0
# via pre-commit
coverage[toml]==7.3.1
# via pytest-cov
exceptiongroup==1.1.3
# via pytest
distlib==0.3.7
# via virtualenv
filelock==3.12.4
# via virtualenv
identify==2.5.30
# via pre-commit
iniconfig==2.0.0
# via pytest
nodeenv==1.8.0
# via pre-commit
packaging==23.2
# via pytest
platformdirs==3.11.0
# via virtualenv
pluggy==1.3.0
# via pytest
pre-commit==3.4.0
# via -r tests/requirements.in
pytest==7.4.2
# via
# -r tests/requirements.in
Expand All @@ -26,5 +38,10 @@ pytest-cov==4.1.0
# via -r tests/requirements.in
pytest-mock==3.11.1
# via -r tests/requirements.in
tomli==2.0.1
# via pytest
pyyaml==6.0.1
# via pre-commit
virtualenv==20.24.5
# via pre-commit

# The following packages are considered to be unsafe in a requirements file:
# setuptools