Skip to content

Commit

Permalink
Revert "Merge branch 'pylint' into 'master'"
Browse files Browse the repository at this point in the history
This reverts commit b4350c3, reversing
changes made to cae13f9.
  • Loading branch information
Benjamin Sherman authored and Benjamin Sherman committed Jul 23, 2020
1 parent b4350c3 commit 6bd2e84
Show file tree
Hide file tree
Showing 64 changed files with 1,950 additions and 2,040 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
__pycache__/
.mypy_cache/

config/*
!config/*.example
Expand All @@ -8,4 +7,4 @@ bot_token
*.db
*.db-journal
.env
**/.DS_Store
**/.DS_Store
29 changes: 2 additions & 27 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,11 @@ stages:
style-check:
stage: test
before_script:
- pip install black
- pip install black
script:
- black --check .
- black --check .
allow_failure: true

pylint:
stage: test
before_script:
- pip install pylint pylint_junit
- pip install -r requirements.txt # required for checking imports
script:
- pylint --version
- pylint --rcfile .pylintrc bot --output-format=pylint_junit.JUnitReporter | tee pylint.xml
artifacts:
reports:
junit:
pylint.xml

mypy:
stage: test
before_script:
- pip install mypy
- pip install -r requirements.txt
script:
- mypy main.py --strict --ignore-missing-imports --junit-xml mypy.xml
artifacts:
reports:
junit:
mypy.xml

deploy-to-server:
stage: deploy
script:
Expand Down
Loading

0 comments on commit 6bd2e84

Please sign in to comment.