Commit Graph

162 Commits

Author SHA1 Message Date
pyup-bot
c832e11523 Update requests-mock from 1.8.0 to 1.9.3 2021-06-02 15:28:29 +01:00
pyup-bot
d4f11a3b40 Update flake8 from 3.9.0 to 3.9.2 2021-06-02 15:28:29 +01:00
pyup-bot
6177937014 Update pytest-mock from 3.5.1 to 3.6.1 2021-06-02 15:28:29 +01:00
pyup-bot
96e5950de7 Update pytest from 6.2.3 to 6.2.4 2021-06-02 15:28:29 +01:00
pyup-bot
ba5694c6f8 Update flake8-bugbear from 21.3.2 to 21.4.3 2021-04-05 14:55:06 +01:00
pyup-bot
84b726df18 Update pytest from 6.2.2 to 6.2.3 2021-04-05 14:55:06 +01:00
pyup-bot
0b2e263b95 Update isort from 5.7.0 to 5.8.0 2021-04-05 14:55:05 +01:00
pyup-bot
b9d2657de6 Update flake8-bugbear from 21.3.1 to 21.3.2 2021-03-15 13:55:04 +00:00
pyup-bot
7c16556c8c Update flake8 from 3.8.4 to 3.9.0 2021-03-15 13:55:04 +00:00
pyup-bot
7cc23020d6 Update requests-mock from 1.7.0 to 1.8.0 2021-03-08 18:48:44 +00:00
pyup-bot
66c0ddc7e2 Update flake8-print from 3.1.4 to 4.0.0 2021-03-08 18:48:43 +00:00
pyup-bot
0e0caa0c33 Update flake8-bugbear from 19.8.0 to 21.3.1 2021-03-08 18:48:42 +00:00
pyup-bot
4dd6668055 Update flake8 from 3.7.9 to 3.8.4 2021-03-08 18:48:41 +00:00
pyup-bot
46df5d7fb9 Update freezegun from 0.3.12 to 1.1.0 2021-03-08 18:48:40 +00:00
pyup-bot
be7ddef86b Update beautifulsoup4 from 4.8.1 to 4.9.3 2021-03-08 18:48:39 +00:00
pyup-bot
a6131ba53a Update pytest-xdist from 1.31.0 to 2.2.1 2021-03-08 18:48:38 +00:00
pyup-bot
908ea66cff Update pytest-mock from 1.11.2 to 3.5.1 2021-03-08 18:48:37 +00:00
pyup-bot
3f0e67aa3a Update pytest from 5.3.2 to 6.2.2 2021-03-08 18:48:36 +00:00
pyup-bot
ce749f536c Update isort from 4.3.21 to 5.7.0 2021-03-08 18:48:35 +00:00
Ben Thorner
765c8ddbe2 Keep test dependencies as-is for now
These are leading to multiple failures:

- flake8 fails with various issues
- isort fails with various issues
- pytest fails on a couple of 2FA tests

While we can and should upgrade these dependencies, the priority is
fixing the build so that we can do this reliably.
2021-02-16 18:09:52 +00:00
Ben Thorner
627e4e41ab Stop locking non-test dependencies twice
Currently we have a situation where we're not running tests against
new versions of dependencies, as requirements_for_test.txt is not
being kept in-sync with requirements.txt by pyup. Deploys are only
working because Concourse silently ignores version issues.

From a deployment log:

awscli 1.18.211 has requirement PyYAML<5.4,>=3.10; python_version != "3.4", but you'll have pyyaml 5.4 which is incompatible.

This switches to a single requirements file for test dependencies,
in order to keep it in-sync with requirements.txt i.e. we run our
tests against the same versions of dependencies that we deploy with,
and the build fails if we try to use package versions that are not
mutually compatible, as this example PR shows [1].

ERROR: Cannot install -r requirements_for_test.txt (line 17), -r requirements_for_test.txt (line 198) and pyyaml==5.4.1 because these package versions have conflicting dependencies.

We shouldn't need to have fine-grained locking on test dependencies,
beyond those we want to list manually in the file.

[1]: https://github.com/alphagov/notifications-admin/pull/3804
2021-02-16 18:09:47 +00:00
Rebecca Law
f0ce2c6f5b Update utils to version 43.8.
Invalid characters for the first line of a postal address now include < >
2021-02-09 14:07:01 +00:00
Pea Tyczynska
77008fe3cc Update requirements - install patch for jinja2 vulnerability 2021-02-02 17:13:18 +00:00
Chris Hill-Scott
8b1e4afd3b Install pip tools as part of freeze-requirements
Makes the command faster and more self contained.
2021-01-08 17:02:39 +00:00
Chris Hill-Scott
fdb659e2bd Run pip-compile command and commit output
This command freezes all our requirements into the `.txt` files.

We want these files version controlled so that our builds are exactly
reproducible from environment to environment.
2021-01-08 17:02:39 +00:00
Chris Hill-Scott
4d43354473 Remove strict argument to pytest
We set it in pytest.ini anyway.
2020-02-24 17:28:29 +00:00
Katie Smith
1c23784767 Pytest 5 🎉
Also updates the Pytest command in `run_tests.sh` to remove junit,
which we stopped using.
2020-01-09 09:50:37 +00:00
David McDonald
224db44a9e Remove coveralls
We aren't using it
2019-12-24 15:25:34 +00:00
David McDonald
8ce1917740 Revert "Remove pip-accel" 2019-12-23 11:49:32 +00:00
David McDonald
807c83c656 Remove coveralls
We don't use it
2019-12-20 16:58:45 +00:00
Leo Hemsted
f85bd3a8dd bump reqs
utils bump, and a bunch of test dependencies
can't bump pytest-xdist as it requires pytest>4
2019-11-18 14:59:02 +00:00
Chris Hill-Scott
fcc84ac514 Do extra code style checks with flake8-bugbear
Flake8 Bugbear checks for some extra things that aren’t code style
errors, but are likely to introduce bugs or unexpected behaviour. A
good example is having mutable default function arguments, which get
shared between every call to the function and therefore mutating a value
in one place can unexpectedly cause it to change in another.

This commit enables all the extra warnings provided by Flake8 Bugbear,
except for the line length one (because we already lint for that
separately).

It disables:
- _B003: Assigning to os.environ_ because I don’t really understand this
- _B306: BaseException.message is removed in Python 3_ because I think
  our exceptions have a custom structure that means the `.message`
  attribute is still present
2019-11-01 10:43:01 +00:00
Chris Hill-Scott
d227ca11d5 Combine test-related Pyup changes 2019-07-03 13:48:28 +01:00
Leo Hemsted
9547fedcc3 move manifest to single jinja template
uses the same pattern as other apps. Infers route based on app name,
you can declare more in the dict at the top if you need to.
2019-04-16 14:46:00 +01:00
Chris Hill-Scott
8f7d18efb5 Stop Pyup trying to upgrade us to Pytest 4
There’s no point until we’ve changed our code to conform.
2019-03-25 12:04:42 +00:00
pyup-bot
b3855de424 Update isort from 4.3.4 to 4.3.16 2019-03-25 11:19:24 +00:00
pyup-bot
e910a5f28a Update pytest-xdist from 1.26.1 to 1.27.0 2019-03-20 23:27:09 +00:00
pyup-bot
fdd872db48 Update coveralls from 1.6.0 to 1.7.0 2019-03-20 03:24:10 +00:00
pyup-bot
e2a48ded13 Update flake8 from 3.7.6 to 3.7.7 2019-02-25 16:53:28 +00:00
Chris Hill-Scott
eeeaa5546e Merge pull request #2781 from alphagov/pyup-update-coveralls-1.5.1-to-1.6.0
Update coveralls to 1.6.0
2019-02-19 10:19:28 +00:00
pyup-bot
7be7861473 Update flake8 from 3.7.5 to 3.7.6 2019-02-18 21:48:03 +00:00
pyup-bot
12ddd5c514 Update coveralls from 1.5.1 to 1.6.0 2019-02-18 18:57:55 +00:00
Chris Hill-Scott
311d615356 Merge pull request #2724 from alphagov/pyup-update-pytest-mock-1.10.0-to-1.10.1
Update pytest-mock to 1.10.1
2019-02-04 17:35:06 +00:00
pyup-bot
9ae5a7c9ad Update flake8 from 3.7.4 to 3.7.5 2019-02-04 16:55:21 +00:00
pyup-bot
cc392e49a4 Update pytest-mock from 1.10.0 to 1.10.1 2019-02-04 13:55:27 +00:00
pyup-bot
5c26095ad4 Update flake8 from 3.7.3 to 3.7.4 2019-02-01 05:40:21 +00:00
pyup-bot
716eefa533 Update flake8 from 3.7.1 to 3.7.3 2019-01-31 05:40:27 +00:00
Chris Hill-Scott
54e9e6401d Merge pull request #2696 from alphagov/pyup-update-pytest-xdist-1.26.0-to-1.26.1
Update pytest-xdist to 1.26.1
2019-01-30 13:34:06 +00:00
pyup-bot
8a254add0d Update flake8 from 3.6.0 to 3.7.1 2019-01-30 08:21:26 +00:00
pyup-bot
130dcb7363 Update pytest-xdist from 1.26.0 to 1.26.1 2019-01-29 20:55:19 +00:00