Skip to content

Commit

Permalink
refactor: linting tweaks (#2507)
Browse files Browse the repository at this point in the history
  • Loading branch information
dabeeeenster authored Jul 31, 2023
1 parent 591bd07 commit 35a4f06
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,30 @@ repos:
hooks:
- id: isort
name: isort (python)

- repo: https://github.com/psf/black
rev: 23.1.0
rev: 23.7.0
hooks:
- id: black
language_version: python3
exclude: migrations

- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
name: flake8
args: [--config, api/.flake8]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: check-json
- id: check-toml

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0
hooks:
- id: prettier
exclude: ^(frontend/|CHANGELOG.md)
7 changes: 4 additions & 3 deletions api/.flake8
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ max-complexity = 10
exclude = .git,.venv,.direnv,__pycache__,*/migrations/*

per-file-ignores =
app/settings/local.py: F403, F405
app/settings/production.py: F403, F405
app/settings/saas.py: F403, F405
# Need the * prefix to work with pre-commit which runs from the root of the repo
*app/settings/local.py: F403, F405
*app/settings/production.py: F403, F405
*app/settings/saas.py: F403, F405
2 changes: 1 addition & 1 deletion frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}
},
"exclude": [
"node_modules",
"node_modules"
],
"include": [
"global.d.ts",
Expand Down

3 comments on commit 35a4f06

@vercel
Copy link

@vercel vercel bot commented on 35a4f06 Jul 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 35a4f06 Jul 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 35a4f06 Jul 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./docs

docs-git-main-flagsmith.vercel.app
docs.flagsmith.com
docs-flagsmith.vercel.app
docs.bullet-train.io

Please sign in to comment.