Skip to content

Commit 74d3de5

Browse files
committed
Added info on use as pre-commit hook (correctly)
1 parent 527c36d commit 74d3de5

5 files changed

Lines changed: 27 additions & 33 deletions

File tree

README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ See `pre-commit <https://github.com/pre-commit/pre-commit>`_ for instructions
158158

159159
Sample `.pre-commit-config.yaml`:
160160

161-
```yaml
162-
- repo: https://gitlab.com/pycqa/flake8
163-
rev: 3.8.1
164-
hooks:
165-
- id: flake8
166-
additional_dependencies: [flake8-strftime==0.1.1]
167-
```
161+
.. code-block:: yaml
162+
163+
- repo: https://gitlab.com/pycqa/flake8
164+
rev: 3.8.1
165+
hooks:
166+
- id: flake8
167+
additional_dependencies: [flake8-strftime==0.1.1]

doc-source/index.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,13 @@ See `pre-commit <https://github.com/pre-commit/pre-commit>`_ for instructions
151151

152152
Sample `.pre-commit-config.yaml`:
153153

154-
```yaml
155-
- repo: https://gitlab.com/pycqa/flake8
156-
rev: 3.8.1
157-
hooks:
158-
- id: flake8
159-
additional_dependencies: [flake8-strftime==0.1.1]
160-
```
154+
.. code-block:: yaml
155+
156+
- repo: https://gitlab.com/pycqa/flake8
157+
rev: 3.8.1
158+
hooks:
159+
- id: flake8
160+
additional_dependencies: [flake8-strftime==0.1.1]
161161
162162
163163
.. toctree::

repo_helper.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ classifiers:
3838
- "Topic :: Utilities"
3939

4040
exclude_files:
41-
- setup
41+
- setup_cfg

setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,7 @@ exclude =
4848
tests
4949
tests.*
5050
doc-source
51+
52+
[options.entry_points]
53+
flake8.extension =
54+
STRFTIME=flake8_strftime:Plugin

setup.py

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,24 @@
11
#!/usr/bin/env python
2-
# This file is managed by `git_helper`. Don't edit it directly
2+
# This file is managed by `repo_helper`. Don't edit it directly
33
"""Setup script"""
44

5+
# stdlib
6+
import sys
7+
58
# 3rd party
6-
from setuptools import find_packages, setup
9+
from setuptools import setup
10+
11+
sys.path.append(".")
712

813
# this package
914
from __pkginfo__ import * # pylint: disable=wildcard-import
1015

1116

1217

1318
setup(
14-
author=author,
15-
author_email=author_email,
16-
classifiers=classifiers,
17-
description=short_desc,
18-
# entry_points=entry_points,
1919
extras_require=extras_require,
20-
include_package_data=True,
2120
install_requires=install_requires,
22-
license=__license__,
23-
long_description=long_description,
24-
name=pypi_name,
25-
packages=find_packages(exclude=("tests", "doc-source")),
26-
project_urls=project_urls,
27-
py_modules=py_modules,
28-
python_requires=">=3.6",
29-
url=web,
21+
py_modules=[],
3022
version=__version__,
31-
keywords=keywords,
32-
zip_safe=False,
3323

3424
)

0 commit comments

Comments
 (0)