Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Backend
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
swp-unisport
team-warumkeinrust
Backend
Commits
ce908f9f
Commit
ce908f9f
authored
3 years ago
by
borzechof99
Browse files
Options
Downloads
Patches
Plain Diff
Add Linter as a seperate Script for Ease of Use
parent
d89072a9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
custom_linter.sh
+1
-0
1 addition, 0 deletions
custom_linter.sh
with
2 additions
and
1 deletion
.gitlab-ci.yml
+
1
−
1
View file @
ce908f9f
...
...
@@ -63,7 +63,7 @@ pylint:
-
pip install -r requirements.txt
script
:
#Due to Problems with Pylint, Ignored Files need to be presented here for now.
-
git ls-files | grep -v 'migrations\|manage.py\|course_scraper' | grep -E '.py$' | xargs pylint --load-plugins=pylint_django
-
./custom_linter.sh
# - pylint --exit-zero --output-format=text $(find -type f -name "*.py" ! -path "**/.venv/**") | tee /tmp/pylint.txt
# - sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' /tmp/pylint.txt > public/badges/$CI_JOB_NAME.score
# - pylint --exit-zero --output-format=pylint_gitlab.GitlabCodeClimateReporter $(find -type f -name "*.py" ! -path "**/.venv/**") > codeclimate.json
...
...
This diff is collapsed.
Click to expand it.
custom_linter.sh
0 → 100755
+
1
−
0
View file @
ce908f9f
git ls-files |
grep
-v
'migrations\|manage.py\|course_scraper'
|
grep
-E
'.py$'
| xargs pylint
--load-plugins
=
pylint_django
\ No newline at end of file
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