summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert JW Regeer <xistence@0x58.com>2022-02-06 11:19:34 -0700
committerGitHub <noreply@github.com>2022-02-06 11:19:34 -0700
commit6e152d35a0aae7f338be166e5aedbcefefe28e82 (patch)
tree3cf2dde006b0613393ed6dd8a25d169b973aadca
parente4903821cdc3643e51417b0e114f64c90455f894 (diff)
parent3c67ad1bc5659cbad7a2a9a9fb2492e2bad39f75 (diff)
downloadpyramid-6e152d35a0aae7f338be166e5aedbcefefe28e82.tar.gz
pyramid-6e152d35a0aae7f338be166e5aedbcefefe28e82.tar.bz2
pyramid-6e152d35a0aae7f338be166e5aedbcefefe28e82.zip
Merge pull request #3690 from luhn/pin-black
Add version constraints to black, flake8, and isort
-rw-r--r--HACKING.txt6
-rw-r--r--tox.ini10
2 files changed, 11 insertions, 5 deletions
diff --git a/HACKING.txt b/HACKING.txt
index 7c0375d45..9cc2e8edb 100644
--- a/HACKING.txt
+++ b/HACKING.txt
@@ -69,6 +69,12 @@ Coding Style
$ $TOX -e format
+- Pyramid uses flake8 (https://pypi.org/project/flake8/) to enforce PEP8 style guidelines.
+ To run flake8, as well as running checks for Black and isort:
+
+ $ $TOX -e lint
+
+Black, isort, and flake8 versions are pinned for stability and reproducibility.
Running Tests
-------------
diff --git a/tox.ini b/tox.ini
index 6c5d9fa04..90436ceed 100644
--- a/tox.ini
+++ b/tox.ini
@@ -28,9 +28,9 @@ commands =
python setup.py check -r -s -m
check-manifest
deps =
- flake8
- black
- isort
+ flake8~=4.0.1
+ black~=22.1.0
+ isort~=5.10
readme_renderer
check-manifest
@@ -66,8 +66,8 @@ commands =
isort src/pyramid tests setup.py
black src/pyramid tests setup.py
deps =
- black
- isort
+ black~=22.1.0
+ isort~=5.10
[testenv:build]
skip_install = true