Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9cdee28

Browse files
authored
Merge pull request #621 from BeyondEvil/next-gen
Next gen
2 parents 4da1dea + 5e00bcc commit 9cdee28

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+12803
-1673
lines changed

.eslintrc.json

+19-13
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,30 @@
11
{
22
"env": {
33
"browser": true,
4+
"commonjs": true,
45
"es2021": true
56
},
6-
"extends": "eslint:recommended",
7+
"extends": [
8+
"google"
9+
],
710
"parserOptions": {
8-
"ecmaVersion": 12
11+
"ecmaVersion": "latest"
912
},
1013
"rules": {
1114
"array-bracket-spacing": "error",
1215
"block-scoped-var": "error",
1316
"block-spacing": "error",
1417
"brace-style": "error",
15-
"camelcase": "error",
18+
"camelcase": "off",
1619
"class-methods-use-this": "error",
1720
"consistent-return": "error",
1821
"default-case": "error",
1922
"default-case-last": "error",
2023
"default-param-last": "error",
2124
"grouped-accessor-pairs": "error",
22-
"indent": [
23-
"error",
24-
4
25-
],
26-
"linebreak-style": [
27-
"error",
28-
"unix"
29-
],
25+
"indent": [ "error", 4 ],
26+
"linebreak-style": [ "error", "unix" ],
27+
"max-len": ["error", { "code": 120 }],
3028
"no-caller": "error",
3129
"no-console": "error",
3230
"no-empty-function": "error",
@@ -43,17 +41,25 @@
4341
"no-throw-literal": "error",
4442
"no-undefined": "error",
4543
"no-unreachable-loop": "error",
46-
"no-unused-expressions": "error",
44+
"no-unused-expressions": "off",
4745
"no-useless-backreference": "error",
4846
"no-useless-concat": "error",
4947
"no-var": "error",
48+
"object-curly-spacing": [
49+
"error",
50+
"always",
51+
{
52+
"arraysInObjects": true
53+
}
54+
],
5055
"prefer-const": "error",
5156
"prefer-promise-reject-errors": "error",
5257
"require-atomic-updates": "error",
5358
"require-await": "error",
59+
"require-jsdoc" : 0,
5460
"semi": [
5561
"error",
56-
"always"
62+
"never"
5763
],
5864
"quotes": [
5965
"error",

.github/workflows/actions.yml

-97
This file was deleted.

.github/workflows/nightly.yml

-10
This file was deleted.

.github/workflows/publish.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- "[0-9]+.[0-9]+.[0-9]+"
7+
- "[0-9]+.[0-9]+.[0-9]+rc[0-9]+"
8+
9+
jobs:
10+
publish:
11+
if: github.repository == 'pytest-dev/pytest-html'
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
persist-credentials: false
18+
19+
- name: Use Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: '16.x'
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Build app.js
28+
run: npm run build:ci
29+
30+
- name: Build and Check Package
31+
uses: hynek/build-and-inspect-python-package@v1
32+
33+
- name: Download Package
34+
uses: actions/download-artifact@v3
35+
with:
36+
name: Packages
37+
path: dist
38+
39+
- name: Publish package to PyPI
40+
uses: pypa/gh-action-pypi-publish@release/v1
41+
with:
42+
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)