remove trailing whitespaces

This commit is contained in:
Peter Pfeufer 2021-05-17 09:46:11 +02:00
parent 10bd77d761
commit 8c3df89d52
No known key found for this signature in database
GPG Key ID: 6051D2C6AD4EBC27
146 changed files with 2088 additions and 2061 deletions

View File

@ -1,4 +1,5 @@
stages: stages:
- pre-commit
- gitlab - gitlab
- test - test
- deploy - deploy
@ -13,6 +14,18 @@ before_script:
- python -V - python -V
- pip install wheel tox - pip install wheel tox
pre-commit-check:
stage: pre-commit
image: python:3.6-buster
variables:
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
cache:
paths:
- ${PRE_COMMIT_HOME}
script:
- pip install pre-commit
- pre-commit run --all-files
sast: sast:
stage: gitlab stage: gitlab
before_script: [] before_script: []

16
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,16 @@
# Apply to all files without committing:
# pre-commit run --all-files
# Update this file:
# pre-commit autoupdate
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-case-conflict
- id: check-json
- id: check-xml
- id: check-yaml
- id: fix-byte-order-marker
- id: trailing-whitespace
exclude: \.(min\.css|min\.js|po|mo)$

View File

@ -97,4 +97,3 @@ class TestCheckGroupsOnStateChange(TestCase):
self.assertEqual(self.user.profile.state, self.test_state_2) self.assertEqual(self.user.profile.state, self.test_state_2)
groups = self.user.groups.all() groups = self.user.groups.all()
self.assertIn(state_group, groups) self.assertIn(state_group, groups)

View File

@ -321,4 +321,3 @@ class Teamspeak3ManagerTestCase(TestCase):
# perform test # perform test
manager.add_user(user, "Dummy User") manager.add_user(user, "Dummy User")