FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-patterns/lint.sh at master · dolfly/python-patterns · GitHub
dolfly
/
python-patterns
Public
forked from
faif/python-patterns
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
python-patterns
/
lint.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
38 lines (31 loc) · 1.15 KB
Breadcrumbs
python-patterns
/
lint.sh
Copy path
File metadata and controls
executable file
·
38 lines (31 loc) · 1.15 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!
/usr/bin/env bash
set
-euo pipefail
project_dir=
"
$(
cd
"
$(
dirname
"
${BASH_SOURCE[0]}
"
)
"
&&
pwd
)
"
venv_dir=
"
${project_dir}
/.venv
"
python_bin=
"
${PYTHON
:-
python3}
"
if
[[
!
-x
"
${venv_dir}
/bin/python
"
]]
;
then
"
${python_bin}
"
-m venv
"
${venv_dir}
"
"
${venv_dir}
/bin/python
"
-m pip install --upgrade pip
fi
venv_python=
"
${venv_dir}
/bin/python
"
venv_bin=
"
${venv_dir}
/bin
"
"
${venv_python}
"
-m pip install pipenv
PIPENV_IGNORE_VIRTUALENVS=1 \
PIPENV_VENV_IN_PROJECT=1 \
"
${venv_bin}
/pipenv
"
sync --dev
"
${venv_python}
"
-m pip install --no-build-isolation --no-deps -e
"
${project_dir}
"
source_dir=
"
${project_dir}
/patterns
"
tests_dir=
"
${project_dir}
/tests
"
"
${venv_bin}
/codespell
"
--quiet-level=2
"
${source_dir}
"
"
${tests_dir}
"
"
${project_dir}
/README.md
"
"
${venv_bin}
/flake8
"
\
"
${source_dir}
"
\
"
${tests_dir}
"
\
--max-line-length=120 \
--extend-ignore=E266,E731,W503 \
--count \
--show-source \
--statistics
"
${venv_bin}
/isort
"
--profile black --check-only
"
${source_dir}
"
"
${tests_dir}
"
"
${venv_bin}
/black
"
--check
"
${source_dir}
"
"
${tests_dir}
"
"
${venv_bin}
/mypy
"
"
${source_dir}
"
"
${venv_bin}
/pytest
"
"
${tests_dir}
"
"
${source_dir}
"
Back
|
FazBrowse Home
|
New Git URL