Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Dynamic Exposure
rabotnik
rcom
Commits
4fd12267
Commit
4fd12267
authored
Apr 30, 2021
by
Felix Delattre
Browse files
Added pre-commit
parent
c484d8a9
Pipeline
#22535
passed with stage
in 1 minute and 40 seconds
Changes
6
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
4fd12267
...
...
@@ -4,7 +4,6 @@
*.egg-info
Pipfile
Pipfile.lock
.pre-commit-config.yaml
__pycache__
.cache
...
...
.gitlab-ci.yml
View file @
4fd12267
...
...
@@ -4,6 +4,7 @@ before_script:
-
python3 -V
-
pip3 install pytest pytest-cov
-
pip3 install git+https://git.gfz-potsdam.de/dynamicexposure/rabotnik/rabotnik.git
-
pip3 install .[linters]
-
pip3 install .[tests]
-
pip3 install .
...
...
.pre-commit-config.yaml
0 → 100644
View file @
4fd12267
fail_fast
:
false
repos
:
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v2.3.0
hooks
:
-
id
:
check-yaml
-
id
:
end-of-file-fixer
-
id
:
check-builtin-literals
-
id
:
trailing-whitespace
-
repo
:
https://github.com/psf/black
rev
:
20.8b1
hooks
:
-
id
:
black
args
:
[
--line-length=96
]
-
repo
:
https://github.com/pycqa/flake8
rev
:
3.7.9
hooks
:
-
id
:
flake8
args
:
[
--max-line-length=96
]
-
repo
:
local
hooks
:
-
id
:
pylint
name
:
pylint
entry
:
pylint
language
:
system
args
:
[
--disable=E0611
,
-E
,
-j4
]
types
:
[
python
]
LICENSE
View file @
4fd12267
...
...
@@ -616,4 +616,4 @@ an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
\ No newline at end of file
END OF TERMS AND CONDITIONS
Makefile
View file @
4fd12267
SOURCES
=
rcli tests
LENGTH
=
96
check
:
pre-commit run
--all-files
check
:
$(SOURCES)
flake8
--max-line-length
=
$(LENGTH)
$^
black
--check
--line-length
$(LENGTH)
$^
pylint
-E
$^
install
:
pip
install
.[tests]
pip
install
.[linters]
pip
install
-e
.
pre-commit
install
format
:
$(SOURCES)
black
--line-length
$(LENGTH)
$^
format
:
pre-commit run
--all-files
black
setup.py
View file @
4fd12267
...
...
@@ -10,7 +10,7 @@ tests_require = [
"pytest-cov"
,
]
linters_require
=
[
"
black>=20.8b1"
,
"pylint"
,
"flake8
"
]
linters_require
=
[
"
pylint"
,
"pre-commit
"
]
setup
(
name
=
"rcli"
,
...
...
@@ -19,7 +19,7 @@ setup(
author
=
"Helmholtz-Zentrum Potsdam Deutsches GeoForschungsZentrum GFZ"
,
license
=
"AGPLv3+"
,
install_requires
=
[
"rabotnik@https://git.gfz-potsdam.de/dynamicexposure/rabotnik/rabotnik/-/archive/master/rabotnik-master.zip"
"rabotnik@https://git.gfz-potsdam.de/dynamicexposure/rabotnik/rabotnik/-/archive/master/rabotnik-master.zip"
# noqa: E501
],
tests_require
=
tests_require
,
extras_require
=
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment