Skip to content

Commit

Permalink
Black codebase (#189)
Browse files Browse the repository at this point in the history
* Add dev dependencies

* Black format

* Add to lint workflow

* Allow periodic table formatting
  • Loading branch information
t-young31 authored Oct 29, 2022
1 parent d27fafa commit ba16076
Show file tree
Hide file tree
Showing 232 changed files with 17,026 additions and 11,001 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/codeql.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "GitHub CodeQL"
name: "Lint"

on:
push:
Expand All @@ -14,6 +14,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Black
uses: psf/black@stable
with:
options: "--check --verbose"
version: "~= 22.0"

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
Expand Down
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
repos:
- repo: https://github.com/psf/black
rev: 22.10.0
hooks:
- id: black
language_version: python3.9

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://github.com/duartegroup/autodE/actions/workflows/pytest.yml/badge.svg)](https://github.com/duartegroup/autodE/actions) [![codecov](https://codecov.io/gh/duartegroup/autodE/branch/master/graph/badge.svg)](https://codecov.io/gh/duartegroup/autodE/branch/master) [![GitHub CodeQL](https://github.com/duartegroup/autodE/actions/workflows/codeql.yml/badge.svg)](https://github.com/duartegroup/autodE/actions/workflows/codeql.yml) [![Conda Recipe](https://img.shields.io/badge/recipe-autode-green.svg)](https://anaconda.org/conda-forge/autode) [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/autode.svg)](https://anaconda.org/conda-forge/autode)
[![Build Status](https://github.com/duartegroup/autodE/actions/workflows/pytest.yml/badge.svg)](https://github.com/duartegroup/autodE/actions) [![codecov](https://codecov.io/gh/duartegroup/autodE/branch/master/graph/badge.svg)](https://codecov.io/gh/duartegroup/autodE/branch/master) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) [![GitHub CodeQL](https://github.com/duartegroup/autodE/actions/workflows/codeql.yml/badge.svg)](https://github.com/duartegroup/autodE/actions/workflows/codeql.yml) [![Conda Recipe](https://img.shields.io/badge/recipe-autode-green.svg)](https://anaconda.org/conda-forge/autode) [![Conda Downloads](https://img.shields.io/conda/dn/conda-forge/autode.svg)](https://anaconda.org/conda-forge/autode)

![alt text](autode/common/llogo.png)
***
Expand Down
62 changes: 34 additions & 28 deletions autode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@
from autode.reactions.reaction import Reaction
from autode.reactions.multistep import MultiStepReaction
from autode.atoms import Atom
from autode.species.molecule import (Reactant, Product, Molecule, Species)
from autode.species.molecule import Reactant, Product, Molecule, Species
from autode.species.complex import NCIComplex
from autode.config import Config
from autode.calculations import Calculation
from autode.wrappers.keywords import (KeywordsSet, OptKeywords,
HessianKeywords, SinglePointKeywords,
Keywords, GradientKeywords)
from autode.wrappers.keywords import (
KeywordsSet,
OptKeywords,
HessianKeywords,
SinglePointKeywords,
Keywords,
GradientKeywords,
)

"""
Bumping the version number requires following the release proceedure:
Expand All @@ -32,31 +38,31 @@
- Merge when tests pass
"""

__version__ = '1.3.2'
__version__ = "1.3.2"


__all__ = [
'KeywordsSet',
'Keywords',
'OptKeywords',
'HessianKeywords',
'SinglePointKeywords',
'GradientKeywords',
'Reaction',
'MultiStepReaction',
'Atom',
'Species',
'Reactant',
'Product',
'Molecule',
'NCIComplex',
'Config',
'Calculation',
'pes',
'neb',
'geom',
'methods',
'mol_graphs',
'utils',
'hessians'
"KeywordsSet",
"Keywords",
"OptKeywords",
"HessianKeywords",
"SinglePointKeywords",
"GradientKeywords",
"Reaction",
"MultiStepReaction",
"Atom",
"Species",
"Reactant",
"Product",
"Molecule",
"NCIComplex",
"Config",
"Calculation",
"pes",
"neb",
"geom",
"methods",
"mol_graphs",
"utils",
"hessians",
]
Loading

0 comments on commit ba16076

Please sign in to comment.