Skip to content

Commit

Permalink
Add and apply a pre-commit configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Zack Cerza <[email protected]>
  • Loading branch information
zmc committed Oct 18, 2023
1 parent 073b942 commit 6e6f073
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .env.dev
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ GH_TOKEN_URL='https://github.com/login/oauth/access_token'
GH_FETCH_MEMBERSHIP_URL='https://api.github.com/user/memberships/orgs/ceph'

#Session Related Stuff
## SESSION_SECRET_KEY is used to encrypt session data
## SESSION_SECRET_KEY is used to encrypt session data
## and it's prod value should be kept secret.
SESSION_SECRET_KEY=my-secret-key
SESSION_SECRET_KEY=my-secret-key
2 changes: 1 addition & 1 deletion .github/workflows/black.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ jobs:
- uses: psf/black@stable
with:
options: "--check --verbose"
src: "./src"
src: "./src"
2 changes: 1 addition & 1 deletion .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ jobs:
- uses: actions/checkout@v2
- name: Start teuthology & teuthology-api
run: ./start.sh
working-directory: ./gh-actions
working-directory: ./gh-actions
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
2 changes: 1 addition & 1 deletion .teuthology.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ lock_server: http://paddles:8080
results_server: http://paddles:8080
results_ui_server: http://pulpito:8081/
reserve_machines: 0
lab_domain: ''
lab_domain: ''
5 changes: 1 addition & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,7 @@
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
html_theme_options = {
"sidebar_width": "300px",
"page_width": "1200px"
}
html_theme_options = {"sidebar_width": "300px", "page_width": "1200px"}

# Add any paths that contain custom themes here, relative to this directory.
# html_theme_path = []
Expand Down
2 changes: 1 addition & 1 deletion gh-actions/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ if [ ! -d "$folder" ] ; then
" >> teuthology/docs/docker-compose/docker-compose.yml
fi
cd teuthology/docs/docker-compose
./start.sh
./start.sh
5 changes: 2 additions & 3 deletions gunicorn_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
bind = f'{host}:{port}'

workers = cpu_count()
worker_class = 'uvicorn.workers.UvicornWorker'
worker_class = "uvicorn.workers.UvicornWorker"

# loglevel = 'debug'
accesslog = os.path.expanduser("~/teuthology-api.access.log")
# errorlog = os.path.expanduser("~/teuthology-api.error.log")

# errorlog = os.path.expanduser("~/teuthology-api.error.log")

0 comments on commit 6e6f073

Please sign in to comment.