Codebase list python-procrunner / e4ce905
Update badge location, precommits; add isort Markus Gerstel 2 years ago
7 changed file(s) with 24 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
00 repos:
1
2 # Automatically sort imports
3 - repo: https://github.com/PyCQA/isort
4 rev: 5.6.4
5 hooks:
6 - id: isort
17
28 # Automatic source code formatting
39 - repo: https://github.com/psf/black
4 rev: 20.8b1
10 rev: 21.4b2
511 hooks:
612 - id: black
713 args: [--safe, --quiet]
1010 :target: https://anaconda.org/conda-forge/procrunner
1111 :alt: Conda Version
1212
13 .. image:: https://dev.azure.com/procrunner/procrunner/_apis/build/status/CI?branchName=master
13 .. image:: https://dev.azure.com/DLS-tooling/procrunner/_apis/build/status/CI?branchName=master
1414 :target: https://github.com/DiamondLightSource/python-procrunner/commits/master
1515 :alt: Build status
1616
0 [build-system]
1 requires = ["setuptools >= 40.6.0", "wheel"]
2 build-backend = "setuptools.build_meta"
3
4 [tool.isort]
5 profile="black"
00 #!/usr/bin/env python
11 # -*- coding: utf-8 -*-
22
3 from setuptools import setup, find_packages
3 from setuptools import find_packages, setup
44
55 with open("README.rst") as readme_file:
66 readme = readme_file.read()
00 import copy
1 from unittest import mock
21 import os
32 import pathlib
3 import sys
4 from unittest import mock
5
6 import pytest
7
48 import procrunner
5 import pytest
6 import sys
79
810
911 @mock.patch("procrunner._NonBlockingStreamReader")
00 import os
11 import sys
22
3 import pytest
4
35 import procrunner
4 import pytest
56
67
78 def PEP519(path):
22 import sys
33 import timeit
44
5 import pytest
6
57 import procrunner
6 import pytest
78
89
910 def test_simple_command_invocation():