Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
ZKAPAuthorizer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Administrator
ZKAPAuthorizer
Commits
03f61e1d
Commit
03f61e1d
authored
3 years ago
by
Tom Prince
Browse files
Options
Downloads
Patches
Plain Diff
Use flake8 plugins for black and isort.
parent
ef54036d
No related branches found
Branches containing commit
No related tags found
2 merge requests
!302
Create a minimal derivation for linting tools
,
!301
Include linting tools in test requirements.
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
setup.cfg
+3
-1
3 additions, 1 deletion
setup.cfg
tests.nix
+2
-2
2 additions, 2 deletions
tests.nix
with
5 additions
and
3 deletions
setup.cfg
+
3
−
1
View file @
03f61e1d
...
@@ -65,4 +65,6 @@ test = coverage; fixtures; testtools; testresources; hypothesis; openapi_spec_va
...
@@ -65,4 +65,6 @@ test = coverage; fixtures; testtools; testresources; hypothesis; openapi_spec_va
# Reference:
# Reference:
# https://flake8.pycqa.org/en/latest/user/error-codes.html
# https://flake8.pycqa.org/en/latest/user/error-codes.html
# https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes
# https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes
select
=
F, W191
# https://pypi.org/project/flake8-isort/#error-codes
# https://pypi.org/project/flake8-black/#flake8-validation-codes
select
=
F, W191, I, BLK
This diff is collapsed.
Click to expand it.
tests.nix
+
2
−
2
View file @
03f61e1d
...
@@ -42,6 +42,8 @@ let
...
@@ -42,6 +42,8 @@ let
isort == 5.10.1
isort == 5.10.1
black == 21.12b0
black == 21.12b0
flake8 == 4.0.1
flake8 == 4.0.1
flake8-isort
flake8-black
''
;
''
;
};
};
...
@@ -53,8 +55,6 @@ let
...
@@ -53,8 +55,6 @@ let
mkdir -p $out
mkdir -p $out
pushd
${
zkapauthorizer
.
src
}
pushd
${
zkapauthorizer
.
src
}
${
lint-python
}
/bin/black --check src
${
lint-python
}
/bin/isort --check src
${
lint-python
}
/bin/flake8 src
${
lint-python
}
/bin/flake8 src
popd
popd
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment