Update badge location, precommits; add isort
Markus Gerstel
2 years ago
0 | 0 |
repos:
|
|
1 |
|
|
2 |
# Automatically sort imports
|
|
3 |
- repo: https://github.com/PyCQA/isort
|
|
4 |
rev: 5.6.4
|
|
5 |
hooks:
|
|
6 |
- id: isort
|
1 | 7 |
|
2 | 8 |
# Automatic source code formatting
|
3 | 9 |
- repo: https://github.com/psf/black
|
4 | |
rev: 20.8b1
|
|
10 |
rev: 21.4b2
|
5 | 11 |
hooks:
|
6 | 12 |
- id: black
|
7 | 13 |
args: [--safe, --quiet]
|
10 | 10 |
:target: https://anaconda.org/conda-forge/procrunner
|
11 | 11 |
:alt: Conda Version
|
12 | 12 |
|
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
|
14 | 14 |
:target: https://github.com/DiamondLightSource/python-procrunner/commits/master
|
15 | 15 |
:alt: Build status
|
16 | 16 |
|
|
0 |
[build-system]
|
|
1 |
requires = ["setuptools >= 40.6.0", "wheel"]
|
|
2 |
build-backend = "setuptools.build_meta"
|
|
3 |
|
|
4 |
[tool.isort]
|
|
5 |
profile="black"
|
0 | 0 |
#!/usr/bin/env python
|
1 | 1 |
# -*- coding: utf-8 -*-
|
2 | 2 |
|
3 | |
from setuptools import setup, find_packages
|
|
3 |
from setuptools import find_packages, setup
|
4 | 4 |
|
5 | 5 |
with open("README.rst") as readme_file:
|
6 | 6 |
readme = readme_file.read()
|
0 | 0 |
import copy
|
1 | |
from unittest import mock
|
2 | 1 |
import os
|
3 | 2 |
import pathlib
|
|
3 |
import sys
|
|
4 |
from unittest import mock
|
|
5 |
|
|
6 |
import pytest
|
|
7 |
|
4 | 8 |
import procrunner
|
5 | |
import pytest
|
6 | |
import sys
|
7 | 9 |
|
8 | 10 |
|
9 | 11 |
@mock.patch("procrunner._NonBlockingStreamReader")
|
0 | 0 |
import os
|
1 | 1 |
import sys
|
2 | 2 |
|
|
3 |
import pytest
|
|
4 |
|
3 | 5 |
import procrunner
|
4 | |
import pytest
|
5 | 6 |
|
6 | 7 |
|
7 | 8 |
def PEP519(path):
|
2 | 2 |
import sys
|
3 | 3 |
import timeit
|
4 | 4 |
|
|
5 |
import pytest
|
|
6 |
|
5 | 7 |
import procrunner
|
6 | |
import pytest
|
7 | 8 |
|
8 | 9 |
|
9 | 10 |
def test_simple_command_invocation():
|