forked from getsentry/sentry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement basics of pre-commit
- Add pre-commit framework - Implement a number of reasonable defaults and exclusions - Move CI generated artifacts into .artifacts/ - Run pre-commit over entirety of codebase (and apply various fixes) - Remove dead runtests.js
- Loading branch information
Showing
50 changed files
with
478 additions
and
450 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This folder captures artifacts generated from .pre-commit, such as lint violations. It is primarily used for continuous integration services. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ test.conf | |
pip-log.txt | ||
celerybeat-schedule | ||
sentry-package.json | ||
/.artifacts | ||
/coverage/ | ||
/cover | ||
/build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
exclude: > | ||
(?x)( | ||
LICENSE$| | ||
\.snap$| | ||
\.map$| | ||
\.map\.js$| | ||
^tests/sentry/lang/.*/fixtures/| | ||
^tests/fixtures/| | ||
^src/sentry/static/sentry/vendor/| | ||
^tests/sentry/lang/javascript/example-project/| | ||
^src/.*/locale/| | ||
^src/sentry/data/ | ||
) | ||
repos: | ||
# - repo: https://github.com/ambv/black | ||
# rev: 18.6b2 | ||
# hooks: | ||
# - id: black | ||
# python_version: python3.6 | ||
- repo: git://github.com/pre-commit/pre-commit-hooks | ||
rev: v1.3.0 | ||
hooks: | ||
- id: check-case-conflict | ||
- id: check-executables-have-shebangs | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: end-of-file-fixer | ||
exclude_types: [svg] | ||
- id: trailing-whitespace | ||
exclude_types: [svg] | ||
- id: debug-statements | ||
# - id: flake8 | ||
# log_file: '.artifacts/flake8.pycodestyle.log' | ||
- id: requirements-txt-fixer | ||
# - repo: git://github.com/getsentry/pre-commit-hooks | ||
# rev: f3237d2d65af81d435c49dee3593dc8f03d23c2d | ||
# hooks: | ||
# - id: prettier | ||
# - id: eslint | ||
# args: ['--format=checkstyle'] | ||
# log_file: '.artifacts/eslint.checkstyle.xml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
docutils>=0.7 | ||
Jinja2>=2.3 | ||
markupsafe | ||
Pygments>=1.2 | ||
Sphinx>=1.3 | ||
docutils>=0.7 | ||
markupsafe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,4 +87,4 @@ div.body { | |
|
||
.github { | ||
display: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ stylesheet = flasky.css | |
pygments_style = flask_theme_support.FlaskyStyle | ||
|
||
[options] | ||
touch_icon = | ||
touch_icon = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,3 @@ Subcommands | |
discover <discover/index> | ||
generate-secret-key <generate-secret-key/index> | ||
delete <delete/index> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,3 @@ Subcommands | |
|
||
info <info/index> | ||
get <get/index> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,4 +40,3 @@ Subcommands | |
shell <shell/index> | ||
config <config/index> | ||
tsdb <tsdb/index> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,3 @@ Subcommands | |
:maxdepth: 1 | ||
|
||
list <list/index> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,3 @@ Subcommands | |
|
||
purge <purge/index> | ||
list <list/index> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,3 @@ Subcommands | |
web <web/index> | ||
cron <cron/index> | ||
smtp <smtp/index> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,3 @@ Subcommands | |
:maxdepth: 1 | ||
|
||
query <query/index> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,3 @@ Subcommands | |
:maxdepth: 1 | ||
|
||
organizations <organizations/index> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,4 +33,3 @@ different cluster, provide the ``cluster`` option, as such: | |
SENTRY_TSDB_OPTIONS = { | ||
'cluster': 'tsdb', | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
autopep8 | ||
Babel | ||
flake8>=2.6,<2.7 | ||
pycodestyle>=2.0,<2.1 | ||
isort>=4.2.2,<4.3.0 | ||
pycodestyle>=2.0,<2.1 |
Oops, something went wrong.