Skip to content

Commit

Permalink
project: general maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatsh committed Jul 3, 2023
1 parent 8b5101e commit 6f745e6
Show file tree
Hide file tree
Showing 20 changed files with 2,374 additions and 289 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
name: 'CodeQL'

on:
push:
branches: [ "master" ]
branches: ['master']
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
branches: ['master']
schedule:
- cron: '15 4 * * 3'

Expand All @@ -32,27 +32,27 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'python' ]
language: ['python']
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: '/language:${{matrix.language}}'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/metadata/*
!/metadata/layout.conf
!/metadata/pkgcheck.conf
/node_modules/
11 changes: 6 additions & 5 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[settings]
case_sensitive=true
combine_as_imports=true
from_first=true
order_by_type=true
use_parentheses=true
case_sensitive = true
combine_as_imports = true
from_first = true
line_length = 100
order_by_type = true
use_parentheses = true
5 changes: 0 additions & 5 deletions .kateconfig

This file was deleted.

1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.pytest_cache/
14 changes: 14 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"endOfLine": "lf",
"iniSpaceAroundEquals": true,
"overrides": [
{
"files": ["*.yapf"],
"options": {
"parser": "ini"
}
}
],
"printWidth": 100,
"singleQuote": true
}
61 changes: 61 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
[MAIN]
ignore=.git,node_modules
ignore-patterns=.*\.pyi
jobs=0
load-plugins=pylint_quotes

[MESSAGES CONTROL]
disable=invalid-triple-quote,
missing-class-docstring,
missing-function-docstring,
missing-module-docstring,
too-many-instance-attributes,
unspecified-encoding,
use-dict-literal

[REFACTORING]
max-nested-blocks=6

[LOGGING]
logging-format-style=old
logging-modules=logging

; [VARIABLES]
; allow-global-unused-variables=no

[FORMAT]
expected-line-ending-format=LF

[SIMILARITIES]
ignore-imports=no

[BASIC]
class-attribute-naming-style=snake_case
good-names=a,
b,
bn,
cp,
dn,
e,
f,
g,
i,
id,
j,
k,
m,
n,
r,
s,
tf,
x,
y,
z
include-naming-hint=yes
inlinevar-naming-style=snake_case

[DESIGN]
max-args=8
max-branches=15
max-locals=30
max-statements=80
2 changes: 2 additions & 0 deletions .rstcheck.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[rstcheck]
ignore_directives = automodule
49 changes: 49 additions & 0 deletions .style.yapf
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# See https://github.com/google/yapf#formatting-style

[style]
align_closing_bracket_with_visual_indent = True
allow_multiline_dictionary_keys = False
allow_multiline_lambdas = False
allow_split_before_dict_value = True
blank_line_before_class_docstring = False
blank_line_before_module_docstring = False
blank_line_before_nested_class_or_def = False
blank_lines_around_top_level_definition = 2
coalesce_brackets = True
column_limit = 100
continuation_align_style = SPACE
continuation_indent_width = 4
dedent_closing_brackets = False
disable_ending_comma_heuristic = False
each_dict_entry_on_separate_line = True
i18n_comment =
i18n_function_call =
indent_dictionary_value = True
indent_width = 4
join_multiple_lines = True
no_spaces_around_selected_binary_operators =
space_between_ending_comma_and_closing_bracket = False
spaces_around_default_or_named_assign = False
spaces_around_power_operator = True
spaces_before_comment = 2
split_all_comma_separated_values = False
split_arguments_when_comma_terminated = False
split_before_bitwise_operator = True
split_before_closing_bracket = True
split_before_dict_set_generator = True
split_before_dot = False
split_before_expression_after_opening_paren = False
split_before_first_argument = False
split_before_logical_operator = True
split_before_named_assigns = True
split_complex_comprehension = False
split_penalty_after_opening_bracket = 30
split_penalty_after_unary_operator = 10000
split_penalty_before_if_expr = 0
split_penalty_bitwise_operator = 300
split_penalty_comprehension = 80
split_penalty_excess_character = 7000
split_penalty_for_added_line_split = 30
split_penalty_import_names = 0
split_penalty_logical_operator = 300
use_tabs = False
Loading

0 comments on commit 6f745e6

Please sign in to comment.