Skip to content

Commit

Permalink
Add pre-commit to dev dependencies
Browse files Browse the repository at this point in the history
- pre-commit is added with pipenv to the
dev-requirements
- added also to the dev optional
dependencies of pyproject.toml
  • Loading branch information
KAUTH committed Oct 8, 2022
1 parent 8f5b790 commit ad510da
Show file tree
Hide file tree
Showing 7 changed files with 516 additions and 311 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ t.py
cover/
build/
docs/_build
onwca.egg-info/
ownca.egg-info/
*.pyc
*.swp
*.egg
Expand All @@ -31,7 +31,7 @@ t2.py
dist
/.mypy_cache/
htmlcov/
ownca.egg-info/
Ownca.egg-info/
.DS_Store
CA_test*
ICA_test*
3 changes: 2 additions & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ verify_ssl = true
pytest = "*"
coverage = "==5.1"
tox = "*"
flake8 = "*"
flake8 = "==3.9.2"
codecov = "*"
sphinx = "*"
sphinx-rtd-theme = "*"
twine = "*"
mypy = "*"
isort = "*"
black = "==21.12b0"
pre-commit = "*"

[packages]
cryptography = "<35.0.0,>=3.4.6"
Expand Down
718 changes: 453 additions & 265 deletions Pipfile.lock

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,8 @@ LDFLAGS=-L$(brew --prefix libffi)/lib CFLAGS=-I$(brew --prefix libffi)/include p
Installing & enabling pre-commit
---------------------

To automatically run checks before you commit your changes you should install and run **pre-commit**:
To automatically run checks before you commit your changes you should install the git hook scripts with **pre-commit**:
```shell
pip install pre-commit
pre-commit install
pre-commit autoupdate
```
92 changes: 54 additions & 38 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,58 +1,74 @@
#
# These requirements were autogenerated by pipenv
# To regenerate from the project's Pipfile, run:
#
# pipenv lock --requirements --dev
#

# Note: in pipenv 2020.x, "--dev" changed to emit both default and development
# requirements. To emit only development requirements, pass "--dev-only".

-i https://pypi.org/simple
alabaster==0.7.12
attrs==21.2.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
babel==2.9.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
backports.entry-points-selectable==1.1.0; python_version >= '2.7'
certifi==2021.5.30
cffi==1.14.6
charset-normalizer==2.0.6; python_version >= '3'
attrs==22.1.0; python_version >= '3.5'
babel==2.10.3; python_version >= '3.6'
black==21.12b0
bleach==5.0.1; python_version >= '3.7'
certifi==2022.6.15; python_version >= '3.6'
cffi==1.15.1
cfgv==3.3.1; python_full_version >= '3.6.1'
charset-normalizer==2.1.1; python_version >= '3.6'
click==8.1.3; python_version >= '3.7'
codecov==2.1.12
commonmark==0.9.1
coverage==5.1
cryptography==3.4.8
distlib==0.3.3
distlib==0.3.5
docutils==0.17.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
filelock==3.0.12
filelock==3.8.0; python_version >= '3.7'
flake8==3.9.2
idna==3.2; python_version >= '3'
imagesize==1.2.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
identify==2.5.3; python_version >= '3.7'
idna==3.3; python_version >= '3.5'
imagesize==1.4.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
importlib-metadata==4.12.0; python_version >= '3.7'
iniconfig==1.1.1
jinja2==3.0.1; python_version >= '3.6'
markupsafe==2.0.1; python_version >= '3.6'
mccabe==0.6.1
packaging==21.0; python_version >= '3.6'
platformdirs==2.3.0; python_version >= '3.6'
isort==5.10.1
jeepney==0.8.0; sys_platform == 'linux'
jinja2==3.1.2; python_version >= '3.7'
keyring==23.8.2; python_version >= '3.7'
markupsafe==2.1.1; python_version >= '3.7'
mccabe==0.6.1; python_version >= '3.6'
mypy==0.971
mypy-extensions==0.4.3
nodeenv==1.7.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6'
packaging==21.3; python_version >= '3.6'
pathspec==0.9.0
pkginfo==1.8.3; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
platformdirs==2.5.2; python_version >= '3.7'
pluggy==1.0.0; python_version >= '3.6'
py==1.10.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
pre-commit==2.20.0
py==1.11.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
pycodestyle==2.7.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
pycparser==2.20; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
pycparser==2.21; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
pyflakes==2.3.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
pygments==2.10.0; python_version >= '3.5'
pyparsing==2.4.7; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'
pytest==6.2.5
pytz==2021.1
requests==2.26.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5'
pygments==2.13.0; python_version >= '3.6'
pyparsing==3.0.9; python_full_version >= '3.6.8'
pytest==7.1.2
pytz==2022.2.1
pyyaml==6.0; python_version >= '3.6'
readme-renderer==37.0; python_version >= '3.7'
requests==2.28.1; python_version >= '3.7' and python_version < '4.0'
requests-toolbelt==0.9.1
rfc3986==2.0.0; python_version >= '3.7'
rich==12.5.1; python_version < '4.0' and python_full_version >= '3.6.3'
secretstorage==3.3.3; sys_platform == 'linux'
setuptools==65.3.0; python_version >= '3.7'
six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
snowballstemmer==2.1.0
snowballstemmer==2.2.0
sphinx==5.1.1
sphinx-rtd-theme==1.0.0
sphinx==4.2.0
sphinxcontrib-applehelp==1.0.2; python_version >= '3.5'
sphinxcontrib-devhelp==1.0.2; python_version >= '3.5'
sphinxcontrib-htmlhelp==2.0.0; python_version >= '3.6'
sphinxcontrib-jsmath==1.0.1; python_version >= '3.5'
sphinxcontrib-qthelp==1.0.3; python_version >= '3.5'
sphinxcontrib-serializinghtml==1.1.5; python_version >= '3.5'
toml==0.10.2; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'
tox==3.24.4
urllib3==1.26.7; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'
virtualenv==20.8.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
voluptuous==0.12.2
tomli==1.2.3; python_version >= '3.6'
tox==3.25.1
twine==4.0.1
typing-extensions==4.3.0; python_version >= '3.7'
urllib3==1.26.12; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5' and python_version < '4.0'
virtualenv==20.16.3; python_version >= '3.6'
webencodings==0.5.1
zipp==3.8.1; python_version >= '3.7'
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ dev = [
"mypy",
"isort",
"black==21.12b0",
"pre-commit",
]

[project.urls]
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#

-i https://pypi.org/simple
cffi==1.14.6
cffi==1.15.1
cryptography==3.4.8
pycparser==2.20; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
voluptuous==0.12.2
pycparser==2.21; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
voluptuous==0.13.1

0 comments on commit ad510da

Please sign in to comment.