Skip to content

Commit d95b144

Browse files
committed
Initial commit
0 parents  commit d95b144

13 files changed

+2143
-0
lines changed

.flake8

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright 2021 Agnostiq Inc.
2+
#
3+
# This file is part of Covalent.
4+
#
5+
# Licensed under the GNU Affero General Public License 3.0 (the "License").
6+
# A copy of the License may be obtained with this software package or at
7+
#
8+
# https://www.gnu.org/licenses/agpl-3.0.en.html
9+
#
10+
# Use of this file is prohibited except in compliance with the License. Any
11+
# modifications or derivative works of this file must retain this copyright
12+
# notice, and modified files must contain a notice indicating that they have
13+
# been altered from the originals.
14+
#
15+
# Covalent is distributed in the hope that it will be useful, but WITHOUT
16+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17+
# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details.
18+
#
19+
# Relief from the License may be granted by purchasing a commercial license.
20+
21+
[flake8]
22+
max-line-length = 99
23+
max-complexity = 18
24+
select = B,C,E,F,W,T4,B9
25+
ignore = E501, E722, W503, F401, F403, F811, F841, E203, E402

.pre-commit-config.yaml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Copyright 2021 Agnostiq Inc.
2+
#
3+
# This file is part of Covalent.
4+
#
5+
# Licensed under the GNU Affero General Public License 3.0 (the "License").
6+
# A copy of the License may be obtained with this software package or at
7+
#
8+
# https://www.gnu.org/licenses/agpl-3.0.en.html
9+
#
10+
# Use of this file is prohibited except in compliance with the License. Any
11+
# modifications or derivative works of this file must retain this copyright
12+
# notice, and modified files must contain a notice indicating that they have
13+
# been altered from the originals.
14+
#
15+
# Covalent is distributed in the hope that it will be useful, but WITHOUT
16+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17+
# FITNESS FOR A PARTICULAR PURPOSE. See the License for more details.
18+
#
19+
# Relief from the License may be granted by purchasing a commercial license.
20+
21+
exclude: ".git|.tox"
22+
default_stages: [commit]
23+
fail_fast: true
24+
25+
repos:
26+
- repo: https://github.com/pre-commit/pre-commit-hooks
27+
rev: v4.0.1
28+
hooks:
29+
- id: trailing-whitespace
30+
- id: end-of-file-fixer
31+
- id: check-added-large-files
32+
args: ["--maxkb=10000"]
33+
- id: check-merge-conflict
34+
- id: requirements-txt-fixer
35+
36+
- repo: https://github.com/pre-commit/mirrors-isort
37+
rev: v5.8.0
38+
hooks:
39+
- id: isort
40+
args: ["--profile", "black"]
41+
42+
- repo: https://github.com/ambv/black
43+
rev: 21.5b1
44+
hooks:
45+
- id: black
46+
language_version: python3.8
47+
48+
- repo: https://github.com/PyCQA/flake8
49+
rev: 3.9.2
50+
hooks:
51+
- id: flake8

0 commit comments

Comments
 (0)