Skip to content

Commit 68f32e4

Browse files
authored
Merge branch 'master' into overlap
2 parents 2e4895c + 07a5c3d commit 68f32e4

File tree

4 files changed

+28
-4
lines changed

4 files changed

+28
-4
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
* @Pycord-Development/maintainers
1+
* @Pycord-Development/library-maintainers @Pycord-Development/library-contributors
22

33
/discord/ @Pycord-Development/maintain-discord-api
44

.github/SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
| Version | Supported |
66
| ------- | ------------------ |
77
| 2.x | :white_check_mark: |
8-
| <2.0.0 | :x: |
8+
| <2.6.1 | :x: |
99

1010
## Reporting a Vulnerability
1111

README.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ Pycord is a modern, easy to use, feature-rich, and async ready API wrapper for D
1717
.. image:: https://img.shields.io/github/v/release/Pycord-Development/pycord?include_prereleases&label=Latest%20Release&logo=github&sort=semver&style=for-the-badge&logoColor=white
1818
:target: https://github.com/Pycord-Development/pycord/releases
1919
:alt: Latest release
20-
2120
.. image:: https://img.shields.io/discord/881207955029110855?label=discord&style=for-the-badge&logo=discord&color=5865F2&logoColor=white
2221
:target: https://pycord.dev/discord
2322
:alt: Discord server invite
24-
23+
.. image:: https://img.shields.io/github/sponsors/Pycord-Development?style=for-the-badge
24+
:target: https://github.com/sponsors/Pycord-Development
25+
:alt: GitHub Sponsors
2526
.. image:: https://badges.crowdin.net/badge/dark/crowdin-on-light.png
2627
:target: https://translations.pycord.dev/documentation/?utm_source=badge&utm_medium=referral&utm_campaign=badge-add-on
2728
:alt: Crowdin | Agile localization for tech companies

count_sourcelines.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import os
2+
3+
cur_path = os.getcwd()
4+
ignore_set = {"__init__.py", "count_sourcelines.py"}
5+
6+
loc_list = []
7+
8+
for py_dir, _, py_files in os.walk(cur_path):
9+
for py_file in py_files:
10+
if py_file.endswith(".py") and py_file not in ignore_set:
11+
total_path = os.path.join(py_dir, py_file)
12+
try:
13+
with open(total_path, encoding="utf-8") as file:
14+
loc_list.append(
15+
(len(file.read().splitlines()), total_path.split(cur_path)[1])
16+
)
17+
except UnicodeDecodeError as e:
18+
print(f"Skipping file {total_path} due to encoding error: {e}")
19+
20+
for line_number_count, filename in loc_list:
21+
print("%05d lines in %s" % (line_number_count, filename))
22+
23+
print("\nTotal: {} lines ({})".format(sum([x[0] for x in loc_list]), cur_path))

0 commit comments

Comments
 (0)