Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Maják
Commits
c7466501
Commit
c7466501
authored
3 years ago
by
jan.bednarik
Browse files
Options
Downloads
Patches
Plain Diff
majak: Upgrade pre-commit hooks
parent
5751bae2
No related branches found
No related tags found
2 merge requests
!406
release
,
!405
Upgrade
Pipeline
#5592
passed
3 years ago
Stage: build
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.pre-commit-config.yaml
+3
-3
3 additions, 3 deletions
.pre-commit-config.yaml
shared/models.py
+1
-1
1 addition, 1 deletion
shared/models.py
shared/templatetags/shared_filters.py
+1
-1
1 addition, 1 deletion
shared/templatetags/shared_filters.py
with
5 additions
and
5 deletions
.pre-commit-config.yaml
+
3
−
3
View file @
c7466501
...
...
@@ -4,7 +4,7 @@ default_language_version:
exclude
:
snapshots/
repos
:
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v
3.3.0
rev
:
v
4.0.1
hooks
:
-
id
:
trailing-whitespace
exclude
:
^.*\.md$
...
...
@@ -21,11 +21,11 @@ repos:
-
id
:
seed-isort-config
-
repo
:
https://github.com/timothycrosley/isort
rev
:
5.
6.4
rev
:
5.
9.3
hooks
:
-
id
:
isort
-
repo
:
https://github.com/psf/black
rev
:
2
0.8b1
rev
:
2
1.9b0
hooks
:
-
id
:
black
This diff is collapsed.
Click to expand it.
shared/models.py
+
1
−
1
View file @
c7466501
...
...
@@ -107,7 +107,7 @@ class Person(models.Model):
]
def
_iapi
(
self
):
"""
Vrati data o osobe z piratskeho IAPI jako json. Cached via django cache
"""
"""
Vrati data o osobe z piratskeho IAPI jako json. Cached via django cache
"""
key
=
f
"
profile_
{
self
.
username
}
"
profile
=
cache
.
get
(
key
)
if
profile
is
None
:
...
...
This diff is collapsed.
Click to expand it.
shared/templatetags/shared_filters.py
+
1
−
1
View file @
c7466501
...
...
@@ -7,5 +7,5 @@ register = template.Library()
@register.filter
def
markdown
(
value
):
"""
Prekonvertuje vstupni text na markdown, necekane
"""
"""
Prekonvertuje vstupni text na markdown, necekane
"""
return
mark_safe
(
md
.
markdown
(
value
))
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment