Skip to content

Commit

Permalink
feat: update lint configuration to match geontautre 2.14
Browse files Browse the repository at this point in the history
  • Loading branch information
edelclaux committed Apr 30, 2024
1 parent 87fed5f commit abc6574
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 10 deletions.
1 change: 1 addition & 0 deletions frontend/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/gallium
Empty file added frontend/.prettierignore
Empty file.
6 changes: 5 additions & 1 deletion frontend/.prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@
"useTabs": false,
"tabWidth": 2,
"semi": true,
"bracketSpacing": true
"bracketSpacing": true,
"trailingComma": "es5",
"singleAttributePerLine": true,
"bracketSameLine": false,
"htmlWhitespaceSensitivity": "ignore"
}
14 changes: 7 additions & 7 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"pbf": "^3.2.1"
},
"devDependencies": {
"prettier": "^3.0.3"
"prettier": "~3.1.0"
}
}
11 changes: 11 additions & 0 deletions lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

# backend
black .

# frontend
cd frontend
source ~/.nvm/nvm.sh
nvm use
npm run format
cd ..
21 changes: 20 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,23 @@ omit = [
]

[tool.black]
line-length = 99
line-length = 100
exclude ='''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| node_modules
| venv
| dependencies
)/
)
'''

0 comments on commit abc6574

Please sign in to comment.