Skip to content

Commit b870b0c

Browse files
authored
Mobile backend (#2)
* Add current versions for mobile-backend * Update pre-commit hooks * nuke setup.cfg * oops that was a bad idea * Add hash-testing hook * Make testing hook exit 1 * ok it works why does it get pissed off still hahahha * Change entries on hooks
1 parent 2f37dd0 commit b870b0c

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.egg-info
2+
3+
.idea

.pre-commit-hooks.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
require_serial: true
77
- id: black
88
name: black
9-
entry: black -l100
9+
entry: black
1010
language: python
1111
language_version: python3
1212
types: [python]
1313
require_serial: true
1414
- id: isort
1515
name: isort
16-
entry: isort -y
16+
entry: isort
1717
language: python
1818
language_version: python3
1919
types: [python]

setup.cfg

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
[flake8]
22
max-line-length = 100
3-
exclude = .venv
3+
exclude = .venv, migrations
44
inline-quotes = double
5+
ignore = E203, W503
56

67
[isort]
7-
known_first_party = custom_hooks
8+
default_section = THIRDPARTY
9+
known_first_party = pennmobile, dining, gsr_booking, user, laundry
810
line_length = 100
911
lines_after_imports = 2
1012
multi_line_output = 3

setup.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
packages=find_packages(exclude=["tests"]),
88
entry_points={"console_scripts": ["detect-private-key=custom_hooks.detect_private_key:main"]},
99
install_requires=[
10-
"isort==4.3.21",
11-
"black==19.3b0",
12-
"flake8==3.7.9",
13-
"flake8-isort==2.7.0",
14-
"flake8-quotes==2.1.1",
10+
"isort==5.13.2",
11+
"black==19.10b0",
12+
"flake8==6.1.0",
13+
"flake8-isort==6.1.0",
14+
"flake8-quotes==3.3.2",
15+
"click==8.0.2"
1516
],
1617
)

0 commit comments

Comments
 (0)