Skip to content

Commit

Permalink
fix running make develop and restore pre-commit tool (faust-strea…
Browse files Browse the repository at this point in the history
…ming#145)

* rename default.txt requirements to requirements.txt in Makefile

* fix docs.txt and dist.txt requirements files

* add pre-commit support with flake8 back

Co-authored-by: William Barnhart <williambbarnhart@gmail.com>
  • Loading branch information
taybin and wbarnha authored Aug 31, 2022
1 parent 284d400 commit 85534ec
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# See https://pre-commit.com/ for usage and config
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-case-conflict
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files

- repo: local
hooks:
# - id: black
# name: black
# stages: [commit]
# language: system
# entry: black
# types: [python]
# files: .*\.py$

- id: flake8
name: flake8
stages: [commit]
language: system
entry: flake8
types: [python]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ reqs: reqs-default reqs-test reqs-dist reqs-docs reqs-ci reqs-debug

.PHONY:
reqs-default:
$(PIP) install -U -r requirements/default.txt
$(PIP) install -U -r requirements/requirements.txt

.PHONY:
reqs-test:
Expand Down
1 change: 0 additions & 1 deletion requirements/dist.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
-r flakes.txt
asyncio-ipython-magic
bumpversion>=0.5.1
packaging
Expand Down
1 change: 0 additions & 1 deletion requirements/docs.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
-r docs-plugins.txt
sphinx>=2.1,<3.0
1 change: 1 addition & 0 deletions requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ flake8-bugbear
flake8-comprehensions
hypothesis>=3.31
freezegun>=0.3.11
pre-commit
pytest-aiofiles>=0.2.0
pytest-aiohttp>=0.3.0
pytest-asyncio
Expand Down

0 comments on commit 85534ec

Please sign in to comment.