Skip to content

Commit 654ae55

Browse files
authored
Merge pull request #123 from NHSDigital/mesh-1697-switch-flake8-to-ruff
mesh-1697: switch flake8 to ruff
2 parents 7ad8c2f + 63e0f19 commit 654ae55

15 files changed

Lines changed: 1644 additions & 6883 deletions

.flake8

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "pip"
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "monthly"
12+
13+
- package-ecosystem: "npm"
14+
directory: "/" # Location of package manifests
15+
schedule:
16+
interval: "monthly"

Makefile

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,23 @@ install-hooks:
1414
test:
1515
@echo disable for spec only
1616

17-
lint:
17+
black:
18+
poetry run black .
19+
20+
black-check:
21+
poetry run black . --check
22+
23+
ruff: black
24+
poetry run ruff --fix --show-fixes .
25+
26+
ruff-check:
27+
poetry run ruff .
28+
29+
ruff-ci:
30+
poetry run ruff --output-format=github .
31+
32+
lint: ruff
1833
npm run lint
19-
poetry run flake8
2034

2135
publish:
2236
npm run publish 2> /dev/null

openapitools.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
3+
"spaces": 2,
4+
"generator-cli": {
5+
"version": "7.0.1"
6+
}
7+
}

0 commit comments

Comments
 (0)